Ad Widget

Collapse

User Parameters

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • thomasac
    Junior Member
    • Jul 2011
    • 6

    #1

    User Parameters

    Hello,
    I would like to create an Userparameter.
    But I have few problems, I had edit the file: /etc/zabbix/zabbix_agentd.conf

    This is the line, which I edit:

    #Include=/etc/zabbix/zabbix_agentd.userparams.conf
    Include=/etc/zabbix/zabbix_agentd/

    ####### USER-DEFINED MONITORED PARAMETERS #######

    ###Option: UnsafeUserParameters
    # Allow all characters to be passed in arguments to user-defined parameters.
    # 0 - do not allow
    # 1 - allow
    #
    # Mandatory: no
    # Range: 0-1
    # Default:
    # UnsafeUserParameters=1
    #
    ### Option: UserParameter
    # User-defined parameter to monitor. There can be several user-defined parameters.
    # Format: UserParameter=<key>,<shell command>
    # Note that shell command must not return empty string or EOL only.
    # See 'zabbix_agentd' directory for examples.
    #
    # Mandatory: no
    # Default:
    # UserParameter=net.conn,netstat -nt | grep ^tcp | wc -l

    In the last line is now an Userparameter.
    Then I had create an items whit this configuration:

    Type:Zabbix agent (active)
    Key:net.conn
    The other textboxes are in standard configuration.

    Now the items isn´t shown in the Menu of "Latest Data".
    And the Graph to this item doesn´t draw any line.

    Please help me if you can.

    Thanks
    Last edited by thomasac; 17-08-2011, 08:53.
  • harmonica
    Senior Member
    • Jan 2009
    • 251

    #2
    Hello,

    From Zabbix Server test the following command:

    zabbix_get -s <ip_monitored_client> -k net.conn


    However check the log file of Zabbix Server and the information from column "Error" in Configuration > Hosts

    Comment

    Working...