zabbix监控的项目类型中有一种是zabbixtrapper类型,可以称为zabbix捕捉器。

特点:

1.把数据推送给zabbix服务器

2.在zabbix服务器上必须有一个捕捉项目,然后在客户端把数据发送给zabbix服务器

配置:

000139736.jpg

3.客户端发送数据

[root@zhu2 ~]# /opt/zabbix/bin/zabbix_sender -z 192.168.70.133 -p 10051 -s "zhuzhu" -k zhujiangtao -o "qian shan niao fei jue"
info from server: "Processed 1 Failed 0 Total 1 Seconds spent 0.000474"
sent: 1; skipped: 0; total: 1
#参数介绍
-z - to specify Zabbix server IP address
-p - to specify Zabbix server port number (10051 by default)
-s - to specify the host (make sure to use the 'technical' host name here, instead of the 'visible' name)
-k - to specify the key of the item we just defined
-o - to specify the actual value to send

4.zabbixserver查看是否收到数据

001114336.jpg