Hi,
I am trying to build a custom trigger to alert me if certain services stop working.
If I run this from the zabbix server (where MY_SERVICE_NAME is the name of the process I want to confirm is running, and MY_HOST is a remote host with IP 192.16.2.59):
I get the desired result - 1 (Showing that there is one instance of this service running)
If i try and use this in the GUI to create a trigger, I get this error in the "expression constructor":
And if I click "Add" I get this error:
Question: How do I turn my working zabbix_get command into a working trigger? I have several custom processes I need to monitor, and I believe this proc.num route is the right way to go - but if not, please correct me. I have read this page as suggested on other posts but while it does tell me things I didn't know, it doesn't show me how to properly format my trigger. From what I read on that page, I believe my formatting to be correct.
I am trying to build a custom trigger to alert me if certain services stop working.
If I run this from the zabbix server (where MY_SERVICE_NAME is the name of the process I want to confirm is running, and MY_HOST is a remote host with IP 192.16.2.59):
Code:
zabbix_get -s 192.16.2.59 -k 'proc.num[MY_SERVICE_NAME]'
If i try and use this in the GUI to create a trigger, I get this error in the "expression constructor":
Code:
last(/MY_HOST/proc.num[MY_SERVICE_NAME]):Unknown host item, no such item in selected host
Code:
Incorrect item key "proc.num[MY_SERVICE_NAME]" provided for trigger expression on "MY_HOST".
Question: How do I turn my working zabbix_get command into a working trigger? I have several custom processes I need to monitor, and I believe this proc.num route is the right way to go - but if not, please correct me. I have read this page as suggested on other posts but while it does tell me things I didn't know, it doesn't show me how to properly format my trigger. From what I read on that page, I believe my formatting to be correct.
Comment