summaryrefslogtreecommitdiffstats
path: root/web/attachments/43177-check_ifstatus.txt
diff options
context:
space:
mode:
Diffstat (limited to 'web/attachments/43177-check_ifstatus.txt')
-rw-r--r--web/attachments/43177-check_ifstatus.txt27
1 files changed, 27 insertions, 0 deletions
diff --git a/web/attachments/43177-check_ifstatus.txt b/web/attachments/43177-check_ifstatus.txt
new file mode 100644
index 0000000..476923a
--- /dev/null
+++ b/web/attachments/43177-check_ifstatus.txt
@@ -0,0 +1,27 @@
1--- check_ifstatus.orig Sat Feb 22 18:18:00 2003
2+++ check_ifstatus Sat Feb 22 17:37:06 2003
3@@ -156,6 +156,7 @@
4
5 push(@snmpoids,$snmpIfOperStatus);
6 push(@snmpoids,$snmpIfAdminStatus);
7+push(@snmpoids,$snmpLocIfDescr);
8 push(@snmpoids,$snmpIfDescr);
9 push(@snmpoids,$snmpIfType);
10 push(@snmpoids,$snmpIfName) if ( defined $ifXTable);
11@@ -177,6 +178,7 @@
12 $key = $1;
13 $ifStatus{$key}{$snmpoid} = $response->{$snmpkey};
14 }
15+print $snmpLocIfDescr;
16 }
17
18
19@@ -193,7 +195,7 @@
20 $ifdown++ ;
21 $ifmessage .= sprintf("%s: down -> %s<BR>",
22 $ifStatus{$key}{$snmpIfDescr},
23- $ifStatus{$key}{$snmpIfName});
24+ $ifStatus{$key}{$snmpLocIfDescr});
25 }
26 if ($ifStatus{$key}{$snmpIfOperStatus} == 5 ) { $ifdormant++ ;}
27 }