summaryrefslogtreecommitdiffstats
path: root/plugins/check_snmp.c
diff options
context:
space:
mode:
authorThomas Guyot-Sionnest <dermoth@users.sourceforge.net>2007-12-04 12:33:00 +0000
committerThomas Guyot-Sionnest <dermoth@users.sourceforge.net>2007-12-04 12:33:00 +0000
commitb5f11055dcef13a5c0b67207a291e1916036ca1f (patch)
tree97822eed51e47a88201251c61d73afe1bc7ce0be /plugins/check_snmp.c
parentc1418c9dafba384536595bea2f5f4d256a498d15 (diff)
downloadmonitoring-plugins-tg/ntp_rework.tar.gz
Merge more changes from trunktg/ntp_rework
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/branches/dermoth_ntp_rework@1845 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_snmp.c')
-rw-r--r--plugins/check_snmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c
index 9fa4a60b..c69e97aa 100644
--- a/plugins/check_snmp.c
+++ b/plugins/check_snmp.c
@@ -521,7 +521,7 @@ process_arguments (int argc, char **argv)
521 /* Test parameters */ 521 /* Test parameters */
522 case 'c': /* critical time threshold */ 522 case 'c': /* critical time threshold */
523 if (strspn (optarg, "0123456789:,") < strlen (optarg)) 523 if (strspn (optarg, "0123456789:,") < strlen (optarg))
524 usage2 (_("Invalid critical threshold: %s\n"), optarg); 524 usage2 (_("Invalid critical threshold"), optarg);
525 for (ptr = optarg; ptr && jj < MAX_OIDS; jj++) { 525 for (ptr = optarg; ptr && jj < MAX_OIDS; jj++) {
526 if (llu_getll (&lower_crit_lim[jj], ptr) == 1) 526 if (llu_getll (&lower_crit_lim[jj], ptr) == 1)
527 eval_method[jj] |= CRIT_LT; 527 eval_method[jj] |= CRIT_LT;
@@ -532,7 +532,7 @@ process_arguments (int argc, char **argv)
532 break; 532 break;
533 case 'w': /* warning time threshold */ 533 case 'w': /* warning time threshold */
534 if (strspn (optarg, "0123456789:,") < strlen (optarg)) 534 if (strspn (optarg, "0123456789:,") < strlen (optarg))
535 usage2 (_("Invalid warning threshold: %s\n"), optarg); 535 usage2 (_("Invalid warning threshold"), optarg);
536 for (ptr = optarg; ptr && ii < MAX_OIDS; ii++) { 536 for (ptr = optarg; ptr && ii < MAX_OIDS; ii++) {
537 if (llu_getll (&lower_warn_lim[ii], ptr) == 1) 537 if (llu_getll (&lower_warn_lim[ii], ptr) == 1)
538 eval_method[ii] |= WARN_LT; 538 eval_method[ii] |= WARN_LT;