Hello
I'm trying to configure a custom notification. I'm using a amazon aws instance with Ubuntu 16.04 for the Zabbix Server.
My test scenario is when an application goes down, I get a notification (call an API). Right now, the problem occour that the trigger doesn't call the notification like I meant to and I'd like to know if I took the correct steps to make it.
1) Create a host with ZBX enabled; (working)
2) Create item to monitor - Application with Key value net.tcp.service; (working)
3) Create a trigger to verify when "last" value of net.tcp.service equals zero ({shop_preco:net.tcp.service[http,******, ****].last()}=0); (working)
4) Create a simple test script to use curl to invoke an endpoint of a external API and saved it to alertscripts folder (/usr/lib/zabbix/alertscripts) ; (working)
5) Create a media type with type "Script" and "Script name" value of the file mentioned on the 4) step; (???)
6) Create an action with a condition "Trigger name contains {item_name}", and one Operation "Send message to users" with "Send only to" value of the media type created on step 5); (???)
Any help it is appreciated.
Thanks.
I'm trying to configure a custom notification. I'm using a amazon aws instance with Ubuntu 16.04 for the Zabbix Server.
My test scenario is when an application goes down, I get a notification (call an API). Right now, the problem occour that the trigger doesn't call the notification like I meant to and I'd like to know if I took the correct steps to make it.
1) Create a host with ZBX enabled; (working)
2) Create item to monitor - Application with Key value net.tcp.service; (working)
3) Create a trigger to verify when "last" value of net.tcp.service equals zero ({shop_preco:net.tcp.service[http,******, ****].last()}=0); (working)
4) Create a simple test script to use curl to invoke an endpoint of a external API and saved it to alertscripts folder (/usr/lib/zabbix/alertscripts) ; (working)
5) Create a media type with type "Script" and "Script name" value of the file mentioned on the 4) step; (???)
6) Create an action with a condition "Trigger name contains {item_name}", and one Operation "Send message to users" with "Send only to" value of the media type created on step 5); (???)
Any help it is appreciated.
Thanks.