Code

more snmpv3 patches
[nagiosplug.git] / plugins-scripts / check_ifstatus.pl
index 3372adbf466582a615e59151cff62cce7c6c21d8..4f17711680770bdaaf4fdaaa1367ca3a72e8d632 100755 (executable)
@@ -53,7 +53,8 @@ my %ifOperStatus =    ('1','up',
                         '3','testing',
                         '4','unknown',
                         '5','dormant',
-                        '6','notPresent');
+                        '6','notPresent',
+                        '7','lowerLayerDown');  # down due to the state of lower layer interface(s));
 
 my $state = "UNKNOWN";
 my $answer = "";
@@ -416,6 +417,7 @@ sub process_arguments() {
                                -port      => $port,
                                -version  => $snmp_version,
                                -username => $secname,
+                               -authprotocol => $authproto,
                                $auth
                        );      
                }elsif ($seclevel eq 'authPriv' ) {
@@ -424,6 +426,7 @@ sub process_arguments() {
                                -port      => $port,
                                -version  => $snmp_version,
                                -username => $secname,
+                               -authprotocol => $authproto,
                                $auth,
                                $priv
                        );