zabbix監控的項目類型中有一種是zabbixtrapper類型,可以稱為zabbix捕捉器。
特點:
1.把資料推送給zabbix伺服器
2.在zabbix伺服器上必須有一個捕捉項目,然後在用戶端把資料發送給zabbix伺服器
配置:

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檢視是否收到資料
本文轉自 Tenderrain 51CTO部落格,原文連結:http://blog.51cto.com/tenderrain/1707705