Zabbix-agent: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(Die Seite wurde neu angelegt: „=Install= *apt-get install zabbix-agent =Config= *cd /etc/zabbix *CLIENT=caprica.xinux.lan *SERVER=10.82.1.101 *sed -ie "s/Server=127.0.0.1/Server=$SERVER/"…“) |
(→Config) |
||
| Zeile 8: | Zeile 8: | ||
*sed -ie "s/ServerActive=127.0.0.1/Server=$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 | *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 | ||
Version vom 6. Juni 2019, 13:12 Uhr
Install
- apt-get install zabbix-agent
Config
- cd /etc/zabbix
- CLIENT=caprica.xinux.lan
- SERVER=10.82.1.101
- sed -ie "s/Server=127.0.0.1/Server=$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