Ad Widget

Collapse

Remote command actions not running.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ptader
    Member
    • Sep 2007
    • 52

    #1

    Remote command actions not running.

    I have configured a Action that runs a Remote Command (script) if any "Disaster" trigger, triggers (see screenshot). But if the trigger is a disk space trigger like, "Low free disk space on server01 volume /", the remote command does not run. The Disaster trigger does show up on the Monitoring | Triggers page. I can repeat this on any node on this system and even on a different Zabbix servers (one running version 1.8 and the other 1.8.1). I have another action that looks for and "Disaster" trigger as well, but it just sends an email to the admin. This works, we get email, but the other Action never runs. I've changed the script to a simple, one line echo command to confirm that it's not in the script. I have seen this work with previous versions of Zabbix (1.4 and 1.6).

    Possible Bug?

    - ptader
    Attached Files
  • ptader
    Member
    • Sep 2007
    • 52

    #2
    My fault. This is not a Zabbix bug. The remote script utilizes sed and when passed the Trigger name "Low free disk space on server01 volume /", sed would exit because of the un-escaped forward slash in the description. I simply change my sed statement from:

    Code:
    sed s/some_text/more_text/g
    to:

    Code:
    sed s|some_text|more_text|g

    Comment

    Working...