[monitoring-plugins] Add thresholds even if value is missing
RincewindsHat
git at monitoring-plugins.org
Thu Nov 18 10:10:12 CET 2021
Module: monitoring-plugins
Branch: master
Commit: e030c2d17c10446bda840d66f6753b9bf573d715
Author: RincewindsHat <12514511+RincewindsHat at users.noreply.github.com>
Date: Wed Nov 17 15:45:49 2021 +0100
URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=e030c2d
Add thresholds even if value is missing
---
plugins/check_ping.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/check_ping.c b/plugins/check_ping.c
index 6aa43ed..ba7af37 100644
--- a/plugins/check_ping.c
+++ b/plugins/check_ping.c
@@ -171,7 +171,7 @@ main (int argc, char **argv)
crta>0?TRUE:FALSE, crta,
TRUE, 0, FALSE, 0));
} else {
- printf("| rta=U;;;;;");
+ printf("| rta=U;%f;%f;;", wrta, crta);
}
printf(" %s\n", perfdata ("pl", (long) pl, "%",
wpl>0?TRUE:FALSE, wpl,
More information about the Commits
mailing list