Using an agent daemon configuration file

So far, we specified all of the information that zabbix_sender needs on the command line. It's also possible to automatically retrieve some of that information from the agent daemon configuration file. Let's try this (use the correct path to your agent daemon configuration file):

    $ zabbix_sender -c /usr/local/etc/zabbix_agentd.conf -k room.persons -o 3

This succeeds, because we specified the configuration file instead of the Zabbix server address and the hostnamethese were picked up from the configuration file. If you're running zabbix_sender on many hosts where the Zabbix agent also resides, this should be easier and safer than parsing the configuration file manually. We could also use a special configuration file for zabbix_sender that only contains the parameters it needs.

If the ServerActive parameter contains several entries, values are sent only to the first one. The HostnameItem parameter isn't supported by zabbix_sender.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset