summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-03-30 23:42:50 +0200
committerLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-03-30 23:42:50 +0200
commitd1d6ba67065c0b1a8a61d59522e19a94eb647c94 (patch)
treec9a80ad3614c40508fd0eba678c7040a98d47a87 /plugins
parenta4cf2e79f75dce3828be21726f10c755f652f710 (diff)
downloadmonitoring-plugins-d1d6ba67065c0b1a8a61d59522e19a94eb647c94.tar.gz
Add debugging to tests for CI
Diffstat (limited to 'plugins')
-rw-r--r--plugins/t/check_disk.t3
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'}[
129my $crit_percth_data = $result->{'mp_test_result'}->{'checks'}->[0]->{'checks'}[0]->{'perfdata'}->[0]->{'crit'}->{'end'}->{'value'}; 129my $crit_percth_data = $result->{'mp_test_result'}->{'checks'}->[0]->{'checks'}[0]->{'perfdata'}->[0]->{'crit'}->{'end'}->{'value'};
130my $total_percth_data = $result->{'mp_test_result'}->{'checks'}->[0]->{'checks'}[0]->{'perfdata'}->[0]->{'max'}->{'value'}; 130my $total_percth_data = $result->{'mp_test_result'}->{'checks'}->[0]->{'checks'}[0]->{'perfdata'}->[0]->{'max'}->{'value'};
131 131
132print("warn_percth_data: " . $warn_percth_data . "\n");
133print("crit_percth_data: " . $crit_percth_data . "\n");
134
132is ($warn_percth_data <=> int((20/100)*$total_percth_data), 0, "Wrong warning in perf data using percent thresholds"); 135is ($warn_percth_data <=> int((20/100)*$total_percth_data), 0, "Wrong warning in perf data using percent thresholds");
133is ($crit_percth_data <=> int((10/100)*$total_percth_data), 0, "Wrong critical in perf data using percent thresholds"); 136is ($crit_percth_data <=> int((10/100)*$total_percth_data), 0, "Wrong critical in perf data using percent thresholds");
134 137