mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-03-23 10:53:03 -04:00
minor fixes to check_ifoperstatus
Minor output fixes for check_ifoperstatus. Fixed typo so that -n now implies -I as documented.
This commit is contained in:
parent
8b8a30716a
commit
0f8ef1f780
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue