Ad Widget

Collapse

ZBX_NOTSUPPORTED on Centos

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • darfie21
    Junior Member
    • May 2015
    • 5

    #1

    ZBX_NOTSUPPORTED on Centos

    I'm new to zabbix and I'm testing the UserParameter feature.

    I have the following command on both linux(Centos 6) and solaris:

    UserParameter=custom.test,cat /etc/hosts |wc -l

    When I run zabbix-get from the zabbix server to the linux machine it fails with ZBX_NOTSUPPORTED. It works fine on Solaris.

    linux-reaf:/var/log/zabbix # zabbix-get -s linux -p 10050 -k custom.test
    ZBX_NOTSUPPORTED

    linux-reaf:/var/log/zabbix # zabbix-get -s solaris -p 10050 -k custom.test
    20

    Any idea why this fails on Linux ????
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    Did you restart Zabbix agent after UserParameter added?

    Comment

    • darfie21
      Junior Member
      • May 2015
      • 5

      #3
      Yes I restarted the agent.

      I should say I'm running zabbix version 2.4

      Comment

      • Atsushi
        Senior Member
        • Aug 2013
        • 2028

        #4
        Where do you set that UserParameter?
        Did you added setting to directly in zabbix_agentd.conf?
        Or, did you added file to include directory?

        If you use include setting,
        Please check include setting in zabbix_agentd.conf and file permission.

        Comment

        • zabanist
          Junior Member
          • Jun 2015
          • 16

          #5
          I'm running 2.4.5 now, so don't have an older version of Zabbix to test.

          When I receive ZBX_NOTSUPPORTED errors, it is followed with some reason for that error.

          ZBX_NOTSUPPORTED: Unsupported item key.

          If 2.4 does that, then we could assume that it is reading the UserParameter and knows about the key. Even with user permissions, I still get some error message from the client.

          So, the things I would suggest:

          1) If selinux is enabled, tail the audit log while you attempt to retrieve the key and see if something is blocking the zabbix user from reading /etc/hosts, etc.

          2) Set the DebugLevel to 4 (or 5 -- 4 is usually enough for me), restart the agent. You should see the userparameter loaded, and details of what happens with the client connects and request custom.test.

          Comment

          Working...