Zabbix自定义KEY报错ZBX_NOTSUPPORTED: Unsupported item key.

[[email protected] bin]# ./zabbix_get -s 192.27.274.47 -k jump-server
ZBX_NOTSUPPORTED: Unsupported item key.

登录客户端

[[email protected] etc]# cd /usr/local/zabbix/etc/
[[email protected] etc]# vim zabbix_agentd.conf

找到UserParameter这一行
Zabbix自定义KEY报错ZBX_NOTSUPPORTED: Unsupported item key.

Include=/usr/local/zabbix/etc/process_sh/*.conf
[[email protected] etc]# cd /usr/local/zabbix/etc/process_sh/
[[email protected] process_sh]# vim jump.conf
UserParameter=jpserver,HOME=/usr/local/zabbix/etc/process_sh/jumpserver.sh

Zabbix自定义KEY报错ZBX_NOTSUPPORTED: Unsupported item key.

Zabbix自定义KEY报错ZBX_NOTSUPPORTED: Unsupported item key.
LogFile=/tmp/zabbix_agentd.log
可动态查看日志


[[email protected] etc]# /etc/init.d/zabbix_agentd restart
[[email protected] etc]# tail -f /tmp/zabbix_agentd.log

在zabbix服务端测试

[[email protected] bin]# ./zabbix_get -s 192.7.34.47 -k jpserver
12

以上说明通了
Zabbix自定义KEY报错ZBX_NOTSUPPORTED: Unsupported item key.
Zabbix自定义KEY报错ZBX_NOTSUPPORTED: Unsupported item key.
登录web 去添加监控项目

Zabbix自定义KEY报错ZBX_NOTSUPPORTED: Unsupported item key.
然后打开图刑看是否有数据
Zabbix自定义KEY报错ZBX_NOTSUPPORTED: Unsupported item key.