Hello.
In my zabbix_agentd.conf, I write one line:
when I run commend in cli:
the result is 0, so the commend work properly.
Next, create new item:
When run commend:
the result is:
In /var/log/zabbix/zabbix-server.log:
What is wrong?
In my zabbix_agentd.conf, I write one line:
UserParameter=raid.virtual_degraded, /opt/MegaRAID/CmdTool2/CmdTool264 -AdpAllInfo -aALL | sed -n '/Device Present/,/^$/p' | grep 'Degraded' | cut -d ':' -f 2
/opt/MegaRAID/CmdTool2/CmdTool264 -AdpAllInfo -aALL | sed -n '/Device Present/,/^$/p' | grep 'Degraded' | cut -d ':' -f 2
Next, create new item:
Type: zabbix agent
key: raid.virtual_degraded
Type of information: numeric
Data type: decimal
key: raid.virtual_degraded
Type of information: numeric
Data type: decimal
zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf -p
raid.virtual_degraded [t| 0]
"Zabbix server:raid.virtual_degraded" became not supported: Received value [] is not suitable for value type [Numeric (unsigned)] and data type [Decimal]

Comment