Use of 1.zabbix_sender
The Zabbix_sender program is primarily used for those execution time long custom script intervals to send state or performance data to Zabbix server.
$ /usr/local/zabbix/bin/zabbix_sender --helpzabbix sender v2.2.3 (revision 44105 ) (7 april 2014) Usage: zabbix_sender [-vhv] {[-zpsi] -ko | [-zpi] -t -i <file> -r} [-c <file>]options: -c --config <file> absolute path to the configuration file -z -- Zabbix-server <server> hostname or IP address of Zabbix server -p --port <server port> Specify port number of server trapper running on the server. default is 10051 -s --host
$/usr/local/zabbix/bin/zabbix_sender-s "xxxxx"-Z xxxx-k mongodb.status[version]-o 2.4.6info from server: "Process Ed:1; failed:0; Total:1; Seconds spent:0.000054 "SENT:1; skipped:0; Total:1
-s Specifies the host name that Zabbix_sender sends
The key specified by-K is specified by the configuration file
2.Trapper Items
Trapper items receives the source data instead of querying it. Used to push the required data to the Zabbix
650) this.width=650; "Src=" https://www.zabbix.com/documentation/2.2/_media/manual/config/items/itemtypes/1.9.7_ Trapper_item.png "alt=" 1.9.7_trapper_item.png "/>
650) this.width=650; "Src=" https://www.zabbix.com/documentation/2.2/_media/manual/config/items/itemtypes/1.9.7_ Trapped_data.png "alt=" 1.9.7_trapped_data.png "/>
Reference Documentation:
Https://www.zabbix.com/documentation/2.2/manual/concepts/sender
Https://www.zabbix.com/documentation/2.2/manual/config/items/itemtypes/trapper
This article is from the Linux SA John blog, so be sure to keep this source http://john88wang.blog.51cto.com/2165294/1639412
Collecting monitoring information using Zabbix_sender