aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_snmp.c
diff options
context:
space:
mode:
authorGravatar Benoit Mortier <opensides@users.sourceforge.net> 2004-12-30 00:41:41 +0000
committerGravatar Benoit Mortier <opensides@users.sourceforge.net> 2004-12-30 00:41:41 +0000
commit7df9bd7bab72af4f300eef9dc509a226924de58b (patch)
treed98aa39e6fd369c439928d033e45382331e4755f /plugins/check_snmp.c
parentfba6d9719e362be25a546ed47d0f7a42679fc79a (diff)
downloadmonitoring-plugins-7df9bd7bab72af4f300eef9dc509a226924de58b.tar.gz
more internationalization fixes
internationalization freeze for beta1 git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1067 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_snmp.c')
-rw-r--r--plugins/check_snmp.c18
1 files changed, 7 insertions, 11 deletions
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c
index 5f221218..ef411e15 100644
--- a/plugins/check_snmp.c
+++ b/plugins/check_snmp.c
@@ -281,7 +281,7 @@ main (int argc, char **argv)
iresult = STATE_CRITICAL;
}
#else
- printf (_("%s UNKNOWN: call for regex which was not a compiled option"), label);
+ printf (_("Call for regex which was not a compiled option"));
exit (STATE_UNKNOWN);
#endif
}
@@ -511,7 +511,7 @@ process_arguments (int argc, char **argv)
eval_method[jj++] = CRIT_REGEX;
ii++;
#else
- printf (_("%s UNKNOWN: call for regex which was not a compiled option"), label);
+ printf (_("call for regex which was not a compiled option"));
exit (STATE_UNKNOWN);
#endif
break;
@@ -530,8 +530,7 @@ process_arguments (int argc, char **argv)
labels_size += 8;
labels = realloc (labels, labels_size);
if (labels == NULL)
- die (STATE_UNKNOWN,
- _("Could not realloc() labels[%d]"), nlabels);
+ die (STATE_UNKNOWN, _("Could not reallocate labels[%d]"), nlabels);
}
labels[nlabels - 1] = optarg;
ptr = thisarg (optarg);
@@ -543,7 +542,7 @@ process_arguments (int argc, char **argv)
labels_size += 8;
labels = realloc (labels, labels_size);
if (labels == NULL)
- die (STATE_UNKNOWN, _("Could not realloc() labels\n"));
+ die (STATE_UNKNOWN, _("Could not reallocate labels\n"));
}
labels++;
ptr = thisarg (ptr);
@@ -560,8 +559,7 @@ process_arguments (int argc, char **argv)
unitv_size += 8;
unitv = realloc (unitv, unitv_size);
if (unitv == NULL)
- die (STATE_UNKNOWN,
- _("Could not realloc() units [%d]\n"), nunits);
+ die (STATE_UNKNOWN, _("Could not reallocate units [%d]\n"), nunits);
}
unitv[nunits - 1] = optarg;
ptr = thisarg (optarg);
@@ -646,7 +644,7 @@ validate_arguments ()
}
else if ( strcmp(seclevel, "authNoPriv") == 0 ) {
if ( secname == NULL || authpasswd == NULL) {
- printf (_("Missing secname (%s) or authpassword (%s) ! \n)"),secname, authpasswd );
+ printf (_("Missing secname (%s) or authpassword (%s) ! \n"),secname, authpasswd );
print_usage ();
exit (STATE_UNKNOWN);
}
@@ -663,9 +661,7 @@ validate_arguments ()
}
else {
- printf (_("Invalid SNMP version: %s\n"), proto);
- print_usage ();
- exit (STATE_UNKNOWN);
+ usage2 (_("Invalid SNMP version"), proto);
}
return OK;