diff options
author | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2023-09-07 15:37:34 (GMT) |
---|---|---|
committer | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2023-09-07 15:37:34 (GMT) |
commit | 4b58104107a9287556db78204ed9c5b10bc88bdc (patch) | |
tree | af388998adbcbccfbc421152e4eb98091634f078 | |
parent | 0ee08563c5f4a7eba7151539211a732d943ab291 (diff) | |
download | monitoring-plugins-4b58104107a9287556db78204ed9c5b10bc88bdc.tar.gz |
Use compile time determined path to snmpget in check_wave
-rwxr-xr-x | plugins-scripts/check_wave.pl | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins-scripts/check_wave.pl b/plugins-scripts/check_wave.pl index 41e15f5..663a83d 100755 --- a/plugins-scripts/check_wave.pl +++ b/plugins-scripts/check_wave.pl | |||
@@ -50,34 +50,34 @@ my $critical = $1 if ($opt_c =~ /([0-9]+)/); | |||
50 | ($opt_w) || ($opt_w = shift) || ($opt_w = 60); | 50 | ($opt_w) || ($opt_w = shift) || ($opt_w = 60); |
51 | my $warning = $1 if ($opt_w =~ /([0-9]+)/); | 51 | my $warning = $1 if ($opt_w =~ /([0-9]+)/); |
52 | 52 | ||
53 | $low1 = `snmpget $host public .1.3.6.1.4.1.74.2.21.1.2.1.8.1`; | 53 | $low1 = `$utils::PATH_TO_SNMPGET $host public .1.3.6.1.4.1.74.2.21.1.2.1.8.1`; |
54 | @test = split(/ /,$low1); | 54 | @test = split(/ /,$low1); |
55 | $low1 = $test[2]; | 55 | $low1 = $test[2]; |
56 | 56 | ||
57 | $med1 = `snmpget $host public .1.3.6.1.4.1.74.2.21.1.2.1.9.1`; | 57 | $med1 = `$utils::PATH_TO_SNMPGET $host public .1.3.6.1.4.1.74.2.21.1.2.1.9.1`; |
58 | @test = split(/ /,$med1); | 58 | @test = split(/ /,$med1); |
59 | $med1 = $test[2]; | 59 | $med1 = $test[2]; |
60 | 60 | ||
61 | $high1 = `snmpget $host public .1.3.6.1.4.1.74.2.21.1.2.1.10.1`; | 61 | $high1 = `$utils::PATH_TO_SNMPGET $host public .1.3.6.1.4.1.74.2.21.1.2.1.10.1`; |
62 | @test = split(/ /,$high1); | 62 | @test = split(/ /,$high1); |
63 | $high1 = $test[2]; | 63 | $high1 = $test[2]; |
64 | 64 | ||
65 | sleep(2); | 65 | sleep(2); |
66 | 66 | ||
67 | $snr = `snmpget $host public .1.3.6.1.4.1.762.2.5.2.1.17.1`; | 67 | $snr = `$utils::PATH_TO_SNMPGET $host public .1.3.6.1.4.1.762.2.5.2.1.17.1`; |
68 | @test = split(/ /,$snr); | 68 | @test = split(/ /,$snr); |
69 | $snr = $test[2]; | 69 | $snr = $test[2]; |
70 | $snr = int($snr*25); | 70 | $snr = int($snr*25); |
71 | 71 | ||
72 | $low2 = `snmpget $host public .1.3.6.1.4.1.74.2.21.1.2.1.8.1`; | 72 | $low2 = `$utils::PATH_TO_SNMPGET $host public .1.3.6.1.4.1.74.2.21.1.2.1.8.1`; |
73 | @test = split(/ /,$low2); | 73 | @test = split(/ /,$low2); |
74 | $low2 = $test[2]; | 74 | $low2 = $test[2]; |
75 | 75 | ||
76 | $med2 = `snmpget $host public .1.3.6.1.4.1.74.2.21.1.2.1.9.1`; | 76 | $med2 = `$utils::PATH_TO_SNMPGET $host public .1.3.6.1.4.1.74.2.21.1.2.1.9.1`; |
77 | @test = split(/ /,$med2); | 77 | @test = split(/ /,$med2); |
78 | $med2 = $test[2]; | 78 | $med2 = $test[2]; |
79 | 79 | ||
80 | $high2 = `snmpget $host public .1.3.6.1.4.1.74.2.21.1.2.1.10.1`; | 80 | $high2 = `$utils::PATH_TO_SNMPGET $host public .1.3.6.1.4.1.74.2.21.1.2.1.10.1`; |
81 | @test = split(/ /,$high2); | 81 | @test = split(/ /,$high2); |
82 | $high2 = $test[2]; | 82 | $high2 = $test[2]; |
83 | 83 | ||