summaryrefslogtreecommitdiffstats
path: root/web/attachments/43179-check_ifstatus.txt
blob: 69b540ad3e3243c8f7c045567b9276f386ea4700 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- check_ifstatus.orig Sat Feb 22 18:18:00 2003
+++ check_ifstatus      Sat Feb 22 18:23:32 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);
@@ -193,7 +194,7 @@
                $ifdown++ ;
                                $ifmessage .= sprintf("%s: down -> %s<BR>",
                                  $ifStatus{$key}{$snmpIfDescr},
-                                                                $ifStatus{$key}{$snmpIfName});
+                                $ifStatus{$key}{$snmpLocIfDescr});
                        }
                if ($ifStatus{$key}{$snmpIfOperStatus} == 5 ) { $ifdormant++ ;}
                }