Skip to content

Commit

Permalink
(plugin) network::fortinet::fortigate::restapi - mode system fix not … (
Browse files Browse the repository at this point in the history
  • Loading branch information
garnier-quentin authored Oct 2, 2023
1 parent 848295f commit 842f00d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/network/fortinet/fortigate/restapi/mode/system.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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 } }
]
}
];
Expand Down Expand Up @@ -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 '' &&
Expand Down

0 comments on commit 842f00d

Please sign in to comment.