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