[Fusioninventory-devel] FusionAgent extension
Guillaume Rousse
guillomovitch at gmail.com
Wed Nov 27 08:57:03 UTC 2013
Le 26/11/2013 15:30, Joachim.Setzer at t-systems.com a écrit :
> Hi All,
> we need to check differnet tings an a client where the agent is running:
> for example the uptime and load of the client
> à How can we extend the agent to provide such informations ?
Hello Joachim.
Your need seems just to extend the amount of information reported by an
inventory task. You have basically two options:
1) use 'additional-content' configuration directive to point to another
XML file whose content will be dynamically merged to the result produced
by the agent
2) modify the agent to add the required informations, by adding
additional perl code under F::A::Task::Inventory namespace. That's a bit
more invasive (you need to deploy the modified agent), but you can
submit your modifications for inclusion in a future version.
Caution, in both case, you'll just change what is reported by the agent,
not the way your server (whatever it is) handles it, meaning it will be
probably just ignored.
Also, uptime is already reported indirectly through
OPERATINGSYSTEM/BOOT_TIME element.
--
Guillaume
More information about the Fusioninventory-devel
mailing list