Ad Widget

Collapse

User Parameter - ZBX_NOTSUPPORTED

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • scottk
    Junior Member
    • Aug 2015
    • 6

    #1

    User Parameter - ZBX_NOTSUPPORTED

    Hello All,

    I've seen some other threads about this, but no resolution. I have a UserParameter that I am trying to implement that works when running locally as the zabbix user, but does not work when testing remotely using the zabbix_get command.

    Agent Configuration Line:
    UserParameter=app.numusers,/opt/app/logs/scripts/app_numusers.sh

    Running Locally:
    # su - zabbix
    # /opt/app/logs/scripts/app_numusers.sh
    398

    Testing Using zabbix_get:
    # ./zabbix_get -s HOSTNAME.OF.SERVER -p 10050 -k app.numuser
    ZBX_NOTSUPPORTED

    What can I start checking?

    Thanks.
  • jamesNJ
    Senior Member
    • Jun 2015
    • 103

    #2
    What OS are you running?

    If Redhat or CentOS, check and see if selinux is active.

    Comment

    • kloczek
      Senior Member
      • Jun 2006
      • 1771

      #3
      Originally posted by scottk
      Hello All,

      I've seen some other threads about this, but no resolution. I have a UserParameter that I am trying to implement that works when running locally as the zabbix user, but does not work when testing remotely using the zabbix_get command.

      Agent Configuration Line:
      UserParameter=app.numusers,/opt/app/logs/scripts/app_numusers.sh

      Running Locally:
      # su - zabbix
      # /opt/app/logs/scripts/app_numusers.sh
      398

      Testing Using zabbix_get:
      # ./zabbix_get -s HOSTNAME.OF.SERVER -p 10050 -k app.numuser
      ZBX_NOTSUPPORTED

      What can I start checking?
      You zabbix agent is running as active agent and you are running above testing passive item (?)
      Test above on the host where is running zabbix agent.
      http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
      https://kloczek.wordpress.com/
      zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
      My zabbix templates https://github.com/kloczek/zabbix-templates

      Comment

      • scottk
        Junior Member
        • Aug 2015
        • 6

        #4
        Originally posted by jamesNJ
        What OS are you running?

        If Redhat or CentOS, check and see if selinux is active.
        The OS on both the Zabbix server and the target server is RHEL 6 64-bit. I have confirmed in /etc/selinux/config that SELinux is disabled on both.

        Comment

        • scottk
          Junior Member
          • Aug 2015
          • 6

          #5
          Originally posted by kloczek
          You zabbix agent is running as active agent and you are running above testing passive item (?)
          Test above on the host where is running zabbix agent.
          I'm afraid I'm not quite following what you are getting at. Yes, this is a passive check, but other passive checks are working:

          # ./zabbix_get -s HOSTNAME.OF.SERVER -p 10050 -k vfs.fs.size[/]
          6341328896

          Comment

          • scottk
            Junior Member
            • Aug 2015
            • 6

            #6
            I figured it out. The script I was running to generate the UserParameter data was taking more than the default of 3 seconds to run. In order to resolve I increased the Timeout option in agent config.

            ### Option: Timeout
            # Spend no more than Timeout seconds on processing
            #
            # Mandatory: no
            # Range: 1-30
            # Default: 3
            Timeout=30

            Comment

            Working...