[Nagiosplug-checkins] CVS: nagiosplug/plugins check_smtp.c,1.20,1.21
Karl DeBisschop
kdebisschop at users.sourceforge.net
Tue Nov 18 22:01:05 CET 2003
Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs1:/tmp/cvs-serv31301
Modified Files:
check_smtp.c
Log Message:
use perfdata() to return perfoamnace data in stanadrd format
Index: check_smtp.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_smtp.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -r1.20 -r1.21
*** check_smtp.c 22 Aug 2003 06:22:38 -0000 1.20
--- check_smtp.c 19 Nov 2003 06:00:53 -0000 1.21
***************
*** 169,178 ****
result = STATE_WARNING;
! if (verbose)
! printf (_("SMTP %s - %.3f sec. response time, %s|time=%ldus\n"),
! state_text (result), elapsed_time, buffer, microsec);
! else
! printf (_("SMTP %s - %.3f second response time|time=%ldus\n"),
! state_text (result), elapsed_time, microsec);
return result;
--- 169,179 ----
result = STATE_WARNING;
! printf (_("SMTP %s - %.3f sec. response time%s%s|%s\n"),
! state_text (result), elapsed_time,
! verbose?", ":"", verbose?buffer:"",
! perfdata ("time", microsec, "us",
! check_warning_time, (long)(1000000*warning_time),
! check_critical_time, (long)(1000000*critical_time),
! TRUE, 0, FALSE, 0));
return result;
More information about the Commits
mailing list