简体   繁体   中英

multiple zabbix agent on linux (centos)

Multiple zabbix agent can be easily installed on windows system like this

zabbix_agentd.exe --config <configuration_file_for_instance_1> --install --multiple-agents
zabbix_agentd.exe --config <configuration_file_for_instance_2> --install --multiple-agents
...
zabbix_agentd.exe --config <configuration_file_for_instance_N> --install --multiple-agents

You can find more details on zabbix official documentation I have tried and It is working perfectly.

But, I could not find any documentation on multiple linux agents. Even I could not found any info whether it is possible or not.

I have tried running zabbix_agentd with same parameters(--install --multiple-agents) on linux. But these parameters are not valid on linux system. Or any other similar parameter exists.

So, basicly is it possible to run multiple agent on linux environment(especially centos)? And, if it is possible how?

Yes, it is possible. One should simply specify different configuration files that specify different PID files, log files, ports to listed on, etc., so that agents do not conflict with one another, similar to how you would do it on Windows.

In particular, in Unix there is a concept of a PID file. A PID file is created automatically by Zabbix agent when it starts and contains the PID of the main process. Scripts use this information to stop the currently running agent. When Zabbix agent is stopped, the PID file is automatically removed.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM