[Nagiosplug-checkins] CVS: nagiosplug/plugins check_dns.c,1.22,1.23

Karl DeBisschop kdebisschop at users.sourceforge.net
Wed Aug 27 21:32:36 CEST 2003


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

Modified Files:
	check_dns.c 
Log Message:
add perf data

Index: check_dns.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_dns.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -r1.22 -r1.23
*** check_dns.c	22 Aug 2003 06:22:37 -0000	1.22
--- check_dns.c	28 Aug 2003 03:53:52 -0000	1.23
***************
*** 213,218 ****
  			multi_address = TRUE;
  
! 		printf (_("DNS ok - %.3f seconds response time, address%s %s|time=%ldus\n"),
! 						elapsed_time, (multi_address==TRUE ? "es are" : " is"), address, microsec);
  	}
  	else if (result == STATE_WARNING)
--- 213,219 ----
  			multi_address = TRUE;
  
! 		printf (_("DNS ok - %.3f seconds response time, address%s %s|%s\n"),
! 						elapsed_time, (multi_address==TRUE ? "es are" : " is"), address,
! 						perfdata ("time", microsec, "us", FALSE, 0, FALSE, 0, TRUE, 0, FALSE, 0));
  	}
  	else if (result == STATE_WARNING)





More information about the Commits mailing list