Ad Widget

Collapse

Custom Alertscript not running Zabbix 2.0.3

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • artsangel
    Junior Member
    • Jun 2012
    • 5

    #1

    Custom Alertscript not running Zabbix 2.0.3

    Hi all,

    I have a custom alertscript in the default directly. It's a perl interface to an SMS API.

    If I run it manually on the command line, using the zabbix user, it works fine.
    If I let Zabbix call it, it reports that it's been successfully sent, but I receive no SMS. I even changed the script to do an extremely simple write out to a text file, which again works when run as zabbix in the shell, but does not write any output when called as part of a trigger, even though the web GUI tells me that it succeeded!

    So here's the rundown:

    1) Script in default alertscript directory, fully tested as executable by the zabbix user
    2) New media type defined, of type script with correct filename
    3) New media added to user accounts
    4) New action defined that sends out alerts to those users using the SMS media only.
    5) Zabbix reports successful "Sent" of the SMS media in the list of actions completed for the alert.
    6) SELinux has been disabled with no difference.
    7) Turning on full debugging gives no errors. Logs also pump out "Succeeded" messages, along with the full command line that was executed. If I copy and paste this line into the Zabbix shell... it works.

    Am I missing something obvious? Has anybody else gotten custom alert scripts working in Zabbix 2?
Working...