[Pkg-nagios-changes] [pkg-nagios-snmp-plugins] 01/01: Fixing 20_check_snmp_load_multiple_cpus
Jan Wagner
waja at moszumanska.debian.org
Mon May 11 19:27:05 UTC 2015
This is an automated email from the git hooks/post-receive script.
waja pushed a commit to branch master
in repository pkg-nagios-snmp-plugins.
commit a31b4284d5e3f9d4f374894ed5518cc2cb4245cb
Author: Jan Wagner <waja at cyconet.org>
Date: Mon May 11 21:24:35 2015 +0200
Fixing 20_check_snmp_load_multiple_cpus
Via https://github.com/dnsmichi/manubulon-snmp/commit/000e462c339d9153f930ec4a01acc1ecb024005f.patch
---
debian/patches/20_check_snmp_load_multiple_cpus | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
diff --git a/debian/patches/20_check_snmp_load_multiple_cpus b/debian/patches/20_check_snmp_load_multiple_cpus
index 9032868..e1a9ce4 100644
--- a/debian/patches/20_check_snmp_load_multiple_cpus
+++ b/debian/patches/20_check_snmp_load_multiple_cpus
@@ -16,11 +16,9 @@ fixes #6
check_snmp_load.pl | 19 ++++++++++++++++++-
1 file changed, 18 insertions(+), 1 deletion(-)
-diff --git a/check_snmp_load.pl b/check_snmp_load.pl
-index fd13f71..1f29ac5 100755
--- a/check_snmp_load.pl
+++ b/check_snmp_load.pl
-@@ -363,6 +363,20 @@ sub check_options {
+@@ -363,11 +363,25 @@
if ($o_check_type eq "netsl") {
verb("Checking linux load");
@@ -39,9 +37,17 @@ index fd13f71..1f29ac5 100755
+my $ncpu = keys %$resultat;
+
# Get load table
- my $resultat = (Net::SNMP->VERSION lt 4) ?
+-my $resultat = (Net::SNMP->VERSION lt 4) ?
++$resultat = (Net::SNMP->VERSION lt 4) ?
$session->get_table($linload_table)
-@@ -397,10 +411,13 @@ sub check_options {
+- : $session->get_table(Baseoid => $linload_table);
+-
++ : $session->get_table(Baseoid => $linload_table);
++
+ if (!defined($resultat)) {
+ printf("ERROR: Description table : %s.\n", $session->error);
+ $session->close;
+@@ -397,10 +411,13 @@
for (my $i=0;$i<3;$i++) { $load[$i] = $$resultat{$linload_load . "." . $iload[$i]}};
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-nagios/pkg-nagios-snmp-plugins.git
More information about the Pkg-nagios-changes
mailing list