Hello,
I have zabbix_agentd 4.4.9 installed on Red Hat Enterprise Linux Server release 7.5. I monitor at this host especially disk space for ElasticSearch by Zbx-agent and indices in Elasticsearch by HTTP Agent.
I added the trigger action which is started when I have read-only indices in my Cluster. Trigger informs me about read-only indices. To do that I want to use curl command:
curl -X PUT "{HOST.IP}:9200/_all/_settings" -H 'Content-Type: application/json' -d'{ "index.blocks.read_only_allow_delete" : null } }'
I checked this command and it works correctly. I also checked this command like this: sudo -u zabbix curl..... And it works.
This is what i did:
- zabbix_agentd.conf - enable remote commands, enable log remote commands, Server IP added and more.
- added trigger action,
- update operations (I want to execute command only when user update a problem) -> remote command -> custom script with curl command (execute on zabbix agent)
- in visudo: zabbix ALL=(ALL) NOPASSWD: ALL
In the action logs I have information that command was executed. Unfortunately I don't have the expected result.
Maybe somebody can help me or advise me on something.
Thanks in advance,
Michal
I have zabbix_agentd 4.4.9 installed on Red Hat Enterprise Linux Server release 7.5. I monitor at this host especially disk space for ElasticSearch by Zbx-agent and indices in Elasticsearch by HTTP Agent.
I added the trigger action which is started when I have read-only indices in my Cluster. Trigger informs me about read-only indices. To do that I want to use curl command:
curl -X PUT "{HOST.IP}:9200/_all/_settings" -H 'Content-Type: application/json' -d'{ "index.blocks.read_only_allow_delete" : null } }'
I checked this command and it works correctly. I also checked this command like this: sudo -u zabbix curl..... And it works.
This is what i did:
- zabbix_agentd.conf - enable remote commands, enable log remote commands, Server IP added and more.
- added trigger action,
- update operations (I want to execute command only when user update a problem) -> remote command -> custom script with curl command (execute on zabbix agent)
- in visudo: zabbix ALL=(ALL) NOPASSWD: ALL
In the action logs I have information that command was executed. Unfortunately I don't have the expected result.
Maybe somebody can help me or advise me on something.
Thanks in advance,
Michal
Comment