diff options
| author | Matthias Eble <psychotrahe@gmx.de> | 2009-06-11 16:22:47 +0200 |
|---|---|---|
| committer | Matthias Eble <psychotrahe@gmx.de> | 2009-06-11 16:22:47 +0200 |
| commit | 0f8ef1f7802e9c47bf0ad72b17f28fa705f2a45c (patch) | |
| tree | 7b9640fd7808572d55b2e9afd5aebca8ca543e4e /plugins-scripts | |
| parent | 8b8a30716a85206941d96b1a40b5966432a0ddb0 (diff) | |
| download | monitoring-plugins-0f8ef1f7802e9c47bf0ad72b17f28fa705f2a45c.tar.gz | |
minor fixes to check_ifoperstatus
Minor output fixes for check_ifoperstatus.
Fixed typo so that -n now implies -I as documented.
Diffstat (limited to 'plugins-scripts')
| -rwxr-xr-x | plugins-scripts/check_ifoperstatus.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins-scripts/check_ifoperstatus.pl b/plugins-scripts/check_ifoperstatus.pl index e137e7fd..6038b935 100755 --- a/plugins-scripts/check_ifoperstatus.pl +++ b/plugins-scripts/check_ifoperstatus.pl | |||
| @@ -379,10 +379,10 @@ sub process_arguments() { | |||
| 379 | } | 379 | } |
| 380 | 380 | ||
| 381 | unless ($snmpkey > 0 || defined $ifdescr || defined $iftype){ | 381 | unless ($snmpkey > 0 || defined $ifdescr || defined $iftype){ |
| 382 | usage("Either a valid snmpkey key (-k) or a ifDescr (-d) must be provided"); | 382 | usage("Either a valid snmp key (-k) or a ifDescr (-d) must be provided"); |
| 383 | } | 383 | } |
| 384 | 384 | ||
| 385 | if (defined $name) { | 385 | if (defined $ifName) { |
| 386 | $ifXTable=1; | 386 | $ifXTable=1; |
| 387 | } | 387 | } |
| 388 | 388 | ||
| @@ -420,7 +420,7 @@ sub process_arguments() { | |||
| 420 | 420 | ||
| 421 | # Must define a security level even though defualt is noAuthNoPriv | 421 | # Must define a security level even though defualt is noAuthNoPriv |
| 422 | unless ( grep /^$seclevel$/, qw(noAuthNoPriv authNoPriv authPriv) ) { | 422 | unless ( grep /^$seclevel$/, qw(noAuthNoPriv authNoPriv authPriv) ) { |
| 423 | usage("Must define a security level even though default is noAuthNoPriv"); | 423 | usage("Must define a valid security level even though default is noAuthNoPriv"); |
| 424 | } | 424 | } |
| 425 | 425 | ||
| 426 | # Authentication wanted | 426 | # Authentication wanted |
