×ðÁú¿­Ê±¹ÙÍøµÇ¼

ÔõÑùÔÚLinuxÉÏ×°ÖúÍÉèÖüà¿Ø¹¤¾ß£¨ÈçZabbix£©

ÔõÑùÔÚlinuxÉÏ×°ÖúÍÉèÖüà¿Ø¹¤¾ß£¨Èçzabbix£©

¸ÅÊö£º

ÔÚLinux²Ù×÷ϵͳÉÏ×°ÖúÍÉèÖüà¿Ø¹¤¾ßÊÇÈ·±£Ð§ÀÍÆ÷ºÍÓ¦ÓóÌÐòÕý³£ÔËÐеÄÖ÷ÒªÒ»²½¡£±¾ÎĽ«ÏÈÈÝÔõÑùÔÚLinuxϵͳÉÏ×°ÖúÍÉèÖÃÒ»¸öÊ¢Ðеļà¿Ø¹¤¾ß£¬Zabbix¡£ZabbixÊÇÒ»¿î¹¦Ð§Ç¿Ê¢ÇÒÎÞаµÄ¼à¿Ø½â¾ö¼Æ»®£¬¿É×ÊÖúÖÎÀíÔ±¼à¿ØЧÀÍÆ÷ÐÔÄÜ¡¢ÍøÂçÁ÷Á¿¡¢Ó¦ÓóÌÐòµÈ¡£

°ì·¨1£º×°ÖÃÐëÒªµÄÈí¼þ°ü

Ê×ÏÈ£¬ÎÒÃÇÐèҪװÖÃһЩÐëÒªµÄÈí¼þ°ü£¬ÒÔ±ãÔÚLinuxϵͳÉÏÕý³£×°ÖúÍÔËÐÐZabbix¡£·­¿ªÖնˣ¬²¢Ê¹ÓÃÒÔÏÂÏÂÁî×°ÖÃËùÐèµÄÈí¼þ°ü¡£

sudo apt-get update
sudo apt-get install apache2 mysql-server php php-mysql php-gd php-xml php-bcmath php-mbstring

µÇ¼ºó¸´ÖÆ

°ì·¨2£º½¨ÉèZabbixÊý¾Ý¿â

ÔÚ×°ÖÃZabbix֮ǰ£¬ÎÒÃÇÐèÒª½¨ÉèÒ»¸öÊý¾Ý¿âÀ´´æ´¢¼à¿ØÊý¾Ý¡£Ö´ÐÐÒÔÏÂÏÂÁîÒԵǼMySQL¡£

sudo mysql -u root -p

µÇ¼ºó¸´ÖÆ

ÊäÈëÃÜÂëºó£¬½«»á½øÈëMySQLÏÂÁîÐнçÃæ¡£½¨ÉèÒ»¸öеÄÊý¾Ý¿âºÍÓû§£¬²¢½«È¨ÏÞÊÚÓè¸ÃÓû§¡£

CREATE DATABASE zabbix CHARACTER SET UTF8 COLLATE UTF8_BIN;
CREATE USER 'zabbix'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON zabbix.* TO 'zabbix'@'localhost' WITH GRANT OPTION;
FLUSH PRIVILEGES;
EXIT;

µÇ¼ºó¸´ÖÆ

°ì·¨3£ºÏÂÔغÍ×°ÖÃZabbix

ÏÖÔÚÎÒÃÇ¿ÉÒÔ×îÏÈ×°ÖÃZabbixÁË¡£Ê×ÏÈ£¬ÎÒÃÇÐèÒª´ÓZabbix¹Ù·½ÍøÕ¾ÖÐÏÂÔØ×îеÄZabbixЧÀÍÆ÷Èí¼þ°ü¡£Ê¹ÓÃÒÔÏÂÏÂÁîÏÂÔØÈí¼þ°ü¡£

wget https://repo.zabbix.com/zabbix/4.4/ubuntu/pool/main/z/zabbix-release/zabbix-release_4.4-1%2Bbionic_all.deb

µÇ¼ºó¸´ÖÆ

½ÓÏÂÀ´£¬ÎÒÃÇʹÓÃÒÔÏÂÏÂÁÈí¼þ°ü×°Öõ½ÏµÍ³ÖС£

sudo dpkg -i zabbix-release_4.4-1+bionic_all.deb
sudo apt-get update
sudo apt-get install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-agent

µÇ¼ºó¸´ÖÆ

°ì·¨4£ºÉèÖÃZabbixЧÀÍÆ÷

ZabbixЧÀÍÆ÷½«¼à¿ØÊý¾Ý´æ´¢ÔÚÉÏÒ»²½Öн¨ÉèµÄÊý¾Ý¿âÖС£·­¿ªZabbixЧÀÍÆ÷ÉèÖÃÎļþ£¬²¢¶ÔÆä¾ÙÐÐÐëÒªµÄ¸ü¸Ä¡£

sudo nano /etc/zabbix/zabbix_server.conf

µÇ¼ºó¸´ÖÆ

ÕÒµ½²¢±à¼­ÒÔÏÂÐС£

DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=password

µÇ¼ºó¸´ÖÆ

ÉúÑIJ¢¹Ø±ÕÎļþ¡£

°ì·¨5£ºµ¼ÈëZabbixÊý¾Ý¿âģʽºÍÊý¾Ý

