From dcee25df07e04453a7555b93b11c790951609495 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Fri, 13 Dec 2019 14:35:39 +0100 Subject: [PATCH] break: cisco ironport cpu metrics --- .../common/cisco/ironport/snmp/mode/cpu.pm | 24 +++++++------------ 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/centreon-plugins/centreon/common/cisco/ironport/snmp/mode/cpu.pm b/centreon-plugins/centreon/common/cisco/ironport/snmp/mode/cpu.pm index 08926e208..0dd7c3db3 100644 --- a/centreon-plugins/centreon/common/cisco/ironport/snmp/mode/cpu.pm +++ b/centreon-plugins/centreon/common/cisco/ironport/snmp/mode/cpu.pm @@ -32,20 +32,20 @@ sub set_counters { { name => 'global', type => 0, message_separator => ' - ', skipped_code => { -10 => 1 } }, ]; $self->{maps_counters}->{global} = [ - { label => 'mail', set => { + { label => 'global-utilization', nlabel => 'cpu.global.utilization.percentage', set => { key_values => [ { name => 'perCentCPUUtilization' } ], - output_template => 'CPU Mail usage is: %.2f%%', + output_template => 'cpu global usage is: %.2f%%', perfdatas => [ - { label => 'cpu_mail', value => 'perCentCPUUtilization_absolute', template => '%.2f', + { label => 'cpu_global', value => 'perCentCPUUtilization_absolute', template => '%.2f', min => 0, max => 100, unit => '%' }, ], } }, - { label => 'websecurity', set => { + { label => 'proxy-utilization', nlabel => 'cpu.proxy.utilization.percentage', set => { key_values => [ { name => 'cacheCpuUsage' } ], - output_template => 'CPU WebSecurity usage is: %.2f%%', + output_template => 'cpu proxy usage is: %.2f%%', perfdatas => [ - { label => 'cpu_websecurity', value => 'cacheCpuUsage_absolute', template => '%.2f', + { label => 'cpu_proxy', value => 'cacheCpuUsage_absolute', template => '%.2f', min => 0, max => 100, unit => '%' }, ], } @@ -85,19 +85,13 @@ __END__ =head1 MODE Check cpu usage of web security and mail (ASYNCOS-MAIL-MIB, ASYNCOSWEBSECURITYAPPLIANCE-MIB). -Use linux SNMP plugin for global CPU. =over 8 -=item B<--warning-*> +=item B<--warning-*> B<--critical-*> -Threshold warning. -Can be: 'mail', 'websecurity'. - -=item B<--critical-*> - -Threshold critical. -Can be: 'mail', 'websecurity'. +Thresholds. +Can be: 'global-utilization', 'proxy-utilization'. =back