aboutsummaryrefslogtreecommitdiff
path: root/src/ping903q.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ping903q.c')
-rw-r--r--src/ping903q.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ping903q.c b/src/ping903q.c
index 9e7a350..7bc35e1 100644
--- a/src/ping903q.c
+++ b/src/ping903q.c
@@ -684,7 +684,8 @@ nagios_check(struct json_value *obj, void *data)
printf("PING %s UNKNOWN - waiting for data to arrive\n", name);
exit(EX_NAGIOS_UNKNOWN);
}
- if (strcmp(jv->v.s, "invalid") == 0) {
+ if (strcmp(jv->v.s, "invalid") == 0
+ || json_object_get(obj, "stddev", &jv)) {
printf("PING %s CRITICAL - Packet loss = 100%%", name);
print_perfdata(cd->cth.round_trip, 100.0, cd);
exit(EX_NAGIOS_CRITICAL);

Return to:

Send suggestions and report system problems to the System administrator.