diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-03-30 23:42:50 +0200 |
---|---|---|
committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-03-30 23:42:50 +0200 |
commit | d1d6ba67065c0b1a8a61d59522e19a94eb647c94 (patch) | |
tree | c9a80ad3614c40508fd0eba678c7040a98d47a87 /plugins | |
parent | a4cf2e79f75dce3828be21726f10c755f652f710 (diff) | |
download | monitoring-plugins-d1d6ba67065c0b1a8a61d59522e19a94eb647c94.tar.gz |
Add debugging to tests for CI
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/t/check_disk.t | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/t/check_disk.t b/plugins/t/check_disk.t index 019cc9fe..1d0b9838 100644 --- a/plugins/t/check_disk.t +++ b/plugins/t/check_disk.t | |||
@@ -129,6 +129,9 @@ my $warn_percth_data = $result->{'mp_test_result'}->{'checks'}->[0]->{'checks'}[ | |||
129 | my $crit_percth_data = $result->{'mp_test_result'}->{'checks'}->[0]->{'checks'}[0]->{'perfdata'}->[0]->{'crit'}->{'end'}->{'value'}; | 129 | my $crit_percth_data = $result->{'mp_test_result'}->{'checks'}->[0]->{'checks'}[0]->{'perfdata'}->[0]->{'crit'}->{'end'}->{'value'}; |
130 | my $total_percth_data = $result->{'mp_test_result'}->{'checks'}->[0]->{'checks'}[0]->{'perfdata'}->[0]->{'max'}->{'value'}; | 130 | my $total_percth_data = $result->{'mp_test_result'}->{'checks'}->[0]->{'checks'}[0]->{'perfdata'}->[0]->{'max'}->{'value'}; |
131 | 131 | ||
132 | print("warn_percth_data: " . $warn_percth_data . "\n"); | ||
133 | print("crit_percth_data: " . $crit_percth_data . "\n"); | ||
134 | |||
132 | is ($warn_percth_data <=> int((20/100)*$total_percth_data), 0, "Wrong warning in perf data using percent thresholds"); | 135 | is ($warn_percth_data <=> int((20/100)*$total_percth_data), 0, "Wrong warning in perf data using percent thresholds"); |
133 | is ($crit_percth_data <=> int((10/100)*$total_percth_data), 0, "Wrong critical in perf data using percent thresholds"); | 136 | is ($crit_percth_data <=> int((10/100)*$total_percth_data), 0, "Wrong critical in perf data using percent thresholds"); |
134 | 137 | ||