Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

"Host Action" 404 #203

Open
Megachip opened this issue Sep 15, 2015 · 3 comments
Open

"Host Action" 404 #203

Megachip opened this issue Sep 15, 2015 · 3 comments

Comments

@Megachip
Copy link

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

@keyser75000
Copy link
Contributor

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.

@mohierf
Copy link
Collaborator

mohierf commented Aug 11, 2016

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.

@keyser75000
Copy link
Contributor

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants