Ad Widget

Collapse

UserParameter and ZBX_NOTSUPPORTED

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ros
    Junior Member
    • Aug 2008
    • 3

    #1

    UserParameter and ZBX_NOTSUPPORTED

    I have two very similar servers running Debian stable. Both have zabbix_agentd version:
    Code:
    ZABBIX Agent v1.1.4 (14 November 2006)
    Compilation time:  Dec  3 2007 10:13:22
    To simplify things I defined one UserParameter like this:
    Code:
    UserParameter=system.test,echo "1"
    The rest of UserParameters are commented out.

    On first machine called hippona this works, I can access the value via
    Code:
    zabbix_agent -t system.test
    It's visible on the web frontend too. No problem.

    But on second machine called neptun I always get ZBX_NOTSUPPORTED except when I use:
    Code:
    zabbix_agentd -p
    Web frontend doesn't see the option either. I get ZBX_NOTSUPPORTED from this too (it's run on the zabbix server, where frontend is running):
    Code:
    zabbix_get -s neptun -k system.test
    What could be wrong?
  • Kso
    Junior Member
    • Aug 2008
    • 9

    #2
    hi Ros,

    I have the same problem on an 1.5.3 zabbix version.

    Comment

    • ros
      Junior Member
      • Aug 2008
      • 3

      #3
      Hi Kso,

      I know I've read your posts, I just tried to simplify it as much as possile.

      I have good news. It started working. The bad news is that I don't know what caused it. I just tried to compile my own agent from source with some custom debugging nothing more and it started working. So I tried to start zabbix agent as provided by debian and it worked too... (zabbix_agent -t blahblah still doesn't seem to work, but I see my values on the frontend)

      I'll try to outline steps I did here:

      * installed debian packages (version 1.1.4), didn't work
      * installed newer debian package (version 1.4.5), didn't work
      * grabbed sources (version 1.4.6), compiled it (with added debugging to the code), did work
      * again tried to start from debian package (version 1.4.5), it works

      This simply sounds weird, I have no idea how that could happen...
      Last edited by ros; 14-08-2008, 16:02. Reason: formatting

      Comment

      • Crazy Marty
        Member
        • Sep 2007
        • 75

        #4
        Impossible to debug, too!

        Looking at the code for 1.4.5, in EXECUTE_STR(), there is no diagnostic for any failure of the UserParameter command execution! So, when it does fail, there is no way to tell *why* it returns ZBX_UNSUPPORTED, making debugging impossible!

        I have a script that runs fine from the command line, even under "env -" to empty its environment, but to the zabbix_agentd, it always returns ZBX_UNSUPPORTED!

        Comment

        • ros
          Junior Member
          • Aug 2008
          • 3

          #5
          alright, there was not that much magic as it seemed to be, installing version 1.4.5 simply solved this problem for me

          So no need for compiling and other things, just installing 1.4.5 from deb is sufficient for me. I can confirm, that rpm in that very version works too...

          zabbix_agent -t still returns ZBX_UNSUPPORTED though

          Marty: yes I found this too, I was trying to find out why I don't see anything related in the log even on the highest verbosity...

          Comment

          • DrGkill
            Junior Member
            • Aug 2008
            • 5

            #6
            Hi,

            I got Debian and zabbix 1.4.6 version and I got the problem with includes items.
            Espacially net.if.in and net.if.out.

            When I look through the agent, it works. But from the server, it doesn't work

            Code:
            # zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf -t 'net.if.out[eth0,bytes]'
            net.if.out[eth0,bytes]                        [u|1424552011]
            and :

            Code:
            # zabbix_get -s127.0.0.1 -p10050 -k'net.if.out[eth0,bytes]'
            ZBX_NOTSUPPORTED
            This drive me crazy.
            Last edited by DrGkill; 23-08-2008, 10:27.

            Comment

            • DrGkill
              Junior Member
              • Aug 2008
              • 5

              #7
              I tried to compile the 1.4.6 agent from sources but I still got the same problem ...
              I think that there is a problem concerning the 1.4.6 agent version.
              Someone know where I could find the 1.4.5 agent version ???

              Comment

              Working...