当前位置:网站首页>Debian10 installing zabbix5.4

Debian10 installing zabbix5.4

2022-06-23 01:26:00 Halyace

One 、 Server installation :

#  download zabbix Source deb package 
wget https://mirrors.aliyun.com/zabbix/zabbix/5.4/debian/pool/main/z/zabbix-release/zabbix-release_5.4-1+debian10_all.deb
#  install zabbix Source deb
dpkg -i zabbix-release_5.4-1+debian10_all.deb
# zabbix Source modification to Alibaba cloud 
echo deb https://mirrors.aliyun.com/zabbix/zabbix/5.4/debian buster main|tee /etc/apt/sources.list.d/zabbix.list
# zabbix Source modification to Alibaba cloud 
echo deb-src https://mirrors.aliyun.com/zabbix/zabbix/5.4/debian buster main|tee -a /etc/apt/sources.list.d/zabbix.list
#  Update the image source list 
apt update
#  install zabbix Package required 
apt install zabbix-server-mysql zabbix-frontend-php zabbix-nginx-conf zabbix-sql-scripts zabbix-agent
#  mount this database 
apt install -y mariadb-server
#  Database initialization 
mysql_secure_installation
#  Log in to the database 
mysql -u root -p
    #  establish zabbix Database and set the encoding to utf-8
    create database zabbix character set utf8 collate utf8_bin;
    #  establish mariadb user zabbix
    create user [email protected] identified by ' password ';
    #  to grant authorization zabbix User access zabbix database 
    grant all privileges on zabbix.* to [email protected];
    #  sign out mariadb
    quit;
#  Import initial data to zabbix library 
zcat /usr/share/doc/zabbix-sql-scripts/mysql/create.sql.gz | mysql -uzabbix -p zabbix
#  edit zabbix Server profile 
nano /etc/zabbix/zabbix_server.conf
    #  Configure database password 
    DBPassword= password 
    #  The configured cache length is 2048M
    CacheSize=2048M
#  edit nginx The configuration file 
nano /etc/zabbix/nginx.conf
    #  Listening port configuration 
    listen 80;
    #  Server hostname configuration 
    server_name _;
#  Delete the default site configuration 
rm -rf /etc/nginx/sites-enabled/default
#  Restart related services 
systemctl restart zabbix-server zabbix-agent nginx php7.3-fpm
#  Relevant services are started automatically after startup 
systemctl enable zabbix-server zabbix-agent nginx php7.3-fpm mariadb

Two 、 Change the font :

#  Upload C:\Windows\Fonts\simfang.ttf Font to /usr/share/zabbix/assets/fonts/simfang.ttf
#  modify zabbix Front end configuration file 
nano /usr/share/zabbix/include/defines.inc.php
	# define('ZBX_GRAPH_FONT_NAME', 'graphfont') 
	define('ZBX_GRAPH_FONT_NAME',           'simfang');
	# define('ZBX_FONT_NAME', 'graphfont')
	define('ZBX_FONT_NAME', 'simfang');

3、 ... and 、 Default password :

  • Admin

  • zabbix

Four 、 Huawei switch snmp To configure :

#  Turn on snmp
snmp-agent
#  Set device contact information 
snmp-agent sys-info contact 0379-xxxxxxxx
#  Set the device address 
snmp-agent sys-info location ZHL-1F
#  Set up snmpv2 Read only community name 
snmp-agent community read Readpublic
#  Set up snmp edition 
snmp-agent sys-info version v2c v3

5、 ... and 、 Reference material :

  • zabbix Template library : https://share.zabbix.com
  • Huawei oid Inquire about : https://support.huawei.com/mibtoolweb/enterpriseMibInfo/zh
  • Huawei tool library : https://support.huawei.com/enterprise/zh/tool
  • zabbix Report tool : https://www.zabbix.org.cn/viewtopic.php?f=12&t=7559
原网站

版权声明
本文为[Halyace]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/173/202206220916546090.html