[Nagiosplug-checkins] CVS: nagiosplug/plugins check_dig.c,1.20,1.21

Karl DeBisschop kdebisschop at users.sourceforge.net
Sat Aug 23 07:05:06 CEST 2003


Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs1:/tmp/cvs-serv24816

Modified Files:
	check_dig.c 
Log Message:
- fix various format errors with newly added perf data


Index: check_dig.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_dig.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -r1.20 -r1.21
*** check_dig.c	22 Aug 2003 23:49:29 -0000	1.20
--- check_dig.c	23 Aug 2003 13:58:14 -0000	1.21
***************
*** 143,166 ****
  	if (elapsed_time > critical_interval)
  		die (STATE_CRITICAL,
! 		     _("DNS OK - %d seconds response time (%s)|time=%ldus\n"),
  		     elapsed_time, output, microsec);
  
  	else if (result == STATE_CRITICAL)
! 		printf (_("DNS CRITICAL - %s|time=%ldus\n"), output);
  
  	else if (elapsed_time > warning_interval)
  		die (STATE_WARNING,
! 		     _("DNS OK - %d seconds response time (%s)|time=%ldus\n"),
  		     elapsed_time, output, microsec);
  
  	else if (result == STATE_WARNING)
! 		printf (_("DNS WARNING - %s|time=%ldus\n"), output);
  
  	else if (result == STATE_OK)
! 		printf (_("DNS OK - %d seconds response time (%s)|time=%ldus\n"),
  						elapsed_time, output, microsec);
  
  	else
! 		printf (_("DNS problem - %s|time=%ldus\n"), output);
  
  	return result;
--- 143,166 ----
  	if (elapsed_time > critical_interval)
  		die (STATE_CRITICAL,
! 		     _("DNS OK - %.3f seconds response time (%s)|time=%ldus\n"),
  		     elapsed_time, output, microsec);
  
  	else if (result == STATE_CRITICAL)
! 		printf (_("DNS CRITICAL - %s|time=%ldus\n"), output, microsec);
  
  	else if (elapsed_time > warning_interval)
  		die (STATE_WARNING,
! 		     _("DNS OK - %.3f seconds response time (%s)|time=%ldus\n"),
  		     elapsed_time, output, microsec);
  
  	else if (result == STATE_WARNING)
! 		printf (_("DNS WARNING - %s|time=%ldus\n"), output, microsec);
  
  	else if (result == STATE_OK)
! 		printf (_("DNS OK - %.3f seconds response time (%s)|time=%ldus\n"),
  						elapsed_time, output, microsec);
  
  	else
! 		printf (_("DNS problem - %s|time=%ldus\n"), output, microsec);
  
  	return result;





More information about the Commits mailing list