+ fix naming and syntax
This commit is contained in:
parent
0c7c7e4e81
commit
54b4f7ec3c
|
@ -30,7 +30,7 @@ sub custom_usage_perfdata {
|
|||
|
||||
$self->{output}->perfdata_add(
|
||||
label => 'used', unit => 'B',
|
||||
nlabel => $self->{label},
|
||||
nlabel => $self->{nlabel},
|
||||
instances => $self->use_instances(extra_instance => $options{extra_instance}) ? $self->{result_values}->{display} : undef,
|
||||
value => $self->{result_values}->{used},
|
||||
warning => $self->{perfdata}->get_perfdata_for_output(label => 'warning-' . $self->{thlabel}, total => $self->{result_values}->{total}, cast_int => 1),
|
||||
|
|
|
@ -33,7 +33,7 @@ sub set_counters {
|
|||
];
|
||||
|
||||
$self->{maps_counters}->{cpu} = [
|
||||
{ label => 'cpu-30s', nlabel => 'cpu.utilization.30s.average', set => {
|
||||
{ label => 'cpu-30s', nlabel => 'cpu.utilization.30s.percentage', set => {
|
||||
key_values => [ { name => 'cpu_30s' }, { name => 'display' } ],
|
||||
output_template => '30s : %s %%',
|
||||
perfdatas => [
|
||||
|
@ -42,7 +42,7 @@ sub set_counters {
|
|||
],
|
||||
}
|
||||
},
|
||||
{ label => 'cpu-1m', nlabel => 'cpu.utilization.1m.average', set => {
|
||||
{ label => 'cpu-1m', nlabel => 'cpu.utilization.1m.percentage', set => {
|
||||
key_values => [ { name => 'cpu_1m' }, { name => 'display' } ],
|
||||
output_template => '1m : %s %%',
|
||||
perfdatas => [
|
||||
|
|
|
@ -76,7 +76,7 @@ sub set_counters {
|
|||
],
|
||||
}
|
||||
},
|
||||
{ label => 'traffic-in', nlabel => 'virtualserver.traffic.in.bitsperseconds', set => {
|
||||
{ label => 'traffic-in', nlabel => 'virtualserver.traffic.in.bitspersecond', set => {
|
||||
key_values => [ { name => 'axVirtualServerStatBytesIn', diff => 1 }, { name => 'display' } ],
|
||||
per_second => 1, output_change_bytes => 2,
|
||||
output_template => 'Traffic In : %s %s/s',
|
||||
|
@ -86,7 +86,7 @@ sub set_counters {
|
|||
],
|
||||
}
|
||||
},
|
||||
{ label => 'traffic-out', nlabel => 'virtualserver.traffic.out.bitsperseconds', set => {
|
||||
{ label => 'traffic-out', nlabel => 'virtualserver.traffic.out.bitspersecond', set => {
|
||||
key_values => [ { name => 'axVirtualServerStatBytesOut', diff => 1 }, { name => 'display' } ],
|
||||
per_second => 1, output_change_bytes => 2,
|
||||
output_template => 'Traffic Out : %s %s/s',
|
||||
|
|
|
@ -33,7 +33,7 @@ sub set_counters {
|
|||
{ name => 'ssid', type => 1, cb_prefix_output => 'prefix_ssid_output', message_multiple => 'All users by SSID are ok' },
|
||||
];
|
||||
$self->{maps_counters}->{global} = [
|
||||
{ label => 'total', nlabel => 'users.total.count', set => {
|
||||
{ label => 'total', nlabel => 'users.current.count', set => {
|
||||
key_values => [ { name => 'total' } ],
|
||||
output_template => 'Total Users : %s',
|
||||
perfdatas => [
|
||||
|
@ -44,7 +44,7 @@ sub set_counters {
|
|||
},
|
||||
];
|
||||
$self->{maps_counters}->{ssid} = [
|
||||
{ label => 'ssid', nlabel => 'ssid.users.total.count', set => {
|
||||
{ label => 'ssid', nlabel => 'ssid.users.cuurent.count', set => {
|
||||
key_values => [ { name => 'total' }, { name => 'display' } ],
|
||||
output_template => 'users : %s',
|
||||
perfdatas => [
|
||||
|
|
Loading…
Reference in New Issue