summaryrefslogtreecommitdiffstats
path: root/web/attachments/66462-nagios-plugins-1.3.1-check-wave.patch
diff options
context:
space:
mode:
Diffstat (limited to 'web/attachments/66462-nagios-plugins-1.3.1-check-wave.patch')
-rw-r--r--web/attachments/66462-nagios-plugins-1.3.1-check-wave.patch29
1 files changed, 29 insertions, 0 deletions
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 @@
1diff -ruN nagios-plugins-1.3.1/plugins-scripts/check_wave.pl nagios-plugins-1.3.1-new/plugins-scripts/check_wave.pl
2--- nagios-plugins-1.3.1/plugins-scripts/check_wave.pl 2002-10-28 13:05:08.000000000 +0000
3+++ nagios-plugins-1.3.1-new/plugins-scripts/check_wave.pl 2003-07-14 18:39:57.000000000 +0100
4@@ -50,21 +50,21 @@
5 ($opt_w) || ($opt_w = shift) || ($opt_w = 60);
6 my $warning = $1 if ($opt_w =~ /([0-9]+)/);
7
8-$low1 = `snmpget $host public .1.3.6.1.4.1.74.2.21.1.2.1.8.1`;
9+$low1 = `snmpget -v 1 -OQ -c public $host .1.3.6.1.4.1.74.2.21.1.2.1.8.1`;
10 @test = split(/ /,$low1);
11 $low1 = $test[2];
12
13-$med1 = `snmpget $host public .1.3.6.1.4.1.74.2.21.1.2.1.9.1`;
14+$med1 = `snmpget -v 1 -OQ -c public $host .1.3.6.1.4.1.74.2.21.1.2.1.9.1`;
15 @test = split(/ /,$med1);
16 $med1 = $test[2];
17
18-$high1 = `snmpget $host public .1.3.6.1.4.1.74.2.21.1.2.1.10.1`;
19+$high1 = `snmpget -v 1 -OQ -c public $host .1.3.6.1.4.1.74.2.21.1.2.1.10.1`;
20 @test = split(/ /,$high1);
21 $high1 = $test[2];
22
23 sleep(2);
24
25-$snr = `snmpget $host public .1.3.6.1.4.1.762.2.5.2.1.17.1`;
26+$snr = `snmpget -v 1 -OQ -c public $host .1.3.6.1.4.1.762.2.5.2.1.17.1`;
27 @test = split(/ /,$snr);
28 $snr = $test[2];
29 $snr = int($snr*25);