mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-28 08:04:36 +02:00
+ add callback
This commit is contained in:
parent
edbfa03d1c
commit
fc60c627bc
@ -39,6 +39,7 @@ sub set_system {
|
|||||||
#$self->{cb_hook1} = 'callbackname'; # before the loads
|
#$self->{cb_hook1} = 'callbackname'; # before the loads
|
||||||
#$self->{cb_hook2} = 'callbackname'; # between loads and requests
|
#$self->{cb_hook2} = 'callbackname'; # between loads and requests
|
||||||
#$self->{cb_hook3} = 'callbackname'; # after requests
|
#$self->{cb_hook3} = 'callbackname'; # after requests
|
||||||
|
#$self->{cb_hook4} = 'callbackname'; # after output
|
||||||
|
|
||||||
# Example for threshold:
|
# Example for threshold:
|
||||||
#$self->{thresholds} = {
|
#$self->{thresholds} = {
|
||||||
@ -283,6 +284,8 @@ sub run {
|
|||||||
short_msg => 'No components are checked.');
|
short_msg => 'No components are checked.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$self->call_object_callback(method_name => $self->{cb_hook4}, %options);
|
||||||
|
|
||||||
$self->{output}->display();
|
$self->{output}->display();
|
||||||
$self->{output}->exit();
|
$self->{output}->exit();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user