Open Source
-
[ Zabbix ] Zabbix server is not running : the infomation displayed may not be current ProblemOpen Source 2020. 6. 15. 14:26
[ 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..
-
[ Zabbix ] Zabbix Problem monitoring using Python API. (파이썬 API를 이용한 Zabbix Problem 모니터링)Open Source 2020. 6. 2. 17:06
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...
-
[ Zabbix ] Zabbix Windows Disk Perfomance Using AgentOpen Source 2020. 3. 5. 11:25
Zabbix Version : 4.4.1 Template : OS Windows by Zabbix agent Physical disks discovery - (item) Disk average queue size (avgqu-sz) Physical disks discovery - (item) Disk read / write rate Physical disks discovery - (item) Disk utilization
-
[ Zabbix ] Automatic login using Python's Selenium. (셀레니움을 이용한 zabbix 자동 로그인)Open Source 2019. 12. 17. 08:36
from selenium import webdriver brower = webdriver.Chrome('chromedriver.exe') brower.get('url') # username username = brower.find_element_by_id('name').send_keys('username') # password password = brower.find_element_by_id('password').send_keys('password') # Button Click brower.find_element_by_id("enter").click()
-
[ Zabbix ] Python의 ZabbixAPI_py 모듈을 이용한 problem 상태 받아오기Open Source 2019. 12. 13. 09:14
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 형식이..
-
[ metricbeat ] mariadb basic monitoring. (mariadb 기본 모니터링)Open Source 2019. 12. 9. 19:33
- OS : CentOS 7 - Elasticsearch / Kibana / Metricbeat 7.5 OSS mariadb 서버에 metricbeat가 설치되어 있다는 전제하에.. 1. metricbeat mysql module enable 기본적으로 mysql module은 disable 되어 있다. module을 enable시켜주자. # ls -l /etc/metricbeat/modules.d/mysql.yml.disabled -rw-r--r-- 1 root root 716 Dec 9 19:03 /etc/metricbeat/modules.d/mysql.yml.disabled # /usr/bin/metricbeat modules enable mysql Enabled mysql 2. /etc/metri..
-
[ Zabbix ] 4.4.1 Windows 2012 Agent (64bit) install and host settingOpen Source 2019. 11. 18. 21:19
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 : 윈도..