From 8518f400daca0cb8370240991b7a325b99b87ccb Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Mon, 27 Jul 2020 12:34:46 +0200 Subject: [PATCH] fix fortigate unit --- .../centreon/common/fortinet/fortigate/snmp/mode/vpn.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/centreon-plugins/centreon/common/fortinet/fortigate/snmp/mode/vpn.pm b/centreon-plugins/centreon/common/fortinet/fortigate/snmp/mode/vpn.pm index 6b52882a8..e57093eb3 100644 --- a/centreon-plugins/centreon/common/fortinet/fortigate/snmp/mode/vpn.pm +++ b/centreon-plugins/centreon/common/fortinet/fortigate/snmp/mode/vpn.pm @@ -82,8 +82,8 @@ sub set_counters { }, { label => 'traffic-in', nlabel => 'vpn.traffic.in.bitspersecond', set => { key_values => [ { name => 'traffic_in', per_second => 1 }, { name => 'display' } ], - output_change_bytes => 1, output_template => 'Traffic in: %s %s/s', + output_change_bytes => 2, perfdatas => [ { label => 'traffic_in', template => '%.2f', min => 0, unit => 'b/s', label_extra_instance => 1 } ] @@ -91,8 +91,8 @@ sub set_counters { }, { label => 'traffic-out', nlabel => 'vpn.traffic.out.bitspersecond', set => { key_values => [ { name => 'traffic_out', per_second => 1 }, { name => 'display' } ], - output_change_bytes => 1, output_template => 'Traffic out: %s %s/s', + output_change_bytes => 2, perfdatas => [ { label => 'traffic_out', template => '%.2f', min => 0, unit => 'b/s', label_extra_instance => 1 } ]