Replies: 2 comments
|
Hi @Fregf sorry, but this could be indeed a security hole to include such feature. Actually, you're still free to add the module you want under Regarding |
|
I think putting your own scripts in /usr/share is bad practice, because these locations are managed by the distro's package manager. It's better to store custom stuff in /usr/local. About --additional-content, the annoying thing is that you need to create a cron job or something like that to generate the XML file, and even then you are never completely sure it is up to date when glpi-agent decides to send the inventory. For that reason it would be handy that glpi-agent could call the script itself when making the inventory. |
Uh oh!
There was an error while loading. Please reload this page.
Your idea
I would like glpi-agent to detect some software on Linux which I installed manually (not using the OS package manager), usually in /usr/local or /opt. I understand I can do this by creating a Perl module in /usr/share/glpi-agent/lib/GLPI/Agent/Task/Inventory. However, as I prefer everything in /usr to be managed by the package manager, I would like to store this module somewhere in /usr/local. Could glpi-agent be modified so that it also reads additional modules from, for example, /usr/local/share/glpi-agent/lib/GLPI/Agent ?
Alternatively, an option like --additional-content but which does not take a static XML file, but a script which when executed outputs the XML. For example --addtional-content-script
All reactions