[Nagiosplug-checkins] CVS: nagiosplug/plugins check_dig.c,1.24,1.25 check_dns.c,1.26,1.27 check_game.c,1.9,1.10
Karl DeBisschop
kdebisschop at users.sourceforge.net
Wed Mar 3 21:22:29 CET 2004
Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17581
Modified Files:
check_dig.c check_dns.c check_game.c
Log Message:
use float for time in perf data
Index: check_dig.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_dig.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -r1.24 -r1.25
*** check_dig.c 12 Nov 2003 05:28:42 -0000 1.24
--- check_dig.c 4 Mar 2004 05:08:43 -0000 1.25
***************
*** 152,160 ****
printf ("DNS %s - %s|%s\n",
state_text (result), output,
! perfdata("time", microsec, "us",
(warning_interval>UNDEFINED?TRUE:FALSE),
! (int)(1e6*warning_interval),
(critical_interval>UNDEFINED?TRUE:FALSE),
! (int)(1e6*critical_interval),
TRUE, 0, FALSE, 0));
return result;
--- 152,160 ----
printf ("DNS %s - %s|%s\n",
state_text (result), output,
! fperfdata("time", elapsed_time, "s",
(warning_interval>UNDEFINED?TRUE:FALSE),
! warning_interval,
(critical_interval>UNDEFINED?TRUE:FALSE),
! critical_interval,
TRUE, 0, FALSE, 0));
return result;
Index: check_dns.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_dns.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -r1.26 -r1.27
*** check_dns.c 25 Feb 2004 08:51:03 -0000 1.26
--- check_dns.c 4 Mar 2004 05:08:43 -0000 1.27
***************
*** 199,203 ****
printf (ngettext("%.3f second response time, ", "%.3f seconds response time, ", elapsed_time), elapsed_time);
printf (_("%s returns %s"), query_address, address);
! printf ("|%s\n", perfdata ("time", microsec, "us", FALSE, 0, FALSE, 0, TRUE, 0, FALSE, 0));
}
else if (result == STATE_WARNING)
--- 199,203 ----
printf (ngettext("%.3f second response time, ", "%.3f seconds response time, ", elapsed_time), elapsed_time);
printf (_("%s returns %s"), query_address, address);
! printf ("|%s\n", fperfdata ("time", elapsed_time, "s", FALSE, 0, FALSE, 0, TRUE, 0, FALSE, 0));
}
else if (result == STATE_WARNING)
Index: check_game.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_game.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** check_game.c 28 Aug 2003 11:56:15 -0000 1.9
--- check_game.c 4 Mar 2004 05:08:43 -0000 1.10
***************
*** 153,157 ****
FALSE, 0, FALSE, 0,
TRUE, 0, TRUE, atol(ret[qstat_game_players_max])),
! perfdata ("ping", atol(ret[qstat_ping_field]), "",
FALSE, 0, FALSE, 0,
TRUE, 0, FALSE, 0));
--- 153,157 ----
FALSE, 0, FALSE, 0,
TRUE, 0, TRUE, atol(ret[qstat_game_players_max])),
! fperfdata ("ping", strtod(ret[qstat_ping_field], NULL), "",
FALSE, 0, FALSE, 0,
TRUE, 0, FALSE, 0));
More information about the Commits
mailing list