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/43177-check_ifstatus.txt | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 web/attachments/43177-check_ifstatus.txt (limited to 'web/attachments/43177-check_ifstatus.txt') 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 @@ +--- 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
", + $ifStatus{$key}{$snmpIfDescr}, +- $ifStatus{$key}{$snmpIfName}); ++ $ifStatus{$key}{$snmpLocIfDescr}); + } + if ($ifStatus{$key}{$snmpIfOperStatus} == 5 ) { $ifdormant++ ;} + } -- cgit v1.2.3-74-g34f1