mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-28 16:14:21 +02:00
(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} = [
|
$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',
|
{ 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 => [
|
group => [
|
||||||
{ name => 'cpu', type => 0, display_short => 0, skipped_code => { -10 => 1 } },
|
{ name => 'cpu', type => 0, skipped_code => { -10 => 1 } },
|
||||||
{ name => 'memory', type => 0, display_short => 0, skipped_code => { -10 => 1 } },
|
{ name => 'memory', type => 0, skipped_code => { -10 => 1 } },
|
||||||
{ name => 'session', type => 0, display_short => 0, skipped_code => { -10 => 1 } }
|
{ name => 'session', type => 0, skipped_code => { -10 => 1 } }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
@ -110,6 +110,10 @@ sub manage_selection {
|
|||||||
get_param => ['global=1']
|
get_param => ['global=1']
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (ref($resources) ne 'ARRAY') {
|
||||||
|
$resources = [$resources];
|
||||||
|
}
|
||||||
|
|
||||||
$self->{vdoms} = {};
|
$self->{vdoms} = {};
|
||||||
foreach my $resource (@$resources) {
|
foreach my $resource (@$resources) {
|
||||||
next if (defined($self->{option_results}->{filter_vdom}) && $self->{option_results}->{filter_vdom} ne '' &&
|
next if (defined($self->{option_results}->{filter_vdom}) && $self->{option_results}->{filter_vdom} ne '' &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user