From 2702d91a76b34b278181be71ac052ff8ed9157ee Mon Sep 17 00:00:00 2001 From: qgarnier Date: Fri, 28 Apr 2023 10:07:58 +0200 Subject: [PATCH] (plugin) network::stormshield::snmp - mode vpn-status fix threshold status (#4393) --- src/network/stormshield/snmp/mode/vpnstatus.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/network/stormshield/snmp/mode/vpnstatus.pm b/src/network/stormshield/snmp/mode/vpnstatus.pm index 651c40806..ae122de87 100644 --- a/src/network/stormshield/snmp/mode/vpnstatus.pm +++ b/src/network/stormshield/snmp/mode/vpnstatus.pm @@ -26,6 +26,7 @@ use strict; use warnings; use centreon::plugins::misc; use Digest::MD5 qw(md5_hex); +use centreon::plugins::templates::catalog_functions qw(catalog_status_threshold_ng); sub custom_traffic_perfdata { my ($self, %options) = @_; @@ -86,10 +87,9 @@ sub set_counters { key_values => [ { name => 'state' }, { name => 'ipSrc' }, { name => 'ipDst' } ], - closure_custom_calc => $self->can('custom_status_calc'), output_template => 'state: %s', closure_custom_perfdata => sub { return 0; }, - closure_custom_threshold_check => $self->can('custom_threshold_output') + closure_custom_threshold_check => \&catalog_status_threshold_ng } }, { label => 'traffic', nlabel => 'vpn.traffic.bitspersecond', set => {