Ad Widget

Collapse

Action. Remote command

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • andem
    Junior Member
    • Feb 2007
    • 3

    #1

    Action. Remote command

    Hi, all
    I have a strange problem with actions.
    I use 1.1.6 version of server (on the server with Solaris 10) and the same version of agent (on the servers with Solaris 8 and 9)
    I have created an action. Type is "Remote command".
    All works correctly, but only IF COMMAND LENGHT IS NOT LONGER THAN 44 CHARACTERS.
    For example if Remote command is "kabira-new:/testdir/abcdefghij1234567890abcdefg/mailerU" it will be execute successfully.
    But if it will be "kabira-new:/testdir/abcdefghij1234567890abcdefg/mailerUU" or "kabira-new:/testdir/abcdefghij1234567890abcdefghij/mailerU"
    The trigger switches correctly, but the command is not fulfilled.
    Of course I have checked up correspondence of "Remote command" and real script's location.
    Please prompt somebody, if I can do something to use Actions with remote command with lengths longer than 44 characters.
  • dsipe
    Senior Member
    • Oct 2006
    • 184

    #2
    i've encountered some weeks ago the same problem on 1.1.4.

    the only workaround i found @ the moment is to create a new shell script [that contains the full path to the one you want to execute] in a short length path.

    Another problem with remote action is that it is not logged inside Zabbix. No one known that zabbix has [ successfully or not ] submit somathing.

    Comment

    • andem
      Junior Member
      • Feb 2007
      • 3

      #3
      The problem is I have root permission not on the all monitored servers, and I have to place zabbix directory in the homedir of my user

      Comment

      • James Wells
        Senior Member
        • Jun 2005
        • 664

        #4
        Greetings,

        This is a known issue that Alexei has stated he will not fix. Having said that, however, I have posted a PATCH that addresses this issue.
        Unofficial Zabbix Developer

        Comment

        • andem
          Junior Member
          • Feb 2007
          • 3

          #5
          James, I have a problem with Action but not with Items.
          Can this patch fix the problem with length of remote command in Action?

          Comment

          • James Wells
            Senior Member
            • Jun 2005
            • 664

            #6
            Yep. The remoteAction uses the same item key information from what I can tell in the source code.
            Unofficial Zabbix Developer

            Comment

            Working...