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. --- .../66462-nagios-plugins-1.3.1-check-wave.patch | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 web/attachments/66462-nagios-plugins-1.3.1-check-wave.patch (limited to 'web/attachments/66462-nagios-plugins-1.3.1-check-wave.patch') diff --git a/web/attachments/66462-nagios-plugins-1.3.1-check-wave.patch b/web/attachments/66462-nagios-plugins-1.3.1-check-wave.patch new file mode 100644 index 0000000..98c7393 --- /dev/null +++ b/web/attachments/66462-nagios-plugins-1.3.1-check-wave.patch @@ -0,0 +1,29 @@ +diff -ruN nagios-plugins-1.3.1/plugins-scripts/check_wave.pl nagios-plugins-1.3.1-new/plugins-scripts/check_wave.pl +--- nagios-plugins-1.3.1/plugins-scripts/check_wave.pl 2002-10-28 13:05:08.000000000 +0000 ++++ nagios-plugins-1.3.1-new/plugins-scripts/check_wave.pl 2003-07-14 18:39:57.000000000 +0100 +@@ -50,21 +50,21 @@ + ($opt_w) || ($opt_w = shift) || ($opt_w = 60); + my $warning = $1 if ($opt_w =~ /([0-9]+)/); + +-$low1 = `snmpget $host public .1.3.6.1.4.1.74.2.21.1.2.1.8.1`; ++$low1 = `snmpget -v 1 -OQ -c public $host .1.3.6.1.4.1.74.2.21.1.2.1.8.1`; + @test = split(/ /,$low1); + $low1 = $test[2]; + +-$med1 = `snmpget $host public .1.3.6.1.4.1.74.2.21.1.2.1.9.1`; ++$med1 = `snmpget -v 1 -OQ -c public $host .1.3.6.1.4.1.74.2.21.1.2.1.9.1`; + @test = split(/ /,$med1); + $med1 = $test[2]; + +-$high1 = `snmpget $host public .1.3.6.1.4.1.74.2.21.1.2.1.10.1`; ++$high1 = `snmpget -v 1 -OQ -c public $host .1.3.6.1.4.1.74.2.21.1.2.1.10.1`; + @test = split(/ /,$high1); + $high1 = $test[2]; + + sleep(2); + +-$snr = `snmpget $host public .1.3.6.1.4.1.762.2.5.2.1.17.1`; ++$snr = `snmpget -v 1 -OQ -c public $host .1.3.6.1.4.1.762.2.5.2.1.17.1`; + @test = split(/ /,$snr); + $snr = $test[2]; + $snr = int($snr*25); -- cgit v1.2.3-74-g34f1