ÔÚ´Ë°ì·¨ÖУ¬ÎÒÃǽ«µ¼ÈëZabbixÊý¾Ý¿âµÄģʽºÍÊý¾Ý¡£Ê¹ÓÃÒÔÏÂÏÂÁîµÇ¼MySQL¡£

sudo mysql -u zabbix -p zabbix < /usr/share/doc/zabbix-server-mysql/create.sql.gz

µÇ¼ºó¸´ÖÆ

ÊäÈë֮ǰÉèÖõÄÃÜÂ룬ȻºóÖ´ÐÐÒÔÏÂÏÂÁî¡£

sudo zcat /usr/share/doc/zabbix-server-mysql/data.sql.gz | mysql -u zabbix -p zabbix

µÇ¼ºó¸´ÖÆ

°ì·¨6£ºÉèÖÃZabbixÇ°¶Ë

ÏÖÔÚ£¬ÎÒÃÇÐèÒª¶ÔZabbixÇ°¶Ë¾ÙÐÐһЩÉèÖ᣷­¿ªApacheµÄZabbixÉèÖÃÎļþ¡£

sudo nano /etc/zabbix/apache.conf

µÇ¼ºó¸´ÖÆ

ÕÒµ½ÒÔÏÂÐв¢¾ÙÐб༭¡£

php_value date.timezone Europe/Riga

µÇ¼ºó¸´ÖÆ

½«Ê±Çø¸ü¸ÄΪÄúËùÔÚµÄʱÇø¡£ÉúÑIJ¢¹Ø±ÕÎļþ¡£

°ì·¨7£ºÆô¶¯ZabbixЧÀÍ

ͨ¹ýÒÔÏÂÏÂÁîÆô¶¯ZabbixЧÀÍÆ÷ºÍZabbixÊðÀí¡£

sudo systemctl start zabbix-server
sudo systemctl enable zabbix-server
sudo systemctl start zabbix-agent
sudo systemctl enable zabbix-agent
sudo systemctl restart apache2

µÇ¼ºó¸´ÖÆ

°ì·¨8£º»á¼ûZabbixÇ°¶Ë

ÔÚä¯ÀÀÆ÷ÖÐÊäÈëЧÀÍÆ÷µÄIPµØµã£¬²¢Ìí¼Ó¡°/zabbix¡±ÒÔ»á¼ûZabbixÇ°¶Ë¡£

http://your_server_IP/zabbix

µÇ¼ºó¸´ÖÆ

ʹÓÃĬÈϵÄÓû§Ãû¡°Admin¡±ºÍÃÜÂë¡°zabbix¡±µÇ¼¡£

½áÂÛ£º

ͨ¹ýƾ֤ÉÏÊö°ì·¨ÔÚLinux²Ù×÷ϵͳÉÏ×°ÖúÍÉèÖÃZabbix£¬ÄúÏÖÔÚÒѾ­ÓµÓÐÁËÒ»¸ö¹¦Ð§Ç¿Ê¢µÄ¼à¿Ø¹¤¾ß£¬¿ÉÒÔ×ÊÖúÄú¼à¿ØЧÀÍÆ÷ºÍÓ¦ÓóÌÐòµÄÔËÐÐ״̬¡£Äú»¹¿ÉÒÔƾ֤ÐèÒª¶ÔZabbix¾ÙÐнøÒ»²½µÄÉèÖúͶ¨ÖÆ»¯¡ £×îÏÈʹÓÃZabbixÀ´¼à¿ØºÍÓÅ»¯ÄúµÄϵͳ°É£¡

ÒÔÉϾÍÊÇÔõÑùÔÚLinuxÉÏ×°ÖúÍÉèÖüà¿Ø¹¤¾ß£¨ÈçZabbix£©µÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡

ÃâÔð˵Ã÷£ºÒÔÉÏչʾÄÚÈÝȪԴÓÚÏàÖúýÌå¡¢ÆóÒµ»ú¹¹¡¢ÍøÓÑÌṩ»òÍøÂçÍøÂçÕûÀí£¬°æȨÕùÒéÓë±¾Õ¾Î޹أ¬ÎÄÕÂÉæ¼°¿´·¨Óë¿´·¨²»´ú±í×ðÁú¿­Ê±¹ÙÍøµÇ¼ÂËÓÍ»úÍø¹Ù·½Ì¬¶È£¬Çë¶ÁÕß½ö×ö²Î¿¼¡£±¾ÎĽӴýתÔØ£¬×ªÔØÇë˵Ã÷À´ÓÉ¡£ÈôÄúÒÔΪ±¾ÎÄÇÖÕ¼ÁËÄúµÄ°æȨÐÅÏ¢£¬»òÄú·¢Ã÷¸ÃÄÚÈÝÓÐÈκÎÉæ¼°ÓÐÎ¥¹«µÂ¡¢Ã°·¸Ö´·¨µÈÎ¥·¨ÐÅÏ¢£¬ÇëÄúÁ¬Ã¦ÁªÏµ×ðÁú¿­Ê±¹ÙÍøµÇ¼ʵʱÐÞÕý»òɾ³ý¡£

Ïà¹ØÐÂÎÅ

ÁªÏµ×ðÁú¿­Ê±¹ÙÍøµÇ¼

18523999891

¿É΢ÐÅÔÚÏß×Éѯ

ÊÂÇéʱ¼ä£ºÖÜÒ»ÖÁÖÜÎ壬9:30-18:30£¬½ÚãåÈÕÐÝÏ¢

QR code
ÍøÕ¾µØͼ