[Nagiosplug-checkins] CVS: nagiosplug/plugins check_fping.c,1.11,1.12
Karl DeBisschop
kdebisschop at users.sourceforge.net
Sat Mar 13 19:47:08 CET 2004
- Previous message: [Nagiosplug-checkins] CVS: nagiosplug/contrib check_cluster2.c,NONE,1.1
- Next message: [Nagiosplug-checkins] CVS: nagiosplug/plugins check_ldap.c,1.15,1.16 check_load.c,1.14,1.15 check_mrtgtraf.c,1.11,1.12 check_pgsql.c,1.16,1.17 check_smtp.c,1.24,1.25 check_tcp.c,1.39,1.40 check_ups.c,1.13,1.14
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv661/plugins
Modified Files:
check_fping.c
Log Message:
use fperfdata
Index: check_fping.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_fping.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -r1.11 -r1.12
*** check_fping.c 26 Aug 2003 10:51:03 -0000 1.11
--- check_fping.c 14 Mar 2004 03:37:32 -0000 1.12
***************
*** 166,171 ****
_("FPING %s - %s (loss=%.0f%%, rta=%f ms)|%s %s\n"),
state_text (status), server_name, loss, rta,
! perfdata ("loss", (int)loss, "%", wpl_p, wpl, cpl_p, cpl, TRUE, 0, TRUE, 100),
! perfdata ("rta", (long int)(rta*1.0e3), "us", wrta_p, (long int)(wrta*1.0e3), crta_p, (long int)(crta*1.0e3), TRUE, 0, FALSE, 0));
}
--- 166,171 ----
_("FPING %s - %s (loss=%.0f%%, rta=%f ms)|%s %s\n"),
state_text (status), server_name, loss, rta,
! perfdata ("loss", (long int)loss, "%", wpl_p, wpl, cpl_p, cpl, TRUE, 0, TRUE, 100),
! fperfdata ("rta", rta/1.0e3, "s", wrta_p, wrta/1.0e3, crta_p, crta/1.0e3, TRUE, 0, FALSE, 0));
}
***************
*** 187,191 ****
die (status, _("FPING %s - %s (loss=%.0f%% )|%s\n"),
state_text (status), server_name, loss ,
! perfdata ("loss", (int)loss, "%", wpl_p, wpl, cpl_p, cpl, TRUE, 0, TRUE, 100));
}
--- 187,191 ----
die (status, _("FPING %s - %s (loss=%.0f%% )|%s\n"),
state_text (status), server_name, loss ,
! perfdata ("loss", (long int)loss, "%", wpl_p, wpl, cpl_p, cpl, TRUE, 0, TRUE, 100));
}
***************
*** 264,268 ****
get_threshold (optarg, rv);
if (rv[RTA]) {
! crta = 1e3 * strtod (rv[RTA], NULL);
crta_p = TRUE;
rv[RTA] = NULL;
--- 264,268 ----
get_threshold (optarg, rv);
if (rv[RTA]) {
! crta = 1e-3 * strtod (rv[RTA], NULL);
crta_p = TRUE;
rv[RTA] = NULL;
***************
*** 277,281 ****
get_threshold (optarg, rv);
if (rv[RTA]) {
! wrta = 1e3 * strtod (rv[RTA], NULL);
wrta_p = TRUE;
rv[RTA] = NULL;
--- 277,281 ----
get_threshold (optarg, rv);
if (rv[RTA]) {
! wrta = 1e-3 * strtod (rv[RTA], NULL);
wrta_p = TRUE;
rv[RTA] = NULL;
- Previous message: [Nagiosplug-checkins] CVS: nagiosplug/contrib check_cluster2.c,NONE,1.1
- Next message: [Nagiosplug-checkins] CVS: nagiosplug/plugins check_ldap.c,1.15,1.16 check_load.c,1.14,1.15 check_mrtgtraf.c,1.11,1.12 check_pgsql.c,1.16,1.17 check_smtp.c,1.24,1.25 check_tcp.c,1.39,1.40 check_ups.c,1.13,1.14
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Commits
mailing list