Topic: fusioninventory agent daemon and interactive results differ

Hi,

FreeBSD 11.1-RELEASE, Hyper-V, fusioninventory-agent 2.4

Fusioninventory agent in interactive and daemon mode produces different xml (.ocs) files.

E.g.
<VMSYSTEM>Hyper-V</VMSYSTEM> - interactive (from cli)
<VMSYSTEM>Physical</VMSYSTEM> - demon

Also <BIOS>, <CONTROLLERS>, <CPUS> and <MEMORIES> sections are missing for daemon.

Re: fusioninventory agent daemon and interactive results differ

Are you running cli with the same user than daemon ?
A reason could be the path changes between the 2 modes so few important system commands may miss to the daemon.  How do you start the daemon ? From a dedicated script ?

Re: fusioninventory agent daemon and interactive results differ

gbougard wrote:

Are you running cli with the same user than daemon ?
A reason could be the path changes between the 2 modes so few important system commands may miss to the daemon.  How do you start the daemon ? From a dedicated script ?

I am running cli with the same user than startup script included with FreeBSD package distribution which starts agent in daemon mode.

Tried to launch agent in daemon mode from cli just now. All works fine.

There is a problem in startup script. I'm looking for

Re: fusioninventory agent daemon and interactive results differ

Quick solution was add

PATH=$PATH:/usr/local/sbin:/usr/local/bin

to dedicated script.

It's not very good but works.

Maybe something else need to change.

I see some differences in CMD key for PROCESSES. For daemon mode from startup script these keys seems truncated.