Book Image

Mastering Zabbix (Second Edition)

Book Image

Mastering Zabbix (Second Edition)

Overview of this book

Table of Contents (18 chapters)
Mastering Zabbix Second Edition
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Sending data using zabbix_sender


Until now, you have seen how to implement external checks on both the server side and the agent side, which involves moving the workload from the monitoring host to the monitored host. You can understand how both methods in the case of heavy and extensive monitoring are not the best approach since we are thinking of placing Zabbix in a large environment. Most probably, it is better have a server dedicated to all our checks and use those two functionalities for all the checks that are not widely run.

Zabbix provides utilities designed to send data to the server. This utility is zabbix_sender, and with it, you can send the item data to your server using the items of a Zabbix trapper type.

To test the zabbix_sender utility, simply add a Zabbix trapper item to an existing host and run the command:

zabbix_sender -z <zabbixserver> -s <yourhostname> -k <item_key> -o <value>

You will get a response similar to the following:

Info from server...