Ad Widget

Collapse

Alert Script Never Runs

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • AmericanKryptonite
    Junior Member
    • Nov 2014
    • 3

    #1

    Alert Script Never Runs

    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.
  • AmericanKryptonite
    Junior Member
    • Nov 2014
    • 3

    #2
    bump

    Still having issues.

    Comment

    • kustodian
      Member
      • Oct 2012
      • 33

      #3
      Have you checked the Zabbix server log for errors?

      Comment

      • AmericanKryptonite
        Junior Member
        • Nov 2014
        • 3

        #4
        Originally posted by kustodian
        Have you checked the Zabbix server log for errors?
        Where is this located. When I Googled for Zabbix Server log and Zabbix log, all I get is junk.

        Comment

        Working...