2012-05-31 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/WMIServer.pm: Merged from 4.0 branch. Hide wmic error messages and improved error checking. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6386 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
9013a6a540
commit
a05ae1593b
|
@ -1,3 +1,8 @@
|
||||||
|
2012-05-31 Ramon Novoa <rnovoa@artica.es>
|
||||||
|
|
||||||
|
* lib/PandoraFMS/WMIServer.pm: Merged from 4.0 branch. Hide wmic error
|
||||||
|
messages and improved error checking.
|
||||||
|
|
||||||
2012-05-30 Sancho Lerena <slerena@artica.es>
|
2012-05-30 Sancho Lerena <slerena@artica.es>
|
||||||
|
|
||||||
* lib/PandoraFMS/Core.pm: Updated batch statistic queries to get
|
* lib/PandoraFMS/Core.pm: Updated batch statistic queries to get
|
||||||
|
|
|
@ -154,8 +154,8 @@ sub data_consumer ($$) {
|
||||||
logger ($pa_config, "Executing AM # $module_id WMI command '$wmi_command'", 9);
|
logger ($pa_config, "Executing AM # $module_id WMI command '$wmi_command'", 9);
|
||||||
|
|
||||||
# Execute command
|
# Execute command
|
||||||
my $module_data = `$wmi_command`;
|
my $module_data = `$wmi_command 2>/dev/null`;
|
||||||
if (! defined ($module_data)) {
|
if ($? ne 0 || ! defined ($module_data)) {
|
||||||
pandora_update_module_on_error ($pa_config, $module, $dbh);
|
pandora_update_module_on_error ($pa_config, $module, $dbh);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue