Ad Widget

Collapse

Zabbix 1.6.4. No actions are being executed.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • luismo
    Junior Member
    • Apr 2009
    • 10

    #1

    Zabbix 1.6.4. No actions are being executed.

    Hello, I am just starting to configure actions on a brand new Zabbix installation.

    I have a really simple set for testing but is not working, I don't know what I am doing bad:

    My scenario is:

    1. Template ICMP, which only pings the host each 30 seconds (is for testing).
    2. Host "Blade" assigned to that template, so it is being pinged.... Of course it is Active and monitored.
    3. Trigger "Test" which is {CH44 Blade 1:icmpping.last(0)}=0 -- Event generation = Normal and SEverity Disaster. It is NOT disabled.
    4. media type: Type: Script, Desc: KK, Script name: 'kk'.
    4.a. The script is /home/zabbix/bin/kk which only makes an echo "hello" >> log.txt, and it is working with user zabbix from the console.
    4.b. Permissions for that path are 755 owner user zabbix group zabbix.
    5. User with media as in the screenshot:



    6. AlertScriptsPath=/home/zabbix/bin in the zabbix_server.conf
    7. the action is really simple:


    But nothing is executed. The trigger is raised and an event is created with severity disaster, status problem, etc.... But no actions are being executed.

    Any idea? Thanks in advance
    Attached Files
  • vinny
    Senior Member
    • Jan 2008
    • 145

    #2
    Does the user has permissions on that host ?
    The user should have at least R/O permission on the host for the action to be executed.
    vinny
    -------
    Zabbix 1.8.3, 1200+ Hosts, 40 000+ Items...zabbix's everywhere

    Comment

    • luismo
      Junior Member
      • Apr 2009
      • 10

      #3
      Solved!

      OH!!!! Yessssss... it was that... I added this host later under "Test" group, and forgot about permissions, since I was operating as Admin. :-(

      Thank you very much.

      Comment

      • js1
        Member
        • Apr 2009
        • 66

        #4
        I'm doing essentially the same thing. I have a Zabbix User type whose media type is a script. The user is in a group that has read only access to every group defined. But, when I go to Monitoring->Events, no actions are show to have been taken. I've set the debug level to 4 but I'm not seeing anything relevant. What am I doing wrong and how else can I debug this further? Thanks for any insight.

        Comment

        • js1
          Member
          • Apr 2009
          • 66

          #5
          I went back and reconfigured a Action to match more what was described by the original poster, and now the script media type is working.

          Comment

          Working...