diff --git a/network/f5/bigip/mode/nodestatus.pm b/network/f5/bigip/mode/nodestatus.pm index 670c5ed50..05cd16fb9 100644 --- a/network/f5/bigip/mode/nodestatus.pm +++ b/network/f5/bigip/mode/nodestatus.pm @@ -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', diff --git a/network/f5/bigip/mode/poolstatus.pm b/network/f5/bigip/mode/poolstatus.pm index 114851d5a..f184244d2 100644 --- a/network/f5/bigip/mode/poolstatus.pm +++ b/network/f5/bigip/mode/poolstatus.pm @@ -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', diff --git a/network/f5/bigip/mode/virtualserverstatus.pm b/network/f5/bigip/mode/virtualserverstatus.pm index 32ec90b91..3075a70bc 100644 --- a/network/f5/bigip/mode/virtualserverstatus.pm +++ b/network/f5/bigip/mode/virtualserverstatus.pm @@ -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} . "' ";