diff options
Diffstat (limited to 'web/attachments/43179-check_ifstatus.txt')
-rw-r--r-- | web/attachments/43179-check_ifstatus.txt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/web/attachments/43179-check_ifstatus.txt b/web/attachments/43179-check_ifstatus.txt new file mode 100644 index 0000000..69b540a --- /dev/null +++ b/web/attachments/43179-check_ifstatus.txt | |||
@@ -0,0 +1,19 @@ | |||
1 | --- check_ifstatus.orig Sat Feb 22 18:18:00 2003 | ||
2 | +++ check_ifstatus Sat Feb 22 18:23:32 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 | @@ -193,7 +194,7 @@ | ||
12 | $ifdown++ ; | ||
13 | $ifmessage .= sprintf("%s: down -> %s<BR>", | ||
14 | $ifStatus{$key}{$snmpIfDescr}, | ||
15 | - $ifStatus{$key}{$snmpIfName}); | ||
16 | + $ifStatus{$key}{$snmpLocIfDescr}); | ||
17 | } | ||
18 | if ($ifStatus{$key}{$snmpIfOperStatus} == 5 ) { $ifdormant++ ;} | ||
19 | } \ No newline at end of file | ||