From 0b6423f9c99d9edf8c96fefd0f6c453859395aa1 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 30 Sep 2013 00:03:24 +0200 Subject: Import Nagios Plugins site Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files. --- web/attachments/43179-check_ifstatus.txt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 web/attachments/43179-check_ifstatus.txt (limited to 'web/attachments/43179-check_ifstatus.txt') 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 @@ +--- 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
", + $ifStatus{$key}{$snmpIfDescr}, +- $ifStatus{$key}{$snmpIfName}); ++ $ifStatus{$key}{$snmpLocIfDescr}); + } + if ($ifStatus{$key}{$snmpIfOperStatus} == 5 ) { $ifdormant++ ;} + } \ No newline at end of file -- cgit v1.2.3-74-g34f1