diff options
Diffstat (limited to 'plugins/check_fping.c')
-rw-r--r-- | plugins/check_fping.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/check_fping.c b/plugins/check_fping.c index 22f6b55d..2dba2d58 100644 --- a/plugins/check_fping.c +++ b/plugins/check_fping.c | |||
@@ -127,16 +127,16 @@ textscan (char *buf) | |||
127 | int status = STATE_UNKNOWN; | 127 | int status = STATE_UNKNOWN; |
128 | 128 | ||
129 | if (strstr (buf, "not found")) { | 129 | if (strstr (buf, "not found")) { |
130 | die (STATE_CRITICAL, _("FPING unknown - %s not found\n"), server_name); | 130 | die (STATE_CRITICAL, _("FPING UNKNOW - %s not found\n"), server_name); |
131 | 131 | ||
132 | } | 132 | } |
133 | else if (strstr (buf, "is unreachable") || strstr (buf, "Unreachable")) { | 133 | else if (strstr (buf, "is unreachable") || strstr (buf, "Unreachable")) { |
134 | die (STATE_CRITICAL, _("FPING critical - %s is unreachable\n"), | 134 | die (STATE_CRITICAL, _("FPING CRITICAL - %s is unreachable\n"), |
135 | "host"); | 135 | "host"); |
136 | 136 | ||
137 | } | 137 | } |
138 | else if (strstr (buf, "is down")) { | 138 | else if (strstr (buf, "is down")) { |
139 | die (STATE_CRITICAL, _("FPING critical - %s is down\n"), server_name); | 139 | die (STATE_CRITICAL, _("FPING CRITICAL - %s is down\n"), server_name); |
140 | 140 | ||
141 | } | 141 | } |
142 | else if (strstr (buf, "is alive")) { | 142 | else if (strstr (buf, "is alive")) { |
@@ -254,7 +254,7 @@ process_arguments (int argc, char **argv) | |||
254 | break; | 254 | break; |
255 | case 'H': /* hostname */ | 255 | case 'H': /* hostname */ |
256 | if (is_host (optarg) == FALSE) { | 256 | if (is_host (optarg) == FALSE) { |
257 | usage2 (_("Invalid host name/address"), optarg); | 257 | usage2 (_("Invalid hostname/address"), optarg); |
258 | } | 258 | } |
259 | server_name = strscpy (server_name, optarg); | 259 | server_name = strscpy (server_name, optarg); |
260 | break; | 260 | break; |
@@ -301,7 +301,7 @@ process_arguments (int argc, char **argv) | |||
301 | 301 | ||
302 | 302 | ||
303 | if (server_name == NULL) | 303 | if (server_name == NULL) |
304 | usage (_("Host name was not supplied\n\n")); | 304 | usage (_("Hostname was not supplied\n\n")); |
305 | 305 | ||
306 | return OK; | 306 | return OK; |
307 | } | 307 | } |