+ fix bigip snmp refactoring
This commit is contained in:
parent
840c6efd9a
commit
00cbee8298
|
@ -57,7 +57,7 @@ sub set_counters {
|
|||
{ name => 'node', type => 1, cb_prefix_output => 'prefix_node_output', message_multiple => 'All Nodes are ok' },
|
||||
];
|
||||
$self->{maps_counters}->{node} = [
|
||||
{ label => 'status', set => {
|
||||
{ label => 'status', threshold => 0, set => {
|
||||
key_values => [ { name => 'AvailState' } ],
|
||||
closure_custom_calc => $self->can('custom_status_calc'),
|
||||
output_template => 'Status : %s', output_error_template => 'Status : %s',
|
||||
|
|
|
@ -57,7 +57,7 @@ sub set_counters {
|
|||
{ name => 'pool', type => 1, cb_prefix_output => 'prefix_pool_output', message_multiple => 'All Pools are ok' },
|
||||
];
|
||||
$self->{maps_counters}->{pool} = [
|
||||
{ label => 'status', set => {
|
||||
{ label => 'status', threshold => 0, set => {
|
||||
key_values => [ { name => 'AvailState' } ],
|
||||
closure_custom_calc => $self->can('custom_status_calc'),
|
||||
output_template => 'Status : %s', output_error_template => 'Status : %s',
|
||||
|
|
|
@ -57,7 +57,7 @@ sub set_counters {
|
|||
{ name => 'vs', type => 1, cb_prefix_output => 'prefix_vs_output', message_multiple => 'All Virtual Servers are ok' },
|
||||
];
|
||||
$self->{maps_counters}->{vs} = [
|
||||
{ label => 'status', set => {
|
||||
{ label => 'status', threshold => 0, set => {
|
||||
key_values => [ { name => 'AvailState' } ],
|
||||
closure_custom_calc => $self->can('custom_status_calc'),
|
||||
output_template => 'Status : %s', output_error_template => 'Status : %s',
|
||||
|
@ -69,7 +69,7 @@ sub set_counters {
|
|||
];
|
||||
}
|
||||
|
||||
sub prefix_node_output {
|
||||
sub prefix_vs_output {
|
||||
my ($self, %options) = @_;
|
||||
|
||||
return "Virtual Server '" . $options{instance_value}->{Name} . "' ";
|
||||
|
|
Loading…
Reference in New Issue