break: add cisco ironport cpu
This commit is contained in:
parent
6374211b87
commit
2543a56b14
|
@ -36,7 +36,7 @@ sub set_counters {
|
||||||
key_values => [ { name => 'perCentCPUUtilization' } ],
|
key_values => [ { name => 'perCentCPUUtilization' } ],
|
||||||
output_template => 'cpu global usage is: %.2f%%',
|
output_template => 'cpu global usage is: %.2f%%',
|
||||||
perfdatas => [
|
perfdatas => [
|
||||||
{ label => 'cpu_global', value => 'perCentCPUUtilization_absolute', template => '%.2f',
|
{ value => 'perCentCPUUtilization_absolute', template => '%.2f',
|
||||||
min => 0, max => 100, unit => '%' },
|
min => 0, max => 100, unit => '%' },
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
@ -45,7 +45,7 @@ sub set_counters {
|
||||||
key_values => [ { name => 'cacheCpuUsage' } ],
|
key_values => [ { name => 'cacheCpuUsage' } ],
|
||||||
output_template => 'cpu proxy usage is: %.2f%%',
|
output_template => 'cpu proxy usage is: %.2f%%',
|
||||||
perfdatas => [
|
perfdatas => [
|
||||||
{ label => 'cpu_proxy', value => 'cacheCpuUsage_absolute', template => '%.2f',
|
{ value => 'cacheCpuUsage_absolute', template => '%.2f',
|
||||||
min => 0, max => 100, unit => '%' },
|
min => 0, max => 100, unit => '%' },
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
@ -55,7 +55,7 @@ sub set_counters {
|
||||||
|
|
||||||
sub new {
|
sub new {
|
||||||
my ($class, %options) = @_;
|
my ($class, %options) = @_;
|
||||||
my $self = $class->SUPER::new(package => __PACKAGE__, %options);
|
my $self = $class->SUPER::new(package => __PACKAGE__, %options, force_new_perfdata => 1);
|
||||||
bless $self, $class;
|
bless $self, $class;
|
||||||
|
|
||||||
$options{options}->add_options(arguments => {
|
$options{options}->add_options(arguments => {
|
||||||
|
|
Loading…
Reference in New Issue