diff options
author | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2021-11-17 13:09:11 (GMT) |
---|---|---|
committer | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2021-11-17 13:23:24 (GMT) |
commit | 0214ec1918abf589f15b70948ddba641a9729ce3 (patch) | |
tree | 926768319f224d53aff711e6f4ee64f11cc1ccc5 /plugins/check_ping.c | |
parent | 27d96dcf23c44c74d0a2be7ea94f47798e37030a (diff) | |
download | monitoring-plugins-0214ec1918abf589f15b70948ddba641a9729ce3.tar.gz |
Show RTA as unknown if it can not be determined
Diffstat (limited to 'plugins/check_ping.c')
-rw-r--r-- | plugins/check_ping.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_ping.c b/plugins/check_ping.c index 7d58b10..6aa43ed 100644 --- a/plugins/check_ping.c +++ b/plugins/check_ping.c | |||
@@ -171,7 +171,7 @@ main (int argc, char **argv) | |||
171 | crta>0?TRUE:FALSE, crta, | 171 | crta>0?TRUE:FALSE, crta, |
172 | TRUE, 0, FALSE, 0)); | 172 | TRUE, 0, FALSE, 0)); |
173 | } else { | 173 | } else { |
174 | printf("|"); | 174 | printf("| rta=U;;;;;"); |
175 | } | 175 | } |
176 | printf(" %s\n", perfdata ("pl", (long) pl, "%", | 176 | printf(" %s\n", perfdata ("pl", (long) pl, "%", |
177 | wpl>0?TRUE:FALSE, wpl, | 177 | wpl>0?TRUE:FALSE, wpl, |