Ad Widget

Collapse

Alertscripts not working for me

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • saurabhnsonar
    Junior Member
    • Sep 2018
    • 3

    #1

    Alertscripts not working for me

    I was trying to configure the notify_pushbullet alertscript, but it don't seems to trigger when any alert arise. It seems that zabbix is not calling that script on the specified event occurred. I have checked all possible things and even tried manually using that alertscript and surprisingly it works via ssh but not with zabbix. Following are the configurations I made.

    # cat /etc/zabbix/zabbix_server.conf | grep AlertScripts
    ### Option: AlertScriptsPath
    # AlertScriptsPath=${datadir}/zabbix/alertscripts
    AlertScriptsPath=/usr/lib/zabbix/alertscripts


    I placed the alert script in the alertscriots folder. notify_pushbullet.py

    Configured the media type script to Script name: "notify_pushbullet.py"

    Also added the pushbullet token for the user.

    Checking over the script log, it seems that pushbullet does not invoke the script. While manually calling that script using ssh it works:

    ./notify_pushbullet.py "o.XXXXXXXXXXXXXXXXXXXXXXXXXXX" "test" "test"
    [Wed Sep 05 10:36:00 2018] Success: Message sent with AccessToken [o.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX] to device [all]!


    Can anyone give me any input over this, how to invoke the alertscripts with zabbix.
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    What is the version of Zabbix you are using?
    Have you set the parameters at media registration?

    Comment

    • saurabhnsonar
      Junior Member
      • Sep 2018
      • 3

      #3
      Yes, every media parameters are registered.

      zabbix_server (Zabbix) 3.4.13
      Revision 84139 27 August 2018, compilation time: Aug 27 2018 11:46:45

      Comment

      • saurabhnsonar
        Junior Member
        • Sep 2018
        • 3

        #4
        Atsushi can you please help me over this?

        Comment

        • zux
          Member
          • Sep 2018
          • 93

          #5
          another thing to check - can you run the script from the user, that zabbix runs with? (probably user "zabbix")

          Comment

          Working...