Zabbix-agent

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen

Install

  • apt-get install zabbix-agent

Config

  • CLIENT=caprica.xinux.lan
  • SERVER=10.82.1.101
  • cd /etc/zabbix
  • sed -ie "s/Server=127.0.0.1/ServerActive=$SERVER/" zabbix_agentd.conf
  • sed -ie "s/ServerActive=127.0.0.1/Server=$SERVER/" zabbix_agentd.conf
  • sed -ie "s/Hostname=Zabbix server/Hostname=$CLIENT/" zabbix_agentd.conf

Start and Enable

  • systemctl start zabbix-agent
  • systemctl enable zabbix-agent

Log

  • tail -f /var/log/zabbix-agent/zabbix_agentd.log
12902:20190606:151057.906 **** Enabled features ****
12902:20190606:151057.906 IPv6 support:          YES
12902:20190606:151057.906 TLS support:           YES
12902:20190606:151057.906 **************************
12902:20190606:151057.906 using configuration file: /etc/zabbix/zabbix_agentd.conf
12902:20190606:151057.906 agent #0 started [main process]
12911:20190606:151057.907 agent #2 started [listener #1]
12914:20190606:151057.907 agent #4 started [listener #3]
12910:20190606:151057.908 agent #1 started [collector]
12913:20190606:151057.908 agent #3 started [listener #2]

^C