]> git.pld-linux.org Git - packages/nagios-plugins.git/blob - nagios-plugins-tainted.patch
c021ac6f069d27daab0f5ea45d47e48444d30ed3
[packages/nagios-plugins.git] / nagios-plugins-tainted.patch
1 --- ./plugins-scripts/check_breeze.pl~  2005-03-15 00:05:04.000000000 +0200
2 +++ ./plugins-scripts/check_breeze.pl   2005-03-23 20:16:43.123595875 +0200
3 @@ -15,6 +15,7 @@
4  $ENV{'PATH'}='';
5  $ENV{'BASH_ENV'}=''; 
6  $ENV{'ENV'}='';
7 +$ENV{'CDPATH'}='';
8  
9  Getopt::Long::Configure('bundling');
10  GetOptions
11 --- ./plugins-scripts/check_wave.pl~    2005-03-23 20:20:48.076385198 +0200
12 +++ ./plugins-scripts/check_wave.pl     2005-03-23 20:21:02.774789652 +0200
13 @@ -19,6 +19,7 @@
14  $ENV{'PATH'}='';
15  $ENV{'BASH_ENV'}='';
16  $ENV{'ENV'}='';
17 +$ENV{'CDPATH'}='';
18  
19  Getopt::Long::Configure('bundling');
20  GetOptions
21 @@ -53,7 +53,7 @@ my $critical = $1 if ($opt_c =~ /([0-9]+
22  ($opt_w) || ($opt_w = shift) || ($opt_w = 60);
23  my $warning = $1 if ($opt_w =~ /([0-9]+)/);
24  
25 -$low1 = `snmpget $host public .1.3.6.1.4.1.74.2.21.1.2.1.8.1 2>/dev/null`;
26 +$low1 = `/usr/bin/snmpget $host public .1.3.6.1.4.1.74.2.21.1.2.1.8.1 2>/dev/null`;
27  unless ($low1) {
28         print "UNKNOWN - Could not find the 'snmpget' command Please install\n";
29         print "the snmp commands (usually net-snmp) before using $PROGNAME\n";
30 @@ -62,30 +62,30 @@ unless ($low1) {
31  @test = split(/ /,$low1);
32  $low1 = $test[2];
33  
34 -$med1 = `snmpget $host public .1.3.6.1.4.1.74.2.21.1.2.1.9.1`;
35 +$med1 = `/usr/bin/snmpget $host public .1.3.6.1.4.1.74.2.21.1.2.1.9.1`;
36  @test = split(/ /,$med1);
37  $med1 = $test[2];
38  
39 -$high1 = `snmpget $host public .1.3.6.1.4.1.74.2.21.1.2.1.10.1`;
40 +$high1 = `/usr/bin/snmpget $host public .1.3.6.1.4.1.74.2.21.1.2.1.10.1`;
41  @test = split(/ /,$high1);
42  $high1 = $test[2];
43  
44  sleep(2);
45  
46 -$snr = `snmpget $host public .1.3.6.1.4.1.762.2.5.2.1.17.1`;
47 +$snr = `/usr/bin/snmpget $host public .1.3.6.1.4.1.762.2.5.2.1.17.1`;
48  @test = split(/ /,$snr);
49  $snr = $test[2];
50  $snr = int($snr*25);
51  
52 -$low2 = `snmpget $host public .1.3.6.1.4.1.74.2.21.1.2.1.8.1`;
53 +$low2 = `/usr/bin/snmpget $host public .1.3.6.1.4.1.74.2.21.1.2.1.8.1`;
54  @test = split(/ /,$low2);
55  $low2 = $test[2];
56  
57 -$med2 = `snmpget $host public .1.3.6.1.4.1.74.2.21.1.2.1.9.1`;
58 +$med2 = `/usr/bin/snmpget $host public .1.3.6.1.4.1.74.2.21.1.2.1.9.1`;
59  @test = split(/ /,$med2);
60  $med2 = $test[2];
61  
62 -$high2 = `snmpget $host public .1.3.6.1.4.1.74.2.21.1.2.1.10.1`;
63 +$high2 = `/usr/bin/snmpget $host public .1.3.6.1.4.1.74.2.21.1.2.1.10.1`;
64  @test = split(/ /,$high2);
65  $high2 = $test[2];
66  
This page took 0.099435 seconds and 2 git commands to generate.