Ad Widget

Collapse

Unable to run alert script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sumitpal
    Junior Member
    • Feb 2017
    • 2

    #1

    Unable to run alert script

    I have zabbix 2.4 and have set up an action with an alert script. The script is supposed to execute a jar file which communicates with an external service. The problem is that even when the action is triggered the script does not execute. Since the script is supposed to be executed by the zabbix user, I have provided all the permission for that. The media type is also set to the script name.

    Please help me in finding the problem.
  • nobodysu
    Member
    • Sep 2016
    • 84

    #2
    Most likely its zabbix user PATH issue. Write a log in your script to find out.

    Comment

    • zabbixfk
      Senior Member
      • Jun 2013
      • 256

      #3
      @sumitpal,

      Do you see that script gets executed under Events? If you click 'Monitoring -> Events' , under your host for which the trigger/action created , you should see that script executed, then check the logs with debug mode. To check if script execute, simulate scenario to check if script is called. Also log inside script.
      If not you have configured it wrongly.

      Thanks

      Comment

      • paracetamol
        Junior Member
        • Mar 2017
        • 1

        #4
        Check if the script is executed

        Comment

        Working...