+ add capabilities to display number of alerts
This commit is contained in:
parent
bb45398533
commit
5494858598
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue