Hi all.
I have a couple of questions. I have zabbix 1.8.6 monitoring some Windows services. I need to create an action, makes these services restart in case of they are stopped/unavailable/etc. So, the remote command is
And all I need is to put service name from item's key into the macros like this
And create single action with command like
insteed of creation multiple commands for every monitored service. Is the macros I need exist? Or should I create my own? If I nedd to create my own one, can anybody please explain me how to do it, cause I haven't found any deep enought explanation of the process in the documentation?
And another question is if exists 2 sequential remote commands, one after another, and it is supposed that second command should execute only after first has been executed and done is it right way to push them like this
Or should I make some sort of waiting between the commands:
Thx.
I have a couple of questions. I have zabbix 1.8.6 monitoring some Windows services. I need to create an action, makes these services restart in case of they are stopped/unavailable/etc. So, the remote command is
net start "SERVICE_NAME"
service_state[DNS] ==> {MACROS}=DNS
net start {MACROS}
And another question is if exists 2 sequential remote commands, one after another, and it is supposed that second command should execute only after first has been executed and done is it right way to push them like this
net stop "SERVICE_NAME"
net start "SERVICE NAME"
net start "SERVICE NAME"
net stop "SERVICE_NAME"
ping -n 5 127.0.0.1 > null
net start "SERVICE NAME"
ping -n 5 127.0.0.1 > null
net start "SERVICE NAME"
Comment