본문 바로가기

Monitoring Tools/Zabbix

(24)
[zabbix] Ldap(AD) 연동 간단히 AD에서 다음과 같이 2개의 그룹으로 나누고 zabbix에서 AD 그룹과 매핑되는 역할을 할당한다. zabbix-admin : super admin role zabbix-user : user role zabbix version 6.4 User Group 설정 GUI 경로 : Users - User groups - Create user group Super admin 역할 그룹으로 "Zabbix administrators" 을 생성한다. Host 권한으로 모든 그룹에 대해 "Read-write" 권한을 부여한다. User 역할 그룹으로 "Zabbix User Group" 을 생성한다. Host 권한으로 모든 그룹에 대해 "Read" 권한을 부여한다. zabbix LDAP 설정 Ldap Server ..
[zabbix] 5.4 -> 6.4 upgrade 개요 현재 zabbix 5.4 환경 CentOS Linux release 8.4.2105 php-fpm-7.2.24 nginx-1.14 mariadb-server-10.3.28 zabbix 6.4 요구 조건 mariadb : 10.5.00-11.1.X 버전으로 InnoDB 엔진이 필요하며 권장 버전은 10.5 php-fpm : 7.4.0 - 8.3.X 버전으로 권장 버전은 8.0 이상 nginx : 1.20 이상 참조 : https://www.zabbix.com/documentation/current/en/manual/installation/requirements upgrade 개요 CentOS Linux release 8에서 기본 제공하는 패키지는 아래와 같다. php php는 7.2가 default고..
[zabbix] smart template PVE(proxmox)에 적용하기 zabbix 에서 제공하는 smart template은 smartctl(smartmontools)에서 표출하는 지표를 수집한다. HDD, SSD, NVMe 등의 디스크 지표를 수집 할 수 있어 디스크 모니터링에 유용하게 쓰일수 있다. 참조 : https://www.zabbix.com/integrations/smart 설치 조건 및 환경 조건 zabbix 5.0 이상 zabbix agent2 smartmontools 7.1 이상 설치 환경 Proxmox-VE 7.4 zabbix 5.4 설치 zabbix agent2 설치 pve(7.4) repository 는 zabbix agent 를 기본 제공하지만 zabbix agent2를 제공하지는 않는다. 따라서 zabbix agent2를 설치하여야 한다. 기존 z..
[zabbix] out of memory 로 인한 무한 시작반복 에러 증상 zabbix server 시작하면서 child process 하나가 죽음에 따라 zabbix server 가 시작하지 못하고 이를 반복하는 현상. zabbix server log 3960401:20221221:102110.876 Starting Zabbix Server. Zabbix 5.4.7 (revision 84dc2ec5dc). 3960401:20221221:102110.877 ****** Enabled features ****** 3960401:20221221:102110.877 SNMP monitoring: YES 3960401:20221221:102110.877 IPMI monitoring: YES 3960401:20221221:102110.877 Web monitoring: YES 39..
[zabbix] proxmox VE API(pvesh) 사용 VM discovery 만들기 zabbix server version 5.4 HTTP API를 사용하는 방식이 아닌 zabbix agent를 이용한 pvesh로 값을 얻어오는 방식이다. API 자세한 내용 참조 : https://pve.proxmox.com/pve-docs/api-viewer/ Proxmox VE API Documentation pve.proxmox.com 간단하게 vmid를 discovery로 얻어오게 만들고 vm name을 item으로 하는 template을 만든다. PVE Zabbix Agent 작업 zabbix agent config pve.qemu.discovery 이름으로 pvesh_qemu.py 를 실행하여 VMID json 출력 $1 = node name (pvesh get /nodes) pve.qemu..
zabbix | Slack Webhook을 이용하여 알람 보내기(그래프 포함) zabbix server version 5.0 media types Administrator - Media types - Create media type 아래와 같이 입력 Slack.py 변수 : zabbix_baseurl="zabbix web 주소" chart_cookie="세션 쿠키 저장파일" 설정할 파일경로 디렉토리를 생성 해주고 권한을 777로 설정 mkdir /usr/share/zabbix/tmp && chmod 777 /usr/share/zabbix/tmp chart_basedir="그래프 저장할 path" 설정할 파일경로 디렉토리를 생성 해주고 권한을 777로 설정 mkdir /usr/share/zabbix/slack_charts && chmod 777 /usr/share/zabbix/sla..
zabbix | windows process 모니터링 템플릿 만들기 모니터링 item 항목 참조 : https://www.zabbix.com/documentation/3.0/en/manual/config/items/itemtypes/zabbix_agent/win_keys No 항목 설명 1 process status process의 running, stopped 등 현재 상태정보 2 process count number of process 3 가상메모리 총량(kbytes) size of process virtual memory in Kbytes 4 실제 사용된 메모리 총량(kbytes) size of process working set (amount of physical memory used by process) in Kbytes 5 page faults number o..
[Zabbix] mssql 템플릿 적용 [zabbix server] odbc 패키지 설치 # odbc 패키지 설치 yum install freetds unixODBC-devel # 명령어 예시 # 등록된 odbc.ini 목록 표출(사용자) odbcinst -q -s #등록된 idbcinst.ini 목록 표출(드라이버) odbcinst -q -d #ini 파일 등록 위치 표출 odbcinst -j [zabbix server] 드라이버 및 접속 정보 설정 # 드라이버 설정 > cat /etc/odbcinst.ini ... [FreeTDS] Driver = /usr/lib64/libtdsodbc.so.0 Setup = /usr/lib64/libtdsS.so.2 FileUsage = 1 client_charset= utf-8 # 접속 정보 설정 > ..
cli에서 값 수집 테스트 1. JMX java -jar ./cmdline-jmxclient-0.10.3.jar - {dst ip}:{dst port} java.lang:type=OperatingSystem MaxFileDescriptorCount 2. AGENT zabbix_get -s {dst ip} -k "nginx[handled_requests,http://localhost:65535/nginx_status]"
16. [zabbix agent] 스위치 템플릿 1. alteon L4 6420 2. fortinet (fg-3000d) 3. netapp storage (FAS8020A) 4. wapples 10000 5. hp pro v1910