Ad Widget

Collapse

Zabbix corfirms sent mail by a script but script is not called

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • diegomaia
    Junior Member
    • May 2010
    • 1

    #1

    Zabbix corfirms sent mail by a script but script is not called

    I created a script to send an email to a group user like an action operation.

    The script receives the three parameters (recipient, subject and message). The script is working well manually. Zabbix tells that the email was sent, but the email is not received at the recipient's mailbox. I modified the script for editting a txt file when it is called, but when the action occurs, the txt file is not editted .

    The script is in the folder /etc/zabbix/externalscripts.

    I would like to know if the Zabbix registers in some logfile this attempt of sending the email. And why Zabbix tells me that it was sent ?
  • alixen
    Senior Member
    • Apr 2006
    • 474

    #2
    Hi,

    Unless you changed default alert script location as defined in /etc/zabbix/zabbix_server.conf:
    AlertScriptsPath=/etc/zabbix/alert.d/
    your script should be located in this directory, not in /etc/zabbix/externalscripts which is used for "external check" items.

    I don't know how you checked that Zabbix tells you that it was sent.
    If you look at Administration/Audit/Actions and your script appears as Status=sent without any error, it may be a bug.

    Regards,
    Alixen
    http://www.alixen.fr/zabbix.html

    Comment

    Working...