Why would I get an Unsupported item key for an item that works when I run both "zabbix_get" from the server and "zabbix_agentd" from the node? One of the items in question is configured as follows:
Name: Ceph Status-Degraded
Type: Zabbix agent (active)
Key: system.cephdegraded
Type of information: Numeric (unsigned)
Data type: Decimal
Update interval (in sec): 30
History storage period (in days): 7
Store value: As is
Show value: ceph degraded (custom value mapping)
Applications: Ceph
Enabled
UserParameter=system.cephdegraded,sudo cat /tmp/CEPH_DEGRADED.zbx
(tried without sudo as well and the CLI works fine, but the gui shows same error)
Restarted agent
zabbix_agentd -t system.cephdegraded
system.cephdegraded [t|0]
zabbix_get -s<IP address> -k "system.cephdegraded"
0
zabbix user can run the cat command on it's own if needed. I also set the debug level to 4 and saw nothing in the agent log file.
I've also changed the UnsafeUserParameter to 1 and tried it. Same result.
Name: Ceph Status-Degraded
Type: Zabbix agent (active)
Key: system.cephdegraded
Type of information: Numeric (unsigned)
Data type: Decimal
Update interval (in sec): 30
History storage period (in days): 7
Store value: As is
Show value: ceph degraded (custom value mapping)
Applications: Ceph
Enabled
UserParameter=system.cephdegraded,sudo cat /tmp/CEPH_DEGRADED.zbx
(tried without sudo as well and the CLI works fine, but the gui shows same error)
Restarted agent
zabbix_agentd -t system.cephdegraded
system.cephdegraded [t|0]
zabbix_get -s<IP address> -k "system.cephdegraded"
0
zabbix user can run the cat command on it's own if needed. I also set the debug level to 4 and saw nothing in the agent log file.
I've also changed the UnsafeUserParameter to 1 and tried it. Same result.
Comment