summaryrefslogtreecommitdiffstats
path: root/web/attachments/43177-check_ifstatus.txt
blob: 476923a622278bc0b7c466ef3db020e3007182be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--- check_ifstatus.orig Sat Feb 22 18:18:00 2003
+++ check_ifstatus      Sat Feb 22 17:37:06 2003
@@ -156,6 +156,7 @@
 
 push(@snmpoids,$snmpIfOperStatus);
 push(@snmpoids,$snmpIfAdminStatus);
+push(@snmpoids,$snmpLocIfDescr);
 push(@snmpoids,$snmpIfDescr);
 push(@snmpoids,$snmpIfType);
 push(@snmpoids,$snmpIfName) if ( defined $ifXTable);
@@ -177,6 +178,7 @@
       $key = $1;
       $ifStatus{$key}{$snmpoid} = $response->{$snmpkey};
    }
+print $snmpLocIfDescr;
 }
 
 
@@ -193,7 +195,7 @@
                $ifdown++ ;
                                $ifmessage .= sprintf("%s: down -> %s<BR>",
                                  $ifStatus{$key}{$snmpIfDescr},
-                                                                $ifStatus{$key}{$snmpIfName});
+                                $ifStatus{$key}{$snmpLocIfDescr});
                        }
                if ($ifStatus{$key}{$snmpIfOperStatus} == 5 ) { $ifdormant++ ;}
                }