mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 15:54:29 +02:00
Fix WMIServer, use default if not exists
This commit is contained in:
parent
89714f3fd1
commit
e265c03925
@ -208,6 +208,11 @@ sub data_consumer ($$) {
|
|||||||
my @wmi_columns = split /\s*,\s*/, $1;
|
my @wmi_columns = split /\s*,\s*/, $1;
|
||||||
my $selected_col = $wmi_columns[$module->{'tcp_port'}];
|
my $selected_col = $wmi_columns[$module->{'tcp_port'}];
|
||||||
|
|
||||||
|
if (!defined($selected_col)) {
|
||||||
|
logger($pa_config, 'Warning, WMI module ' . safe_output($module->{'name'}) . ' column missconfigured, using first available.', 10);
|
||||||
|
$selected_col = shift @wmi_columns;
|
||||||
|
}
|
||||||
|
|
||||||
# Get result col number
|
# Get result col number
|
||||||
my @output_col = split(/\|/, $output[1]);
|
my @output_col = split(/\|/, $output[1]);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user