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
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
Comment