diff options
author | Sven Nierlein <sven@nierlein.de> | 2022-12-22 12:02:52 +0100 |
---|---|---|
committer | Sven Nierlein <sven@nierlein.org> | 2022-12-22 12:54:51 +0100 |
commit | 9ba8f5ed66004c102bb626e47bb36dc9d0388632 (patch) | |
tree | 87193034d6ab87f025c0416236046b2aa246f4d8 /plugins/tests/check_snmp.t | |
parent | def946bd9792ffff34b865449b18eea6e8f116af (diff) | |
download | monitoring-plugins-9ba8f5ed66004c102bb626e47bb36dc9d0388632.tar.gz |
check_snmp: always apply format when applying multiplier
Diffstat (limited to 'plugins/tests/check_snmp.t')
-rwxr-xr-x | plugins/tests/check_snmp.t | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/tests/check_snmp.t b/plugins/tests/check_snmp.t index bb5b8db6..bc03ec60 100755 --- a/plugins/tests/check_snmp.t +++ b/plugins/tests/check_snmp.t | |||
@@ -279,7 +279,7 @@ is($res->output,'SNMP OK - 4.200000 | iso.3.6.1.4.1.8072.3.2.67.19=4.200000 ' , | |||
279 | 279 | ||
280 | $res = NPTest->testCmd( "./check_snmp -H 127.0.0.1 -C public -p $port_snmp -o .1.3.6.1.4.1.8072.3.2.67.19 --multiplier=.1 -f '%.2f' "); | 280 | $res = NPTest->testCmd( "./check_snmp -H 127.0.0.1 -C public -p $port_snmp -o .1.3.6.1.4.1.8072.3.2.67.19 --multiplier=.1 -f '%.2f' "); |
281 | is($res->return_code, 0, "Test multiply RC + format" ); | 281 | is($res->return_code, 0, "Test multiply RC + format" ); |
282 | is($res->output, 'SNMP OK - 4.200000 | iso.3.6.1.4.1.8072.3.2.67.19=4.200000 ', "Test multiply .1 output + format" ); | 282 | is($res->output, 'SNMP OK - 4.20 | iso.3.6.1.4.1.8072.3.2.67.19=4.20 ', "Test multiply .1 output + format" ); |
283 | 283 | ||
284 | $res = NPTest->testCmd( "./check_snmp -H 127.0.0.1 -C public -p $port_snmp -o .1.3.6.1.4.1.8072.3.2.67.19 --multiplier=.1 -f '%.2f' -w 1"); | 284 | $res = NPTest->testCmd( "./check_snmp -H 127.0.0.1 -C public -p $port_snmp -o .1.3.6.1.4.1.8072.3.2.67.19 --multiplier=.1 -f '%.2f' -w 1"); |
285 | is($res->return_code, 1, "Test multiply RC + format + thresholds" ); | 285 | is($res->return_code, 1, "Test multiply RC + format + thresholds" ); |