I have an alert script. I have tested it independently of Zabbix and it works. It just uses curl with the $1, $2, $3 variables with our messaging app. I have created a custom media type that contains my script and the script is in the correct directory as far as I can tell as it matches the Zabbix conf (/etc/zabbix/alert.d) I have created an action that is activated when any Trigger is fired (for troubleshooting).
My issue is this: the alert script never runs and I never receive a notification. I have even run this script and action as a media type under a super administrator to ensure it's not a permissions issue since most of the solutions here seem to be because of that.
When I test functionality I do so by shutting down my server. I go to latest events and see the events that should trigger an alert and see that "Actions" are 'Ok' and when I go into more details I see that it says "Sent" under 'Message Actions'. So apparently the Triggers know about the action and are connected properly. However, the script is never run and I have tested this by adding lines in the script to write to file every time the script is touched.
Does anyone have any ideas? I've been stumped for about 5 hours and can't think of what it could be.
My issue is this: the alert script never runs and I never receive a notification. I have even run this script and action as a media type under a super administrator to ensure it's not a permissions issue since most of the solutions here seem to be because of that.
When I test functionality I do so by shutting down my server. I go to latest events and see the events that should trigger an alert and see that "Actions" are 'Ok' and when I go into more details I see that it says "Sent" under 'Message Actions'. So apparently the Triggers know about the action and are connected properly. However, the script is never run and I have tested this by adding lines in the script to write to file every time the script is touched.
Does anyone have any ideas? I've been stumped for about 5 hours and can't think of what it could be.
Comment