We've been very happy with zabbix thus far but are stuck on one area of the setup using 1.1.
What we're trying to do is define an action that will execute a remote command when a trigger is on. The catch is, that the trigger is based on a template. When we set this up without using templates at all, everything worked great.
Here is an overview of the setup:
Host1 : (Uses server template our_hosts )
Host2 : (Uses server template our_hosts )
(Also, the Host names are not FQDN's, found that bug on the boards, they are just one word names)
Triggers:
Service is down on our_hosts
Action Conditions:
Trigger = Service is down on our_hosts
Trigger Value = ON
Remote Command:
our_hosts:/path/to/a/command
I also tried doing this with a host group in the mix:
Group:
Server_Group = our_hosts
Then adding a condition to the trigger:
Group = Server_Group
Also tried explicitly adding hosts to the group by hostname instead of using a template and it did not work as well.
As you can see, the reason for wanting to setup this way is so that say for example apache goes down on any of the servers in the template group (or group). The command to restart apache is the same on every server. We don't want to create an action for each server.
Perhaps I'm just approaching this wrong as I've only been using Zabbix for two days but as of yet I can't find the solution to this in the docs or on the boards. Thanks in advance for any help.
What we're trying to do is define an action that will execute a remote command when a trigger is on. The catch is, that the trigger is based on a template. When we set this up without using templates at all, everything worked great.
Here is an overview of the setup:
Host1 : (Uses server template our_hosts )
Host2 : (Uses server template our_hosts )
(Also, the Host names are not FQDN's, found that bug on the boards, they are just one word names)
Triggers:
Service is down on our_hosts
Action Conditions:
Trigger = Service is down on our_hosts
Trigger Value = ON
Remote Command:
our_hosts:/path/to/a/command
I also tried doing this with a host group in the mix:
Group:
Server_Group = our_hosts
Then adding a condition to the trigger:
Group = Server_Group
Also tried explicitly adding hosts to the group by hostname instead of using a template and it did not work as well.
As you can see, the reason for wanting to setup this way is so that say for example apache goes down on any of the servers in the template group (or group). The command to restart apache is the same on every server. We don't want to create an action for each server.
Perhaps I'm just approaching this wrong as I've only been using Zabbix for two days but as of yet I can't find the solution to this in the docs or on the boards. Thanks in advance for any help.