(plugin) network::fortinet::fortigate::restapi - mode system fix not … (#4668)
This commit is contained in:
parent
848295f0c2
commit
842f00d558
|
@ -49,9 +49,9 @@ sub set_counters {
|
|||
$self->{maps_counters_type} = [
|
||||
{ name => 'vdoms', type => 3, cb_prefix_output => 'prefix_vdom_output', cb_long_output => 'vdom_long_output', indent_long_output => ' ', message_multiple => 'All vdom systems are ok',
|
||||
group => [
|
||||
{ name => 'cpu', type => 0, display_short => 0, skipped_code => { -10 => 1 } },
|
||||
{ name => 'memory', type => 0, display_short => 0, skipped_code => { -10 => 1 } },
|
||||
{ name => 'session', type => 0, display_short => 0, skipped_code => { -10 => 1 } }
|
||||
{ name => 'cpu', type => 0, skipped_code => { -10 => 1 } },
|
||||
{ name => 'memory', type => 0, skipped_code => { -10 => 1 } },
|
||||
{ name => 'session', type => 0, skipped_code => { -10 => 1 } }
|
||||
]
|
||||
}
|
||||
];
|
||||
|
@ -110,6 +110,10 @@ sub manage_selection {
|
|||
get_param => ['global=1']
|
||||
);
|
||||
|
||||
if (ref($resources) ne 'ARRAY') {
|
||||
$resources = [$resources];
|
||||
}
|
||||
|
||||
$self->{vdoms} = {};
|
||||
foreach my $resource (@$resources) {
|
||||
next if (defined($self->{option_results}->{filter_vdom}) && $self->{option_results}->{filter_vdom} ne '' &&
|
||||
|
|
Loading…
Reference in New Issue