summaryrefslogtreecommitdiffstats
path: root/plugins/check_ping.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_ping.c')
-rw-r--r--plugins/check_ping.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_ping.c b/plugins/check_ping.c
index 260e1b6..0e09054 100644
--- a/plugins/check_ping.c
+++ b/plugins/check_ping.c
@@ -78,7 +78,7 @@ main (int argc, char **argv)
78 addresses = malloc (sizeof(char*) * max_addr); 78 addresses = malloc (sizeof(char*) * max_addr);
79 addresses[0] = NULL; 79 addresses[0] = NULL;
80 80
81 if (process_arguments (argc, argv) == ERROR) 81 if (process_arguments (argc, argv) != OK)
82 usage (_("check_ping: could not parse arguments\n")); 82 usage (_("check_ping: could not parse arguments\n"));
83 83
84 /* Set signal handling and alarm */ 84 /* Set signal handling and alarm */
@@ -121,7 +121,7 @@ main (int argc, char **argv)
121 if (pl == UNKNOWN_PACKET_LOSS || rta < 0.0) { 121 if (pl == UNKNOWN_PACKET_LOSS || rta < 0.0) {
122 printf ("%s\n", cmd); 122 printf ("%s\n", cmd);
123 die (STATE_UNKNOWN, 123 die (STATE_UNKNOWN,
124 _("Error: Could not interpret output from ping command\n")); 124 _("CRITICAL - Could not interpret output from ping command\n"));
125 } 125 }
126 126
127 if (pl >= cpl || rta >= crta || rta < 0) 127 if (pl >= cpl || rta >= crta || rta < 0)