2008-07-29 Ramon Novoa <rnovoa@artica.es>
* bin/pandora_wmi: Small fixes. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@980 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
0398b05bbc
commit
897c0469a1
|
@ -1,3 +1,7 @@
|
|||
2008-07-29 Ramon Novoa <rnovoa@artica.es>
|
||||
|
||||
* bin/pandora_wmi: Small fixes.
|
||||
|
||||
2008-07-25 Sancho Lerena <slerena@gmail.com>
|
||||
|
||||
* pandora_network: Added a defined() check for tcp_send string.
|
||||
|
|
|
@ -27,6 +27,7 @@ use Date::Manip; # Needed to manipulate DateTime formats of input, output
|
|||
use Time::Local; # DateTime basic manipulation
|
||||
use threads;
|
||||
use threads::shared;
|
||||
use HTML::Entities;
|
||||
|
||||
# Pandora Modules
|
||||
use PandoraFMS::Config;
|
||||
|
@ -338,13 +339,12 @@ sub exec_wmi_module {
|
|||
# Name|State
|
||||
# Eventlog|Running
|
||||
|
||||
my $wmi_query = $agent_module->{'snmp_oid'};
|
||||
$wmi_query =~ s/"/\"/g;
|
||||
$wmi_query =~ s/\"/\\\"/g;
|
||||
my $wmi_query = decode_entities($agent_module->{'snmp_oid'});
|
||||
$wmi_query =~ s/\"/\'/g;
|
||||
|
||||
$wmi_command = $wmi_command . " -U ". $agent_module->{'plugin_user'} ."%". $agent_module->{'plugin_pass'};
|
||||
$wmi_command = $wmi_command . " //". $agent_module->{'ip_target'};
|
||||
$wmi_command = $wmi_command . " \"". $wmi_query . "\"";
|
||||
$wmi_command .= " -U \"". $agent_module->{'plugin_user'} ."\"%\"". $agent_module->{'plugin_pass'} . "\"";
|
||||
$wmi_command .= " //". $agent_module->{'ip_target'};
|
||||
$wmi_command .= " \"". $wmi_query . "\"";
|
||||
logger ($pa_config, "Executing AM # $id_am WMI command '$wmi_command'", 9);
|
||||
|
||||
eval {
|
||||
|
|
Loading…
Reference in New Issue