mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-23 13:45:18 +02:00
+ 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…
x
Reference in New Issue
Block a user