From 0f8ef1f7802e9c47bf0ad72b17f28fa705f2a45c Mon Sep 17 00:00:00 2001 From: Matthias Eble Date: Thu, 11 Jun 2009 16:22:47 +0200 Subject: [PATCH] minor fixes to check_ifoperstatus Minor output fixes for check_ifoperstatus. Fixed typo so that -n now implies -I as documented. --- plugins-scripts/check_ifoperstatus.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins-scripts/check_ifoperstatus.pl b/plugins-scripts/check_ifoperstatus.pl index e137e7f..6038b93 100755 --- a/plugins-scripts/check_ifoperstatus.pl +++ b/plugins-scripts/check_ifoperstatus.pl @@ -379,10 +379,10 @@ sub process_arguments() { } unless ($snmpkey > 0 || defined $ifdescr || defined $iftype){ - usage("Either a valid snmpkey key (-k) or a ifDescr (-d) must be provided"); + usage("Either a valid snmp key (-k) or a ifDescr (-d) must be provided"); } - if (defined $name) { + if (defined $ifName) { $ifXTable=1; } @@ -420,7 +420,7 @@ sub process_arguments() { # Must define a security level even though defualt is noAuthNoPriv unless ( grep /^$seclevel$/, qw(noAuthNoPriv authNoPriv authPriv) ) { - usage("Must define a security level even though default is noAuthNoPriv"); + usage("Must define a valid security level even though default is noAuthNoPriv"); } # Authentication wanted -- 2.30.2