+ add capabilities to display number of alerts

This commit is contained in:
garnier-quentin 2017-05-19 11:21:39 +02:00
parent bb45398533
commit 5494858598
1 changed files with 6 additions and 0 deletions

View File

@ -330,6 +330,12 @@ sub run_group {
short_msg => "$total_problems problem(s) detected");
}
}
if (defined($options{config}->{display_counter_problem})) {
$self->{output}->perfdata_add(label => $options{config}->{display_counter_problem}->{label}, unit => $options{config}->{display_counter_problem}->{unit},
value => $total_problems,
min => $options{config}->{display_counter_problem}->{min}, max => $options{config}->{display_counter_problem}->{max});
}
}
sub run {