2010-10-04 Ramon Novoa <rnovoa@artica.es>
* plugins/inventory: Fixed inventory process information. * pandora_agent: Fixed an error that showed when no logfile was specified in the agent configuration file. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3338 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
d2bc1129dc
commit
820973df4b
|
@ -1,3 +1,10 @@
|
|||
2010-10-04 Ramon Novoa <rnovoa@artica.es>
|
||||
|
||||
* plugins/inventory: Fixed inventory process information.
|
||||
|
||||
* pandora_agent: Fixed an error that showed when no logfile was
|
||||
specified in the agent configuration file.
|
||||
|
||||
2010-09-27 Junichi Satoh <junichi@rworks.jp>
|
||||
|
||||
* FreeBSD/pandora_agent: Fixed a typo.
|
||||
|
|
|
@ -400,8 +400,14 @@ sub read_config (;$) {
|
|||
}
|
||||
}
|
||||
|
||||
# Token not found
|
||||
if (defined ($token)) {
|
||||
close (CONF_FILE);
|
||||
return undef;
|
||||
}
|
||||
|
||||
# Update the agent MD5 since agent_name may have changed
|
||||
$AgentMD5 = md5 ($Conf{'agent_name'}) unless (defined ($token));
|
||||
$AgentMD5 = md5 ($Conf{'agent_name'});
|
||||
$RemoteConfFile = "$AgentMD5.conf";
|
||||
$RemoteMD5File = "$AgentMD5.md5";
|
||||
|
||||
|
@ -409,7 +415,6 @@ sub read_config (;$) {
|
|||
$ThreadSem = Thread::Semaphore->new ($Conf{'agent_threads'}) if defined ($Sem);
|
||||
|
||||
close (CONF_FILE);
|
||||
return '';
|
||||
}
|
||||
|
||||
################################################################################
|
||||
|
|
|
@ -93,7 +93,7 @@ sub get_servicies_init_machine($$) {
|
|||
sub get_processes ($$) {
|
||||
my ($name, $modules) = @_;
|
||||
|
||||
my $script = "ps aux";
|
||||
my $script = "ps -eo command";
|
||||
|
||||
my @services = `$script`;
|
||||
foreach my $row (@services) {
|
||||
|
|
Loading…
Reference in New Issue