Ad Widget

Collapse

UserParameter

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bert.v
    Junior Member
    • Oct 2009
    • 7

    #1

    UserParameter

    Hi,

    On a host monitored by ZABBIX I'm trying to use a UserParameter to collect the number of SSH connections and so on.

    I've added following UserParameters in the zabbix-agent.conf file:
    UserParameter=extra-checks[*],/opt/extra-checks.sh $1
    UserParameter=sshCon,/opt/extra-checks.sh --sshCon

    and the following items on the server:
    Description: sshConnections
    Type: ZABBIX Agent
    Key: sshCon

    Description: sshConnections2
    Type: ZABBIX Agent
    Key: extra-checks[--sshCon]

    But for either one I get the following errors (zabbix_server.log):
    17521:20091029:145006 Item [HOST:sshCon] error: Not supported by ZABBIX agent
    17521:20091029:145006 Parameter [sshCon] is not supported by agent on host [HOST] Old status [0]
    17522:20091029:145013 Item [HOST:extra-checks[--sshCon]] error: Not supported by ZABBIX agent
    17522:20091029:145013 Parameter [extra-checks[--sshCon]] is not supported by agent on host [HOST] Old status [0]

    I wonder if I'm missing something?
  • tighep
    Senior Member
    • Dec 2007
    • 124

    #2
    A few things I can think of offhand,
    1. Can the Zabbix user actually run the script?
    2. Did you restart the agent after making the change?
    3. What is the script returning, and is the item type match what you get, interger, float, text, etc...

    Post back and I'll see what else I can think of.

    Comment

    • bert.v
      Junior Member
      • Oct 2009
      • 7

      #3
      1. I can switch to the zabbix user and execute the script.
      2. I restarted the zabbix-agent already several times.
      3. The script is returning a number, and the item type is numeric.

      Comment

      • bert.v
        Junior Member
        • Oct 2009
        • 7

        #4
        All is working well now.
        I made the the stupid mistake to alter the /etc/zabbix/zabbix_agent.conf and not the /etc/zabbix/zabbix_agentd.conf config file.

        Comment

        Working...