glpi_monitoring icon indicating copy to clipboard operation
glpi_monitoring copied to clipboard

"Host Action" 404

Open Megachip opened this issue 9 years ago • 3 comments

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).

Megachip avatar Sep 15 '15 14:09 Megachip

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.

keyser75000 avatar Aug 11 '16 12:08 keyser75000

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.

mohierf avatar Aug 11 '16 16:08 mohierf

Ok, I see. I'm going to think about a usefull script. Thanks

keyser75000 avatar Aug 12 '16 12:08 keyser75000