So I'm trying to make an action that uses a script, but in order to use that script, i need the hostid of the server node that was reported in a trigger.
Here I'll explain a little better.
Lets consider the following scenario.
1. Trigger alerts user that "No data received from server"
2. Action responds to trigger and runs a script that uses the hostid of that server that was having a problem.
How do i retrieve the hostid?
I know hostname would be {HOST.NAME} or something like that. I tried {HOST.ID} but i dont think it worked
Here I'll explain a little better.
Lets consider the following scenario.
1. Trigger alerts user that "No data received from server"
2. Action responds to trigger and runs a script that uses the hostid of that server that was having a problem.
How do i retrieve the hostid?
I know hostname would be {HOST.NAME} or something like that. I tried {HOST.ID} but i dont think it worked

Comment