zabbix 썸네일형 리스트형 [리눅스] zabbix(zabbix-agent) nginx의 성능 상태를 모니터링하는 방법 zabbix(zabbix-agent) nginx의 성능 상태를 모니터링하는 방법 nginx(default.conf) 설정 vim /etc/nginx/conf.d/default.conf location /basic_status { stub_status on; allow 127.0.0.1; deny all; access_log off; } $ cat /etc/nginx/conf.d/default.conf ... # nginx status location /basic_status { stub_status on; allow 127.0.0.1; deny all; access_log off; } ... systemctl restart nginx curl 테스트 curl -s localhost/basic_status.. 더보기 [리눅스] Zabbix-cloudwatch-integration 적용 Zabbix-cloudwatch-integration 적용 [웹 콘솔 작업] https://www.zabbix.com/integrations/cloudwatch XML(cloudwatch_template.xml) 문서 임포트 git clone https://github.com/wawastein/zabbix-cloudwatch.git > git clone https://github.com/wawastein/zabbix-cloudwatch.git Cloning into 'zabbix-cloudwatch'... remote: Enumerating objects: 93, done. Receiving objects: 33% (31/93)used 0 (delta 0), pack-reused 93 Receiving .. 더보기 [Zabbix] Zabbix 로그 파일 시간 형식(Log time format) Zabbix 로그 파일 시간 형식(Log time format) zabbix agent 로그 tail -f /var/log/zabbix/zabbix_agentd.log $ tail -f /var/log/zabbix/zabbix_agentd.log | grep agent.ping 14938:20210624:114055.396 Requested [agent.ping] 14937:20210624:114155.373 Requested [agent.ping] 14939:20210624:114255.787 Requested [agent.ping] 14938:20210624:114355.987 Requested [agent.ping] 14939:20210624:114455.011 Requested [agent.pin.. 더보기 [리눅스] mariadb 비밀번호 재설정하기 mariadb 비밀번호 재설정하기 MariaDB 접속 오류 $ mysql -uzabbix_user -p'zabbixpw1!' zabbix_proxy_db ERROR 1045 (28000): Access denied for user 'zabbix_user'@'localhost' (using password: YES) MariaDB 비밀번호 재설정 root로 접속 mysql -uroot -p use mysql; MariaDB [(none)]> use mysql; update user set password=password('zabbixpw1!') where user='zabbix_user'; MariaDB [mysql]> update user set password=password('zabbixpw1!') .. 더보기 [ZABBIX] Zabbix Proxy 서버 구성 Zabbix Proxy 서버 구성 Zabbix Proxy DB 서버 설치 $ wget https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm $ rpm -ivh mysql57-community-release-el7-11.noarch.rpm $ yum install -y mysql-server $ systemctl enable --now mysqld MySQL 5.7 비밀번호 재설정 $ systemctl stop mysqld $ systemctl set-environment MYSQLD_OPTS="--skip-grant-tables" ###ROOT 패스워드 변경 $ mysql -uroot mysql> UPDATE mysql.user SE.. 더보기 [ZABBIX] Disk read/write request responses 임계치 변경 ZABBIX Disk read/write request responses 임계치 변경 zabbix 알람 zabbix 서버에서 알람 메시지 확인 [보고서] > [액션 로그] 제목: Problem: sda: Disk read/write request responses are too high (read > 20 ms for 15m or write > 20 ms for 15m) 메시지: Problem started at 13:24:28 on 2021.04.02 Problem name: sda: Disk read/write request responses are too high (read > 20 ms for 15m or write > 20 ms for 15m) Host: db-xxxxxxx IP: 192.168.. 더보기 [리눅스] zabbix redis 모니터링(redis 템플릿 적용) zabbix redis 모니터링 userparameter 생성 vim /etc/zabbix/zabbix_agentd.d/userparameter_redis.conf UserParameter=redis.local[*], redis-cli -h 127.0.0.1 -p 6379 info | grep $1 | grep -v _human | cut -d : -f2 UserParameter=redis.status[*], redis-cli -h $1 -p $2 info | grep $3 | grep -v _human | cut -d : -f2 UserParameter=redis.proc, pidof redis-server | wc -l 템플릿(Template App Redis) 가져오기 Template App Red.. 더보기 [zabbix] Zabbix Message template 변경 Zabbix Message template 변경 zabbix > 관리 > 미디어 타입 > Message template [default] Problem started at {EVENT.TIME} on {EVENT.DATE} Problem name: {EVENT.NAME} Host: {HOST.NAME} Severity: {EVENT.SEVERITY} Operational data: {EVENT.OPDATA} Original problem ID: {EVENT.ID} {TRIGGER.URL} IP 추가 - IP: {HOST.IP} Problem started at {EVENT.TIME} on {EVENT.DATE} Problem name: {EVENT.NAME} Host: {HOST.NAME} IP: {HO.. 더보기 이전 1 2 3 다음