Le 26/11/2013 15:30, joachim.set...@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




_______________________________________________
Fusioninventory-devel mailing list
Fusioninventory-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/fusioninventory-devel

Répondre à