2008-09-24 Ramon Novoa <rnovoa@artica.es>

* bin/pandora_wmi: Added WMI namespace support.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1114 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
Ramon Novoa 2008-09-24 15:13:03 +00:00
parent b032f7d7f0
commit 9f4368acd3
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2008-09-24 Ramon Novoa <rnovoa@artica.es>
* bin/pandora_wmi: Added WMI namespace support.
2008-09-18 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/DB.pm: Added Export Server support.

View File

@ -347,6 +347,12 @@ sub exec_wmi_module {
$wmi_query =~ s/\"/\'/g;
my $wmi_command = "$wmi_client -U \"". $agent_module->{'plugin_user'} ."\"%\"". $agent_module->{'plugin_pass'} . "\"";
# Custom namespace
if ($agent_module->{'tcp_send'} ne '') {
$agent_module->{'tcp_send'} =~ s/\"/\'/g;
$wmi_command .= " --namespace=\"" . $agent_module->{'tcp_send'} . "\"";
}
$wmi_command .= " //". $agent_module->{'ip_target'};
$wmi_command .= " \"". $wmi_query . "\"";
logger ($pa_config, "Executing AM # $id_am WMI command '$wmi_command'", 9);