[ Zabbix ] Zabbix Windows Disk Perfomance Using Agent 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 Open Source 2020.03.05
[ Zabbix ] Automatic login using Python's Selenium. (셀레니움을 이용한 zabbix 자동 로그인) 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() Open Source 2019.12.17
[ 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 ] Zabbix-Server, Zabbix-Agent 버전 보기 서버 버전 보기 # zabbix_server -V zabbix_server (Zabbix) 4.4.3 에이전트 버전 보기 # zabbix_agentd -V zabbix_agentd (daemon) (Zabbix) 4.4.3 Open Source 2019.12.12
[ metricbeat ] mariadb basic monitoring. (mariadb 기본 모니터링) - 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.. Open Source 2019.12.09
[ 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
mongo DB 포트 변경 보안을 위해 몽고DB 포트를 변경해 주는 것이 좋다. /etc/mongod.conf 파일의 28번째 라인에 포트번호를 변경해준다 Open Source 2019.10.30
Mongo DB 커뮤니티 버전 설치 - CentOS 7 몽고DB 설치 가이드 : https://docs.mongodb.com/manual/tutorial/install-mongodb-on-red-hat/ 1. YUM 설치를 위한 몽고DB 저장소 추가 # vi /etc/yum.repos.d/mongodb-org-4.2.repo 파일 추가 [mongodb-org-4.2] name=MongoDB Repository baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/4.2/x86_64/ gpgcheck=1 enabled=1 gpgkey=https://www.mongodb.org/static/pgp/server-4.2.asc 2. mongdb 커뮤니티 설치 # yum install -y mongo.. Open Source 2019.10.30
[ OSS - WinSCP ] Linux SFTP 접속 리눅스에서 hostkey 얻는 방법. (SFTP로 접속할 계정으로 SSH 로그인) $ ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key 2048 ....... WinSCP 스크립트 파일 : scriptfile.txt open sftp://user:password@host -hostkey="ssh-rsa 2048 ......." close exit 배치파일 (bat) 작성 @echo off winscp.com /ini=nul /script=scriptfile.txt Open Source 2019.08.06
freesshd를 이용한 windows 서버 ssh 접속 freesshd는 windows 서버를 ssh를 이용하여 접속할 수 있는 프로그램이다. 강력한 암호화 및 인증 기능을 제공하고, SFTP 서버에 연결하여 원격파일에 액세스 할 수도 있다. 다운로드 : http://www.freesshd.com/?ctt=download freeSSHd and freeFTPd - open source SSH and SFTP servers for Windows Downloads Here you can download the latest version of freeSSHd and freeFTPd. Please have in mind that you must have administrator privileges to install both applications. www.free.. Open Source 2019.07.12