2013-03-11 Ramon Novoa <rnovoa@artica.es>
* unix/pandora_agent: Added debugging information to the execution of module_exec modules. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7823 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
514a5546be
commit
1d4b4ad5f8
|
@ -1,3 +1,8 @@
|
||||||
|
2013-03-11 Ramon Novoa <rnovoa@artica.es>
|
||||||
|
|
||||||
|
* unix/pandora_agent: Added debugging information to the execution of
|
||||||
|
module_exec modules.
|
||||||
|
|
||||||
2012-08-03 Ramon Novoa <rnovoa@artica.es>
|
2012-08-03 Ramon Novoa <rnovoa@artica.es>
|
||||||
|
|
||||||
* win32/modules/pandora_module_logevent.cc: Get the EventID from the
|
* win32/modules/pandora_module_logevent.cc: Get the EventID from the
|
||||||
|
|
|
@ -1322,9 +1322,11 @@ sub module_exec ($) {
|
||||||
# Execute the command
|
# Execute the command
|
||||||
if ($module->{'timeout'} == 0) {
|
if ($module->{'timeout'} == 0) {
|
||||||
@data = `$params 2> $DevNull`;
|
@data = `$params 2> $DevNull`;
|
||||||
|
log_message ('debug', "Executing module " . $module->{'name'} . " ($params 2> $DevNull)") if ($Conf{'debug'} eq '1');
|
||||||
} else {
|
} else {
|
||||||
my $cmd = quotemeta ($params);
|
my $cmd = quotemeta ($params);
|
||||||
@data = `$Conf{'pandora_exec'} $module->{'timeout'} $cmd 2> $DevNull`;
|
@data = `$Conf{'pandora_exec'} $module->{'timeout'} $cmd 2> $DevNull`;
|
||||||
|
log_message ('debug', "Executing module " . $module->{'name'} . ' (' . $Conf{'pandora_exec'} . ' ' . $module->{'timeout'} . " $cmd 2> $DevNull)") if ($Conf{'debug'} eq '1');
|
||||||
}
|
}
|
||||||
|
|
||||||
# Something went wrong or no data
|
# Something went wrong or no data
|
||||||
|
|
Loading…
Reference in New Issue