본문 바로가기

Monitoring Tools/Zabbix

(25)
6. [zabbix agent] redis 1. zabbix_agent2.conf : agent에서 지원 됨. ... ### Option: Plugins.Redis.Sessions.*.Password # Password to send to protected Redis server. "*" should be replaced with a session name. # # Mandatory: no # Default: #Plugins.Redis.Sessions.*.Password=abc@micap Plugins.Redis.Sessions.redisserver.Uri=tcp://localhost:6379 Plugins.Redis.Sessions.redisserver.Password={redis password} ... 2. zabbix_agent.conf ..
4. [오류수정] zabbix DB Replication error PRIMARY KEY 중복으로 리플 멈춤 현상 MariaDB [(none)]> show slave status \G; *************************** 1. row *************************** Slave_IO_State: Waiting for master to send event Master_Host: {master ip} Master_User: monitor-backup Master_Port: 3306 Connect_Retry: 60 Master_Log_File: zabbix-bin.000060 Read_Master_Log_Pos: 102938700 Relay_Log_File: mariadb-relay-bin.000119 Relay_Log_Pos: 45037108 ..
3. [이중화] zabbix DB replication 1. [Master] config 수정 [root@ZABBIX levi]# cat /etc/my.cnf [mysqld] ... ## replication server-id = 1 # 유니크 ID log-bin=zabbix-bin # binlog 이름 max_binlog_size = 100M # 1개의 binlog당 최대 사이즈 expire_logs_days = 7 # bin log 보관 주기 7일 binlog_do_db = zabbix # binlog를 쌓을 db명 ... 2. [Master] MariaDB 재기동 3. [Master] replication user 생성 MariaDB [mysql]> grant replication slave on *.* to 'monitor-backup'@'{backu..
2. zabbix Agent 환경 1. Mysql Template : Agent User 및 권한 설정 CREATE USER 'zabbix'@'%' IDENTIFIED BY 'zabbix'; GRANT SELECT,USAGE,REPLICATION CLIENT,PROCESS,SHOW DATABASES,SHOW VIEW ON *.* TO 'zabbix'@'%'; 2. OS 별 Agent 다운로드 ## CentOS6 : http://repo.zabbix.com/zabbix/5.0/rhel/6/x86_64/zabbix-agent-5.0.9-1.el6.x86_64.rpm ## CentOS7 : http://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/zabbix-agent-5.0.9-1.el7.x86_64.rpm ##..
1. zabbix server 설치 ## zabbix repository 추가 [root@ZABBIX]# rpm -Uvh https://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpm ## zabbix server, agent 설치 [root@ZABBIX]# yum clean all [root@ZABBIX]# yum install zabbix-server-mysql zabbix-agent2 [root@ZABBIX]# yum install centos-release-scl ## zabbix web front 설치 [root@ZABBIX]# cat /etc/yum.repos.d/zabbix.repo ... [zabbix-frontend] name=Zabb..