zabbix 安裝部署實踐篇 且行且珍惜

2021-10-24 23:59:24 字數 2500 閱讀 3778

zabbix 安裝部署實踐篇 且行且珍惜

安裝zabbix

yum install -y zabbix-server-mysql zabbix-web-mysql zabbix-agent

使用者名稱 admin 密碼zabbix

zabbix啟動失敗報錯:cannot start alert manager service: cannot bind socket to 「/var/run/zabbix/zabbix_server_alerter.sock」: [13] permission denied.

解決辦法:

一:關閉防火牆

systemctl stop firewalld && systemctl disable firewalld

二:關閉selinux

setenforce 0 && sed -i 『s/^selinux=.*/selinux=disabled/』 /etc/selinux/config

重啟啟動zabbix服務即可

選擇您zabbix伺服器的平台

a. 安裝 資料庫

產品手冊

b. install zabbix server and agent

c. install zabbix frontend

產品手冊

enable red hat software collections

編輯配置檔案 /etc/yum.repos.d/zabbix.repo and enable zabbix-frontend repository.

[zabbix-frontend]

…enabled=1

…install zabbix frontend packages.

d. 建立初始資料庫

產品手冊

在資料庫主機上執行以下**。

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;

匯入初始架構和資料,系統將提示您輸入新建立的密碼。

e. 為zabbix server配置資料庫

編輯配置檔案 /etc/zabbix/zabbix_server.conf

dbpassword=password

f. 為zabbix前端配置php

編輯配置檔案 /etc/opt/rh/rh-php72/php-fpm.d/zabbix.conf, uncomment and set the right timezone for you.

; php_value[date.timezone] = europe/riga

g. 啟動zabbix server和agent程序

啟動zabbix server和agent程序,並為它們設定開機自啟:

h. 配置zabbix前端

連線到新安裝的zabbix前端: http://server_ip_or_name/zabbix

根據zabbix檔案裡步驟操作: installing frontend

開始使用zabbix

檢視快速開始指南

centos7下 mysql5.7.25 密碼改簡單的方法

在 vim /etc/my.cnf配置檔案中增加:

validate_password=off

default_password_lifetime=0

yum方式來安裝本地rpm包

yum localinstall docker-engine-1.12.1-1.el7.centos.x86_64.rpm

find: 『/run/user/1000/**fs』: 許可權不夠 的解決辦法

其實這個目錄是空的,查***沒關係。所以,以下解決方式比較簡粗暴:

umount /run/user/1000/**fs // 解除安裝該檔案

rm -rf /run/user/1000/**fs // 刪除該檔案

zabbix 無法啟動server伺服器

tailf /var/log/zabbix/zabbix_server.log

vim /etc/zabbix/zabbix_server.conf

378 ### option: cachesize

379 # size of configuration cache, in bytes.

380 # shared memory size for storing host, item and trigger data.

381 #

382 # mandatory: no

383 # range: 128k-8g

384 # default:

385 cachesize=2048m

386

Zabbix 安裝部署

linux centos 5.6 mysql 5.7 zabbix 2.4.8 php 5.6.23 apache 安裝相關 yum y install net snmp net snmp devel curl curl devel perl dbi 安裝apache mysql 已經安裝 安裝ph...

zabbix安裝部署

zabbix是經常在運維的工作中會經常用到的乙個軟體,下面簡單的介紹下安裝部署以及設定報警的過程。下面簡單的介紹下操作過程。環境介紹 zabbix server 192.168.10.185 zabbix agent 192.168.10.113 1 zabbix的安裝 zabbix的安裝需要的是l...

ZABBIX 安裝部署

安裝repo庫 wget dpkg i zabbix release 4.0 2 xenial all.deb sudo apt update 複製 安裝zabbix server frontend agentsudo apt install zabbix server mysql zabbix f...