zabbix 7

[ Zabbix ] Nginx Monitoring

Nginx를 웹 서비스로 선택하고, 모니터링을 해야하는데 Zabbix agent 템플릿이 있어 구축하였다. 주요 성능 지표는 아래 공식사이트를 참고하면 된다. Zabbix Agent는 이미 설치되었고, Nginx 설정만 포스팅 한다. https://www.zabbix.com/integrations/nginx Nginx monitoring and integration with Zabbix This template is for Zabbix version: 6.2 Source: https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/app/nginx_agent?at=release/6.2 Nginx by Zabbix agent Overview For..

Open Source 2022.10.21

[ Zabbix ] Zabbix server is not running : the infomation displayed may not be current Problem

[ Problem ] Zabbix server is not running : the infomation displayed may not be current Zabbix를 구축하고, 50대 정도 노드를 늘리니 웹 브라우저에 아래와 같이 메세지가 발생하였다. zabbix 로그를 보니, out of memory 발생하였고, Zabbix Health도 Zabbix configuration이 Full 사용이었다. 4026:20200615:141000.390 [file:dbconfig.c,line:94] __zbx_mem_realloc(): out of memory (requested 16 bytes) 4039:20200615:141010.892 [file:dbconfig.c,line:94] __zbx_mem_re..

Open Source 2020.06.15

[ Zabbix ] Zabbix Problem monitoring using Python API. (파이썬 API를 이용한 Zabbix Problem 모니터링)

1. Create Sample Trigger (트리거 생성) 2. Python API (ZabbixAPI_py) # API # pip install ZabbixAPI_py from ZabbixAPI_py import Zabbix from datetime import datetime from datetime import timedelta # Zabbix Auth zabbix = Zabbix('host') zabbix.login('id','password') # before 10 Min tenMin = datetime.today() - timedelta(minutes=10) # get problems for x in zabbix.problem(method='get'): eventTime = datetime...

Open Source 2020.06.02

[ Zabbix ] Python의 ZabbixAPI_py 모듈을 이용한 problem 상태 받아오기

python 모듈을 이용해 zabbix problem 데이터를 gethering - Test Zabbix Version : 4.4.3 - Python Module : ZabbixAPI_py from ZabbixAPI_py import Zabbix from datetime import datetime zabbix = Zabbix('url') # zabbix url zabbix.login('id','password') # zabbix 계정정보 for x in zabbix.problem(method='get'): print(datetime.fromtimestamp(int(x['clock'])),x['name']) # problem 데이터 gethering # int(x['clock']) 유닉스 time 형식이..

Open Source 2019.12.13

[ Zabbix ] 4.4.1 Windows 2012 Agent (64bit) install and host setting

Download : https://www.zabbix.com/download [ Zabbix Agents ] 1. Windows 2012 R2서버에 설치할 예정이므로 4.4.1 64비트 설치형 프로그램 Agent Download 2. Windows 2012 서버에 Agent를 설치 [ 설치과정에 zabbix 서버 IP 입력 ] 3. Zabbix Server에 호스트 등록. (Agent를 포함할 호스트 그룹이 있으면 생략) [ Configuration ] - [ Host groups ] - [ Create host group ] - [ 본인이 만들고 싶은 그룹명을 만든다 ] 4. 호스트 등록 [ Configuration ] - [ Hosts ] - [ Create host ] - Host name : 윈도..

Open Source 2019.11.18

CentOS Zabbix Server 4.0 Install (자빅스 설치)

- OS : CentOS 7 - Zabbix : 4.0 1. httpd Install (Web Server) # yum -y install httpd # vi /etc/httpd/conf/httpd.conf ServerName 192.168.x.x DocumentRoot "/usr/share/zabbix" → 실제 zabbix 설치가 않되면 경로에러가 날 수 있으니 자빅스 설치후 기동 # systemctl start httpd # systemctl enable httpd 2. PHP Install # yum -y install php # vi /etc/php.ini date.timezone = Asia/Seoul 3. MaiaDB Install # yum -y install mariadb-server m..

Open Source 2019.04.01