From 659cd6183101a5802ae5d21d99d4839b7413b249 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Sat, 23 Apr 2016 18:43:38 +0200 Subject: [PATCH] + add callback --- centreon/plugins/templates/hardware.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/centreon/plugins/templates/hardware.pm b/centreon/plugins/templates/hardware.pm index 0c16369fe..d01a5e600 100644 --- a/centreon/plugins/templates/hardware.pm +++ b/centreon/plugins/templates/hardware.pm @@ -39,6 +39,7 @@ sub set_system { #$self->{cb_hook1} = 'callbackname'; # before the loads #$self->{cb_hook2} = 'callbackname'; # between loads and requests #$self->{cb_hook3} = 'callbackname'; # after requests + #$self->{cb_hook4} = 'callbackname'; # after output # Example for threshold: #$self->{thresholds} = { @@ -283,6 +284,8 @@ sub run { short_msg => 'No components are checked.'); } + $self->call_object_callback(method_name => $self->{cb_hook4}, %options); + $self->{output}->display(); $self->{output}->exit(); }