Hi
I create own items which check is apache2 running on port 8081
items -> bobo-apache net.tcp.port[192.168.1.53,8081] ,
next I create triggers which check is apache2 is down on bobo
triggers so like this -> {bobo:net.tcp.port[192.168.1.53,8081] <http://192.168.1.50/%7EzabbiX/history.php?action=showvalues&period=3600&itemid=1 8151>.*last(*0*)*}=0
I add actions :
action type = remote commands
source: trigger
Trigger = "Apache2 server is down on bobo"
remote command -> bobo:/etc/init.d/apache2 restart
and I stop apache2 , in monitoring on map I see small phone and label "Apache2 server is down on bobo" and this is ok
works good,
but action not work , I don't see any errors about remote command in zabbix_server.log and zabbix_agentd ,
In zabbix_agentd.conf EnableRemoteCommands=1
What's wrong?
Albert
I create own items which check is apache2 running on port 8081
items -> bobo-apache net.tcp.port[192.168.1.53,8081] ,
next I create triggers which check is apache2 is down on bobo
triggers so like this -> {bobo:net.tcp.port[192.168.1.53,8081] <http://192.168.1.50/%7EzabbiX/history.php?action=showvalues&period=3600&itemid=1 8151>.*last(*0*)*}=0
I add actions :
action type = remote commands
source: trigger
Trigger = "Apache2 server is down on bobo"
remote command -> bobo:/etc/init.d/apache2 restart
and I stop apache2 , in monitoring on map I see small phone and label "Apache2 server is down on bobo" and this is ok
works good,but action not work , I don't see any errors about remote command in zabbix_server.log and zabbix_agentd ,
In zabbix_agentd.conf EnableRemoteCommands=1
What's wrong?
Albert
Comment