Zabbix: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Chris (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
Chris (Diskussion | Beiträge) |
||
| (2 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
| Zeile 22: | Zeile 22: | ||
</pre> | </pre> | ||
Auf dem Agent in /etc/ | Auf dem Agent in /etc/zabbix_agent2.conf eintragen: | ||
Linux | |||
<pre> | <pre> | ||
Server=zabbix.intern.darkrealm.dyndns.org | Server=zabbix.intern.darkrealm.dyndns.org | ||
ServerActive=zabbix.intern.darkrealm.dyndns.org | ServerActive=zabbix.intern.darkrealm.dyndns.org | ||
AllowKey=system.run[hostname -f] | |||
HostnameItem=system.run[hostname -f] | |||
HostMetadataItem=system.uname | |||
HostInterfaceItem=system.run[hostname -f] | |||
LogFile=/var/log/zabbix/zabbix_agent2.log | |||
</pre> | |||
Windows | |||
<pre> | |||
LogFile=C:\Program Files\Zabbix Agent 2\zabbix_agent2.log | |||
Server=zabbix.intern.darkrealm.dyndns.org | |||
ServerActive=zabbix.intern.darkrealm.dyndns.org | |||
HostnameItem=system.hostname[fqdn] | |||
HostMetadataItem=system.uname | |||
HostInterfaceItem=system.hostname[fqdn] | |||
</pre> | </pre> | ||
Aktuelle Version vom 27. Dezember 2024, 17:00 Uhr
Zabbix Datenbank erstellen
shell> mysql -uroot -p<password> mysql> create database zabbix character set utf8 collate utf8_bin; mysql> create user 'zabbix'@'localhost' identified by '<password>'; mysql> grant all privileges on zabbix.* to 'zabbix'@'localhost'; mysql> quit;
shell> cd database/mysql shell> mysql -uzabbix -p<password> zabbix < schema.sql # stop here if you are creating database for Zabbix proxy shell> mysql -uzabbix -p<password> zabbix < images.sql shell> mysql -uzabbix -p<password> zabbix < data.sql
Auf dem Server in /etc/zabbix_server.conf eintragen:
DBPassword=<password>
Auf dem Agent in /etc/zabbix_agent2.conf eintragen:
Linux
Server=zabbix.intern.darkrealm.dyndns.org ServerActive=zabbix.intern.darkrealm.dyndns.org AllowKey=system.run[hostname -f] HostnameItem=system.run[hostname -f] HostMetadataItem=system.uname HostInterfaceItem=system.run[hostname -f] LogFile=/var/log/zabbix/zabbix_agent2.log
Windows
LogFile=C:\Program Files\Zabbix Agent 2\zabbix_agent2.log Server=zabbix.intern.darkrealm.dyndns.org ServerActive=zabbix.intern.darkrealm.dyndns.org HostnameItem=system.hostname[fqdn] HostMetadataItem=system.uname HostInterfaceItem=system.hostname[fqdn]