summaryrefslogtreecommitdiffstats
path: root/plugins/check_fping.c
diff options
context:
space:
mode:
authorBenoit Mortier <opensides@users.sourceforge.net>2004-12-01 19:33:45 (GMT)
committerBenoit Mortier <opensides@users.sourceforge.net>2004-12-01 19:33:45 (GMT)
commit54c21eba62b55503dbe6fda607ccbef4a27a1f14 (patch)
treefd28942d1170f607e5e9979e0b0cdcef5240c88f /plugins/check_fping.c
parent5dc0b02ccc2b549d5ee7c8c7249723af9bd1cb74 (diff)
downloadmonitoring-plugins-54c21eba62b55503dbe6fda607ccbef4a27a1f14.tar.gz
first pass at standardization of messages for the localization
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@962 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_fping.c')
-rw-r--r--plugins/check_fping.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/check_fping.c b/plugins/check_fping.c
index 22f6b55..2dba2d5 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}