glpi_monitoring
glpi_monitoring copied to clipboard
"Host Action" 404
If I'm using the "Host Action" button in /front/host.php
, it redirects me to /front/host_action.php
, which did not exist (neither in 0.85+1.3 nor in 0.85+1.0).
To complete this post I search in code to understand the purpose of this button.
In PluginMonitoringDisplay class, function showHostsBoard :
Button is generated by searching in table glpi_plugin_monitoring_commands for command_name like 'host_action'
in the list of commands then uses command_line field to generated the link.
Ex :
By default command named 'Host Action' has 'host_action' as field. So the link generated is host_action.php.
If I change command_line by 'echo', link will be echo.php.
But I still don't understand what to configure in this field.
The idea behind this is to allow executing a PHP script for an host ... the default script is host_action.php
that you must install on your server. On my configuration is use this script to create a new job in the Fusion Inventory plugin ... but you may do whatever you want with it.
Ok, I see. I'm going to think about a usefull script. Thanks