Hello,
I've got 2 triggers. They are ok and running :
- "Apache is not running" from the item "check apache"(Zabbix Agent)
- "Service Apache Restart" from the item "check service apache" (Zabbix trapper setting by an own php page)
I d'like to have an action with this 2 triggers.
In fact when the 2 triggers are true, the action have to be run and so Apache must be restart by a script.
I've tested my shell script and it's running.
Here is the description of the action :
Name : Action Apache Restart
Event source : Triggers
Type of calculation : AND
Conditions : (A and B) and (C)
(A) Trigger = "Apache is not running"
(B) Trigger = "Service Apache Restart"
(C) Trigger value = "TRUE"
Operations Run remote commands
(Edit : ServerName:./opt/zabbix/start_apache)
Status : Enabled
Do you think that the conditions are ok?
In fact, I have to put this condition : (A and C) and (B and C)
Thanks!
Sébastien
I've got 2 triggers. They are ok and running :
- "Apache is not running" from the item "check apache"(Zabbix Agent)
- "Service Apache Restart" from the item "check service apache" (Zabbix trapper setting by an own php page)
I d'like to have an action with this 2 triggers.
In fact when the 2 triggers are true, the action have to be run and so Apache must be restart by a script.
I've tested my shell script and it's running.
Here is the description of the action :
Name : Action Apache Restart
Event source : Triggers
Type of calculation : AND
Conditions : (A and B) and (C)
(A) Trigger = "Apache is not running"
(B) Trigger = "Service Apache Restart"
(C) Trigger value = "TRUE"
Operations Run remote commands
(Edit : ServerName:./opt/zabbix/start_apache)
Status : Enabled
Do you think that the conditions are ok?
In fact, I have to put this condition : (A and C) and (B and C)
Thanks!
Sébastien
Comment