Hi,
Sorry I always find it hard to write good titles.
What I mean is.
I want to monitor if httpd is running and if not it needs a restart.
Reading the manual I need to make a remote action like this:
host:/etc/init.d/httpd restart (and replace host with my servername)
or I can do this:
hostgroup#/etc/init.d/httpd restart
But I created a seperate template that just checks if http is down and if so it should somehow restart httpd on the server where it is down.
I created the item and the trigger and I have an action that can send a remote action.
But I have no clue how my trigger will execute my action. I do not see how to connect them.
The second problem,once I get actions working,is how can I tell the action script which host to use.
I really like to have one action script for restarting apache on the same type of servers. So the host needs to be passed to the action script somehow.
Does anyone have any suggestions how to do this or where to look?
thank you
Hans de Groot
Sorry I always find it hard to write good titles.
What I mean is.
I want to monitor if httpd is running and if not it needs a restart.
Reading the manual I need to make a remote action like this:
host:/etc/init.d/httpd restart (and replace host with my servername)
or I can do this:
hostgroup#/etc/init.d/httpd restart
But I created a seperate template that just checks if http is down and if so it should somehow restart httpd on the server where it is down.
I created the item and the trigger and I have an action that can send a remote action.
But I have no clue how my trigger will execute my action. I do not see how to connect them.
The second problem,once I get actions working,is how can I tell the action script which host to use.
I really like to have one action script for restarting apache on the same type of servers. So the host needs to be passed to the action script somehow.
Does anyone have any suggestions how to do this or where to look?
thank you
Hans de Groot
Comment