(plugin) network::cisco::umbrella - Fix regex in appliance.pm mode

This commit is contained in:
lchrdn 2022-08-16 09:29:31 +02:00 committed by GitHub
parent 5aee31890c
commit 9a3e21d7bd

View File

@ -44,7 +44,7 @@ sub set_counters {
label => 'status', type => 2,
critical_default => '%{status} =~ /red/' ,
warning_default => '%{status} =~ /yellow/',
unknown_default => '%{status} =~ /(green|yellow|red|white)/',
unknown_default => '%{status} !~ /(green|yellow|red|white)/',
set => {
key_values => [ { name => 'status' } ],
closure_custom_output => $self->can('custom_status_output'),