Ad Widget

Collapse

UserParameter returning ZBX_NOTSUPPORTED

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vaerge
    Junior Member
    • Jan 2012
    • 1

    #1

    UserParameter returning ZBX_NOTSUPPORTED

    I have tried a bunch of stuff, including what has been recommended in different threads on this forum, but I cannot get a UserParameter to return a value. I even went down to making this simple UserParameter:
    Code:
    UserParameter=test.test,echo "1"
    However, when I try to fetch the result, I get this:
    Code:
    root@gateway:~# zabbix_agentd -t test.test
    test.test                                     [m|ZBX_NOTSUPPORTED]
    root@gateway:~# zabbix_agentd -t vm.memory.size[free]
    vm.memory.size[free]                          [u|1795985408]
    I am showing the last command just to ensure that there is no problem with getting other values.

    What could I be doing wrong here?

    Thanks!
  • eskytthe
    Senior Member
    Zabbix Certified Specialist
    • May 2011
    • 363

    #2
    Not sure, but some check you can do:
    - Use full path to programs (eg /usr/echo)
    - Check your agent log file
    - Can you run your commands as the zabbix user?
    - Wrong "Type of information" for item (text, char etc)?
    (I suppose you remember to make the item status active again at server site for every test that fail)
    BR
    Erik

    Comment

    • jix
      Member
      • Feb 2011
      • 73

      #3
      !

      I have same problem

      Code:
      UserParameter=Apache_CPU,/usr/bin/wget --quiet -O - http://localhost/server-status |/bin/grep "CPU Usag" | /usr/bin/awk '{print $8 }'|/usr/bin/cut -d% -f1
      UserParameter=Apache_request_ps,/usr/bin/wget --quiet -O - http://localhost/server-status |/bin/grep "requests/sec"  | /usr/bin/awk '{print $1 }' |/usr/bin/cut -c 5-
      UserParameter=Apache_Byte_ps,wget --quiet -O - http://localhost/server-status |grep "requests/sec"  | awk '{print $4 }'
      UserParameter=Apache_request_pC,wget --quiet -O - http://localhost/server-status |grep "requests currently being"  | awk '{print $1 }' |cut -c 5-
      root@Debian:~/zabbix#
      with zabbix user they works
      Code:
      root@Debian:~/zabbix# su - zabbix
      zabbix@Debian:~$ /usr/bin/wget --quiet -O - http://localhost/server-status |/bin/grep "CPU Usag" | /usr/bin/awk '{print $8 }'|/usr/bin/cut -d% -f1
      .487
      zabbix@Debian:~$ wget --quiet -O - http://localhost/server-status |grep "requests/sec"  | awk '{print $4 }'
      6.5
      zabbix@Debian:~$
      But in web interface i Got

      Not Supported by Zabbix Agent

      Comment

      • youtube
        Junior Member
        • Oct 2011
        • 3

        #4
        Originally posted by vaerge
        I have tried a bunch of stuff, including what has been recommended in different threads on this forum, but I cannot get a UserParameter to return a value. I even went down to making this simple UserParameter:
        Code:
        UserParameter=test.test,echo "1"
        However, when I try to fetch the result, I get this:
        Code:
        root@gateway:~# zabbix_agentd -t test.test
        test.test                                     [m|ZBX_NOTSUPPORTED]
        root@gateway:~# zabbix_agentd -t vm.memory.size[free]
        vm.memory.size[free]                          [u|1795985408]
        I am showing the last command just to ensure that there is no problem with getting other values.

        What could I be doing wrong here?

        Thanks!
        anybody can show me how to solve that problem

        Comment

        • ghoz
          Senior Member
          • May 2011
          • 204

          #5
          AFAIK you can't use
          Code:
          zabbix_agentd -t
          to test userparameters .

          you have to query the agent just like the zabbix server would using zabbix_get (don't forget to add 127.0.0.1 to the agents's server list if you try to run zabbix_get locally)
          Last edited by ghoz; 08-06-2012, 14:16.

          Comment

          • Tractorboy
            Member
            • Oct 2010
            • 98

            #6
            UNsupported issues

            My issue is the i cannot seem to get paremeters with spaces to work. Is this really a true position.

            I have vbs that returns but get the dredded ZBX_NOTSUPPORTED error

            Comment

            • Tag
              Junior Member
              • Mar 2009
              • 3

              #7
              Same issue 2.0.4

              No matter what I do UserParms will not work.

              Filed ticket https://support.zabbix.com/browse/ZBX-6247

              Hopefully we will have an answer soon or I'm going to have to downgrade back to 1.8.

              Comment

              • Colttt
                Senior Member
                Zabbix Certified Specialist
                • Mar 2009
                • 878

                #8
                dou you restart the agent??
                what is in the agentd-logfile?
                Debian-User

                Sorry for my bad english

                Comment

                Working...