Zabbix server installation: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
(Die Seite wurde neu angelegt: „=prepare database= *sudo mysql *GRANT ALL ON zabbix.* TO 'zabbix'@'localhost' IDENTIFIED BY 'change-with-strong-password'; *EXIT; =install zabbix for ubunto 18…“)
 
Zeile 9: Zeile 9:
 
*sudo apt install zabbix-server-mysql zabbix-frontend-php zabbix-agent
 
*sudo apt install zabbix-server-mysql zabbix-frontend-php zabbix-agent
 
=make settings=
 
=make settings=
*/etc/apache2/conf-enabled/zabbix.conf
+
*vim /etc/apache2/conf-enabled/zabbix.conf
 
  change
 
  change
 
  php_value date.timezone America/Denver
 
  php_value date.timezone America/Denver
 
  to
 
  to
 
  php_value date.timezone Europe/Berlin
 
  php_value date.timezone Europe/Berlin
 +
=restart apache2=
 +
*sudo systemctl restart apache2
 +
=import database=
 +
*zcat /usr/share/doc/zabbix-server-mysql/create.sql.gz | mysql -uzabbix -p zabbix
 +
=make settings=
 +
*vim /etc/zabbix/zabbix_server.conf
 +
DBPassword=change-with-strong-password
 +
=restart zabbix=
 +
*sudo systemctl restart zabbix-server zabbix-agent
 +
*sudo systemctl enable zabbix-server zabbix-agent

Version vom 11. Juni 2019, 09:40 Uhr

prepare database

  • sudo mysql
  • GRANT ALL ON zabbix.* TO 'zabbix'@'localhost' IDENTIFIED BY 'change-with-strong-password';
  • EXIT;

install zabbix for ubunto 18.04

make settings

  • vim /etc/apache2/conf-enabled/zabbix.conf
change
php_value date.timezone America/Denver
to
php_value date.timezone Europe/Berlin

restart apache2

  • sudo systemctl restart apache2

import database

  • zcat /usr/share/doc/zabbix-server-mysql/create.sql.gz | mysql -uzabbix -p zabbix

make settings

  • vim /etc/zabbix/zabbix_server.conf
DBPassword=change-with-strong-password

restart zabbix

  • sudo systemctl restart zabbix-server zabbix-agent
  • sudo systemctl enable zabbix-server zabbix-agent