break: cisco ironport cpu metrics

This commit is contained in:
garnier-quentin 2019-12-13 14:35:39 +01:00
parent 1405d00775
commit dcee25df07
1 changed files with 9 additions and 15 deletions

View File

@ -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