[root@yunwei-ceshi etc]# cd /usr/local/zabbix/etc/
[root@yunwei-ceshi etc]# pwd
/usr/local/zabbix/etc
[root@yunwei-ceshi etc]# ls
process_sh zabbix_agentd.conf zabbix_agentd.conf.d
[root@yunwei-ceshi etc]# vim zabbix_agentd.conf
# 这个文件监控自定义脚本输出值
# 格式为UserParameter=<key>,<command>
UserParameter=script.date,date
UserParameter=jumpserver,sh /usr/local/zabbix/etc/process_sh/jumpserver.sh
UserParameter=jumpserver2,sh /usr/local/zabbix/etc/process_sh/jumpserver.sh
[root@yunwei-ceshi etc]# vim /usr/local/zabbix/etc/process_sh/jumpserver.sh
在服务端测试
[root@zabbix bin]# ./zabbix_get -s 120.27.244.277 -k jumpserver