Ad Widget

Collapse

UserParameters not working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aigars
    Member
    • Apr 2010
    • 55

    #1

    UserParameters not working

    Hello,

    Using Zabbix agent 1.8.3 on windows 2008 x64 when testing simple parameter with command "zabbix_agentd.exe -t test[]". See below definition from zabbix_agentd.conf.

    Code:
    UserParameter=test[*], echo $1
    I'm getting error! Why that? It's kind bug?
    Code:
    [m|ZBX_NOTSUPPORTED]
  • Biobabar
    Junior Member
    • Jan 2011
    • 15

    #2
    Hello,

    Do you have insert EnableRemoteCommands=1 in your file's conf ?

    Comment

    • untergeek
      Senior Member
      Zabbix Certified Specialist
      • Jun 2009
      • 512

      #3
      Try a zabbix_get from a different computer with network access. The local test is frequently unreliable.

      Comment

      • untergeek
        Senior Member
        Zabbix Certified Specialist
        • Jun 2009
        • 512

        #4
        Also, you might want to remove the space after the comma:

        UserParameter=test[*], echo $1

        Should look like:

        UserParameter=test[*],echo $1

        Comment

        • aigars
          Member
          • Apr 2010
          • 55

          #5
          Yes, you right and should test from remote machine with zabbix_get.

          Comment

          • pazi
            Junior Member
            • Apr 2011
            • 1

            #6
            I had the same problem today.
            First I tried to restart the agentd but for some reasons I wasn`t allowd to do this.
            Its only a testing-server so it could be completly rebooted and after this the zabbix_get command worked pretty well

            sorry if my english is not the best

            Comment

            • WernerCD
              Member
              • Apr 2011
              • 37

              #7
              Originally posted by untergeek
              Try a zabbix_get from a different computer with network access. The local test is frequently unreliable.
              Why would a local test not work? Just had this problem, and thank you for pointing that out. Works from server, but not on local machine.

              Comment

              • phijzen-infiniot
                Junior Member
                • Sep 2018
                • 2

                #8
                This a late reply, but i ran into the same problem and found out that using the -c parameter should fix this problem.

                Comment

                Working...