Comparing Next-Generation Container Image Building ToolsAkihiro Suda
http://sched.co/EaYe
Until recently, running `docker build` against Dockerfile had been the only way to build container images.
However, lots of opensource software are being proposed as successors/alternatives to `docker build`:
- BuildKit (Moby Project / Docker)
- img (Jessica Frazelle / Microsoft)
- Buildah (Project Atomic / Red Hat)
- umoci & Orca (SUSE)
- Bazel (Google)
- OpenShift S2I (Red Hat)
Akihiro Suda compares these new tools' advantages and disadvantages.
His evaluation basis would include but not be limited to:
- Performance (Cache efficiency, Concurrency, Distributed Execution)
- Secret management, e.g. SSH and AWS keys
- Support for non-Dockerfile
- Non-root execution
- UI & UX
- Governance of the community
He also proposes a unified interface for using these tools with Kubernetes in a vendor-neutral way.
Introduces Ansible as DevOps favorite choice for Configuration Management and Server Provisioning. Enables audience to get started with using Ansible. Developed in Python which only needs YAML syntax knowledge to automate using this tool.
Yesterday I gave presentation on Ansible and it was successful . It give basic understanding of playbook and an example implementation of jboss application from scratch
What Is Ansible? | How Ansible Works? | Ansible Tutorial For Beginners | DevO...Simplilearn
This presentation on Ansible will help you understand why Ansible is needed, what is Ansible, Ansible as a pull configuration tool, Ansible architecture, Ansible playbook, Ansible inventory, how Ansible works, Ansible tower and you will also see a use case on how Hootsuite used Ansible. Increasing team productivity and improving business outcomes have now become easy with Ansible. Ansible is a simple, popular, agent-free tool in the automation domain. Ansible is a tool that allows you to create and control three key areas within the operations environment of software development lifecycle. The first one is IT automation which allows you to write instructions to automate the IT professional's work that you would typically do manually in the past, the second is configuration management which allows you to maintain consistency of all systems in the infrastructure and the third is automatic deployment which allows you to deploy applications automatically on a variety of environments. Now let us get started and understand Ansible and it's architecture.
Below topics are explained in this Ansible presentation:
1. Why Ansible?
2. What is Ansible?
3. Ansible - Pull configuration tool
4. Ansible architecture
5. Playbook
6. Inventory
7. Working of Ansible
8. Ansible tower
9. Use case by Hootsuite
Simplilearn's DevOps Certification Training Course will prepare you for a career in DevOps, the fast-growing field that bridges the gap between software developers and operations. You’ll become en expert in the principles of continuous development and deployment, automation of configuration management, inter-team collaboration and IT service agility, using modern DevOps tools such as Git, Docker, Jenkins, Puppet and Nagios. DevOps jobs are highly paid and in great demand, so start on your path today.
Who should take this course?
DevOps career opportunities are thriving worldwide. DevOps was featured as one of the 11 best jobs in America for 2017, according to CBS News, and data from Payscale.com shows that DevOps Managers earn as much as $122,234 per year, with DevOps engineers making as much as $151,461. DevOps jobs are the third-highest tech role ranked by employer demand on Indeed.com but have the second-highest talent deficit.
1. This DevOps training course will be of benefit the following professional roles:
2. Software Developers
3. Technical Project Managers
4. Architects
5. Operations Support
6. Deployment engineers
7. IT managers
8. Development managers
Learn more at: https://www.simplilearn.com/
Comparing Next-Generation Container Image Building ToolsAkihiro Suda
http://sched.co/EaYe
Until recently, running `docker build` against Dockerfile had been the only way to build container images.
However, lots of opensource software are being proposed as successors/alternatives to `docker build`:
- BuildKit (Moby Project / Docker)
- img (Jessica Frazelle / Microsoft)
- Buildah (Project Atomic / Red Hat)
- umoci & Orca (SUSE)
- Bazel (Google)
- OpenShift S2I (Red Hat)
Akihiro Suda compares these new tools' advantages and disadvantages.
His evaluation basis would include but not be limited to:
- Performance (Cache efficiency, Concurrency, Distributed Execution)
- Secret management, e.g. SSH and AWS keys
- Support for non-Dockerfile
- Non-root execution
- UI & UX
- Governance of the community
He also proposes a unified interface for using these tools with Kubernetes in a vendor-neutral way.
Introduces Ansible as DevOps favorite choice for Configuration Management and Server Provisioning. Enables audience to get started with using Ansible. Developed in Python which only needs YAML syntax knowledge to automate using this tool.
Yesterday I gave presentation on Ansible and it was successful . It give basic understanding of playbook and an example implementation of jboss application from scratch
What Is Ansible? | How Ansible Works? | Ansible Tutorial For Beginners | DevO...Simplilearn
This presentation on Ansible will help you understand why Ansible is needed, what is Ansible, Ansible as a pull configuration tool, Ansible architecture, Ansible playbook, Ansible inventory, how Ansible works, Ansible tower and you will also see a use case on how Hootsuite used Ansible. Increasing team productivity and improving business outcomes have now become easy with Ansible. Ansible is a simple, popular, agent-free tool in the automation domain. Ansible is a tool that allows you to create and control three key areas within the operations environment of software development lifecycle. The first one is IT automation which allows you to write instructions to automate the IT professional's work that you would typically do manually in the past, the second is configuration management which allows you to maintain consistency of all systems in the infrastructure and the third is automatic deployment which allows you to deploy applications automatically on a variety of environments. Now let us get started and understand Ansible and it's architecture.
Below topics are explained in this Ansible presentation:
1. Why Ansible?
2. What is Ansible?
3. Ansible - Pull configuration tool
4. Ansible architecture
5. Playbook
6. Inventory
7. Working of Ansible
8. Ansible tower
9. Use case by Hootsuite
Simplilearn's DevOps Certification Training Course will prepare you for a career in DevOps, the fast-growing field that bridges the gap between software developers and operations. You’ll become en expert in the principles of continuous development and deployment, automation of configuration management, inter-team collaboration and IT service agility, using modern DevOps tools such as Git, Docker, Jenkins, Puppet and Nagios. DevOps jobs are highly paid and in great demand, so start on your path today.
Who should take this course?
DevOps career opportunities are thriving worldwide. DevOps was featured as one of the 11 best jobs in America for 2017, according to CBS News, and data from Payscale.com shows that DevOps Managers earn as much as $122,234 per year, with DevOps engineers making as much as $151,461. DevOps jobs are the third-highest tech role ranked by employer demand on Indeed.com but have the second-highest talent deficit.
1. This DevOps training course will be of benefit the following professional roles:
2. Software Developers
3. Technical Project Managers
4. Architects
5. Operations Support
6. Deployment engineers
7. IT managers
8. Development managers
Learn more at: https://www.simplilearn.com/
Infrastructure testing with Molecule and TestInfraTomislav Plavcic
Presentation defines what infrastructure as code is and what are some of the frameworks used for writing and testing it. More info is provided about Molecule framework which is used for testing Ansible roles and also TestInfra framework which can be used as a verifier with Molecule, but also as a standalone test framework.
● Fundamentals
● Key Components
● Best practices
● Spring Boot REST API Deployment
● CI with Ansible
● Ansible for AWS
● Provisioning a Docker Host
● Docker&Ansible
https://github.com/maaydin/ansible-tutorial
We've added the presentation used by John Walter, Solution Architect for Red Hat's Training and Certification team, from our Accelerating with Ansible webinar. He discussed the emergence of radically simple Ansible automation and answered questions from attendees. Learn how Ansible automates cloud provisioning, configuration management, application deployment, intra-service orchestration, and many other IT needs. Also learn how Ansible is designed for multi-tier deployments from day one and how Ansible models your IT infrastructure by describing how all your systems inter-relate, rather than just managing one system at a time.
Rancher et Kubernetes sont le moteur de la majorité des applications modernes en production. Mais la chaine d'automatisation permettant de livrer du code l'esprit léger commence bien plus en amont grace à un outillage Open Source.
Au programme :
- Commit Code : Avec Gitlab et les outils de collaboration
- Build Image : Toujours plus de fiabilité avec les images SLE Base Container Image
- Store in Registry : Archivage et scan de vulnérabilité avec Harbor
- Test & Go : Livraison en continue avec le mode GitOps et Rancher Fleet
A presentation delivered by Arctiq, onsite in Toronto, on Mar 1, 2017. The presentation discusses Ansible as an automation tool for Linux, Windows, and network devices. Reach out if you would like more information www.arctiq.ca
파이콘 한국 2019 - 파이썬으로 서버를 극한까지 끌어다 쓰기: Async I/O의 밑바닥Seomgi Han
서버 자원의 효율성을 극대화하기 위해서는 흔히 비동기 프로그래밍 방식을 적용합니다. 파이썬에서도 비동기 프로그래밍 방식으로 웹서비스를 제공하기 위해서 여타 웹프레임워크 프로젝트가 탄생했습니다. Tornado부터 시작하여, Aiohttp, Sanic, Vibora 등과 같은 프로젝트가 이러한 목적을 갖고 있는 프로젝트입니다. 그 중에서도 Vibora나 Sanic 등과 같은 프로젝트는 서로 자기가 처리 능력이 좋다며 자랑하고 있습니다. 그 이유로 비동기 방식을 활용하기 때문이라고 하는데, 설명을 들여다보면 빠지지 않고 나오는 단어가 있습니다. 바로 uvloop입니다.
uvloop이 무엇인지 궁금하여 알아보면, 다시 libuv라는 라이브러리를 만날 수 있습니다.
이 프로그램에서는 libuv가 어떤 방향성을 갖고 디자인되었으며, 어떤 기능을 갖고 있기에 다수의 프로젝트에서 사용하게 되었는지, 파이썬의 기본 라이브러리인 asyncio와는 어떤 차이점이 있는지를 알아봅니다. 또한 파이썬으로 만들어진 몇몇 웹프레임워크가 어떤 처리 능력을 보여주는지 직접 테스트해본 결과를 공유합니다.
Ansible is tool for Configuration Management. The big difference to Chef and Puppet is, that Ansible doesn't need a Master and doesn't need a special client on the servers. It works completely via SSH and the configuration is done in Yaml.
These slides give a short introduction & motivation for Ansible.
In this session, we will discuss the architecture of a Kubernetes cluster. we will go through all the master and worker components of a kubernetes cluster. We will also discuss the basic terminology of Kubernetes cluster such as Pods, Deployments, Service etc. We will also cover networking inside Kuberneets. In the end, we will discuss options available for the setup of a Kubernetes cluster.
This talk discusses the core concepts behind the Kubernetes extensibility model. We are going to see how to implement new CRDs, operators and when to use them to automate the most critical aspects of your Kubernetes clusters.
Infrastructure testing with Molecule and TestInfraTomislav Plavcic
Presentation defines what infrastructure as code is and what are some of the frameworks used for writing and testing it. More info is provided about Molecule framework which is used for testing Ansible roles and also TestInfra framework which can be used as a verifier with Molecule, but also as a standalone test framework.
● Fundamentals
● Key Components
● Best practices
● Spring Boot REST API Deployment
● CI with Ansible
● Ansible for AWS
● Provisioning a Docker Host
● Docker&Ansible
https://github.com/maaydin/ansible-tutorial
We've added the presentation used by John Walter, Solution Architect for Red Hat's Training and Certification team, from our Accelerating with Ansible webinar. He discussed the emergence of radically simple Ansible automation and answered questions from attendees. Learn how Ansible automates cloud provisioning, configuration management, application deployment, intra-service orchestration, and many other IT needs. Also learn how Ansible is designed for multi-tier deployments from day one and how Ansible models your IT infrastructure by describing how all your systems inter-relate, rather than just managing one system at a time.
Rancher et Kubernetes sont le moteur de la majorité des applications modernes en production. Mais la chaine d'automatisation permettant de livrer du code l'esprit léger commence bien plus en amont grace à un outillage Open Source.
Au programme :
- Commit Code : Avec Gitlab et les outils de collaboration
- Build Image : Toujours plus de fiabilité avec les images SLE Base Container Image
- Store in Registry : Archivage et scan de vulnérabilité avec Harbor
- Test & Go : Livraison en continue avec le mode GitOps et Rancher Fleet
A presentation delivered by Arctiq, onsite in Toronto, on Mar 1, 2017. The presentation discusses Ansible as an automation tool for Linux, Windows, and network devices. Reach out if you would like more information www.arctiq.ca
파이콘 한국 2019 - 파이썬으로 서버를 극한까지 끌어다 쓰기: Async I/O의 밑바닥Seomgi Han
서버 자원의 효율성을 극대화하기 위해서는 흔히 비동기 프로그래밍 방식을 적용합니다. 파이썬에서도 비동기 프로그래밍 방식으로 웹서비스를 제공하기 위해서 여타 웹프레임워크 프로젝트가 탄생했습니다. Tornado부터 시작하여, Aiohttp, Sanic, Vibora 등과 같은 프로젝트가 이러한 목적을 갖고 있는 프로젝트입니다. 그 중에서도 Vibora나 Sanic 등과 같은 프로젝트는 서로 자기가 처리 능력이 좋다며 자랑하고 있습니다. 그 이유로 비동기 방식을 활용하기 때문이라고 하는데, 설명을 들여다보면 빠지지 않고 나오는 단어가 있습니다. 바로 uvloop입니다.
uvloop이 무엇인지 궁금하여 알아보면, 다시 libuv라는 라이브러리를 만날 수 있습니다.
이 프로그램에서는 libuv가 어떤 방향성을 갖고 디자인되었으며, 어떤 기능을 갖고 있기에 다수의 프로젝트에서 사용하게 되었는지, 파이썬의 기본 라이브러리인 asyncio와는 어떤 차이점이 있는지를 알아봅니다. 또한 파이썬으로 만들어진 몇몇 웹프레임워크가 어떤 처리 능력을 보여주는지 직접 테스트해본 결과를 공유합니다.
Ansible is tool for Configuration Management. The big difference to Chef and Puppet is, that Ansible doesn't need a Master and doesn't need a special client on the servers. It works completely via SSH and the configuration is done in Yaml.
These slides give a short introduction & motivation for Ansible.
In this session, we will discuss the architecture of a Kubernetes cluster. we will go through all the master and worker components of a kubernetes cluster. We will also discuss the basic terminology of Kubernetes cluster such as Pods, Deployments, Service etc. We will also cover networking inside Kuberneets. In the end, we will discuss options available for the setup of a Kubernetes cluster.
This talk discusses the core concepts behind the Kubernetes extensibility model. We are going to see how to implement new CRDs, operators and when to use them to automate the most critical aspects of your Kubernetes clusters.
Deview 2013 :: Backend PaaS, CloudFoundry 뽀개기Nanha Park
# Part 1
개발자의 주위환경에 대해 살펴보고 Cloud Foundry overview, Cloud Foundry 를 구성하는 components 마지막으로 Deploy 환경에 대해 알아보겠습니다.
# Part 2
설치부터 코드까지, 데모찍은 동영상은 추후 제공예정
부족한 부분은 nanhap@gmail.com 으로 문의메일 주시면 성심성의껏 답변 드리겠습니다. 감사합니다.
MySQL Administrator
Basic course
- MySQL 개요
- MySQL 설치 / 설정
- MySQL 아키텍처 - MySQL 스토리지 엔진
- MySQL 관리
- MySQL 백업 / 복구
- MySQL 모니터링
Advanced course
- MySQL Optimization
- MariaDB / Percona
- MySQL HA (High Availability)
- MySQL troubleshooting
네오클로바
http://neoclova.co.kr/
[오픈소스컨설팅]Day #1 MySQL 엔진소개, 튜닝, 백업 및 복구, 업그레이드방법Ji-Woong Choi
MySQL 소개
간략한 소개
version history
MySQL 사용처
제품 군 변화
시장 변화
MySQL 구성
MySQL 클라이언트 / 서버 개념
클라이언트 프로그램
MySQL 설치
MySQL 버전
MySQL 설치
MySQL 환경 설정
환경설정, 변수 설정
MySQL 스토리지 엔진 소개
MySQL tuning 소개 및 방법
데이터 백업/복구 방법
백업
복구
MySQL Upgrade
가상 개발 환경 세팅(Virtual Development Environment Setting)
Studybee 2주차 스터디 - 가상의 개발 환경 세팅하기!
Vagrant, virtualenv를 이용해 가상 개발 환경 세팅하는 것을 다룹니다.
**http://www.studybee.kr 에서 운영하는 '초심자를 위한 웹개발' 클래스에서 만드는 교재이며,
장고를 이용해 간단하게 블로그를 만드는 것을 목표로 하고 있습니다.
Similar to [오픈소스컨설팅]Zabbix Installation and Configuration Guide (20)
기존에 저희 회사에서 사용하던 모니터링은 Zabbix 였습니다.
컨테이너 모니터링 부분으로 옮겨가면서 변화가 필요하였고, 이에 대해서 프로메테우스를 활용한 모니터링 방법을 자연스럽게 고민하게 되었습니다.
이에 이영주님께서 테크세션을 진행하였고, 이에 발표자료를 올립니다.
5개의 부분으로 구성되어 있으며, 세팅 방법에 대한 내용까지 포함합니다.
01. Prometheus?
02. Usage
03. Alertmanager
04. Cluster
05. Performance
2018년도 Amazon AWS re:Invent Machine Learning 부분에 대한 요약을 오픈소스컨설팅 서경빈(AWS SA)님이 해주셨습니다.
사내 발표 때 아주 쉽게 설명해주셔서 좋았는데, 해당 내용은 Tech Blog에서도 확인이 가능합니다.
https://tech.osci.kr/2018/12/06/50693623/
[오픈소스컨설팅] Docker를 활용한 Gitlab CI/CD 구성 테스트Ji-Woong Choi
Docker를 활용하여 Gitlab CI/CD 설치 구성 및 샘플 테스트를 위한 가이드 문서이며, Docker 및 Gitlab에 대한 개요 및 사용법에 대해서는 다루지 않습니다. Docker image를 이용 Gitlab 및 Gitlab CI/CD 설치 및 구성 후 Sample Spring boot web application을 이용하여 소스 변경에 따른 commit이 발생 했을 때 Gitlab CI/CD 기능을 통해 application 테스트, 빌드, 배포까지의 일련의 과정이 자동으로 진행되는지를 테스트 하는 내용입니다.
[오픈소스컨설팅]클라우드기반U2L마이그레이션 전략 및 고려사항Ji-Woong Choi
Cloud 기반으로 U2C(Unix to Cloud),U2L(Unix to Linux) 마이그레이션에 대한 가이드 라인과 사이징 관련 고려 사항에 대해 설명한 자료입니다.
많은 전환 프로젝트에서 추출된 경험치가 들어가 있으며, 전환별 난이도 및 고려사항이 들어가 있습니다.
장소 : 미국 보스턴 Hynes Convention Center
일시 : 2017년 5월 6일 ~ 11일 (미국 동부 시각)
참가 인원 : 5000명 이상
참가 업체 : 1014개
참가국 : 63개국
세션 수 : 750여 개(이전 Summit 대비 약 250여 개 증가)
[오픈소스컨설팅] Red Hat ReaR (relax and-recover) Quick GuideJi-Woong Choi
본 문서는 RHEL에 내장된 재해복구솔루션 ReaR (Relax and Recover)를 이용하여 OS 영역의 데이터를 백업하고 복구하는 방법을 다루고 있습니다. ReaR는 iso를 비롯한 다양한 백업 데이터 포맷을 지원하나, 이 문서에서는 CD/DVD 미디어 반입/보관이 보안상 대부분 허용되지 않는 기업 환경에서도 원활히 사용할 수 있는 PXE boot를 지원하는 포맷으로 ReaR 백업 데이터를 생성하고 복구하는 방법만을 자세히 설명합니다.
[오픈소스컨설팅] Open Stack Ceph, Neutron, HA, Multi-RegionJi-Woong Choi
OpenStack Ceph & Neutron에 대한 설명을 담고 있습니다.
1. OpenStack
2. How to create instance
3. Ceph
- Ceph
- OpenStack with Ceph
4. Neutron
- Neutron
- How neutron works
5. OpenStack HA- controller- l3 agent
6. OpenStack multi-region
아틀라시안 JIRA를 사용할 때 가장 핵심적으로 해야 할 내용들만 추려서 가이드 문서를 작성하였습니다.
그러한 작업들로는 프로젝트, 스킴(Scheme), 이메일 세팅, 권한 관리, 백업/복구 등이 있습니다.
관리자가 이런 일을 잘 할 수 있도록 핵심적인 내용만으로 구성한 문서를 공유합니다.
레드햇 엔터프라이즈 리눅스 7 기반에 대한 운영자 가이드 기초편을 공유합니다.
부트로더 관리, 패키지, 네트워크, 스토리지 및 크래쉬 덤프 발생에 대한 관리까지 기초 운영 지식에 대한 부분을 본 문서를 통해 얻으실 수 있습니다.
오픈소스컨설팅의 문경윤차장께서 공유해주신 내용입니다.
2. Zabbix Install Guide
ooo 구축
000-01 V1.0 2013-04-16 권봉진
2 / 29
개정 이력
버전 개정일자 1
개정사유 2
개정내역 작성자 승인자
1.0 2013-04-16 제정 최초 제정 권봉진
1
개정 사유: 제정 또는 개정 내용이 이전 문서에 대해 추가/수정/삭제인지 선택 기입
2
개정 내역: 개정이 발생하는 페이지 번호와 변경 내용을 기술
3. Zabbix Install Guide
ooo 구축
000-01 V1.0 2013-04-16 권봉진
3 / 29
목 차
1. Zabbix 개요........................................................................................................ 4
1.1. 설치 환경..............................................................................................................................................................................4
2. Zabbix Server 설치 방법....................................................................................... 5
2.1. Zabbix 사용자 계정 생성................................................................................................................................................5
2.2. MySQL 설치.........................................................................................................................................................................5
2.3. PHP 설치...............................................................................................................................................................................5
2.4. Zabbix 소스 컴파일 및 설치..........................................................................................................................................6
2.4.1. Installing Zabbix deamons ..........................................................................6
2.4.1. Installing Zabbix frontend ...........................................................................8
3. Zabbix Agent 설치 방법 ......................................................................................14
3.1. Zabbix Agent 설정.......................................................................................................................................................... 14
3.2. Zabbix Agent Start.......................................................................................................................................................... 14
4. Zabbix 모니터링 항목 및 모니터링 방법.................................................................15
4.1. 모니터링 항목 (Item keys) .......................................................................................................................................... 15
4.2. 모니터링 방법................................................................................................................................................................... 16
4.2.1. Host 등록 방법 ...................................................................................... 17
4.2.2. Item 등록.............................................................................................. 19
4.2.3. Trigger 등록 .......................................................................................... 20
4.2.4. Action 등록 ........................................................................................... 21
5. 프로세스 모니터링 등록 및 확인 방법....................................................................25
5.1. 프로세스 모니터링 등록............................................................................................................................................... 25
5.2. 프로세스 모니터링 확인방법....................................................................................................................................... 27
5.2.1. Monitoring > Latest data........................................................................... 27
5.2.2. Monitoring > Triggers .............................................................................. 27
5.2.3. Monitoring > Events ................................................................................ 28
6. 구성시 주의사항.................................................................................................29
6.1. Zabbix server 웹접속이 안될때.................................................................................................................................. 29
6.2. Zabbix server deamon 이 start 되지 못하는경우............................................................................................... 29
6.3. Zabbix server is not running 메시지 발생시......................................................................................................... 29
4. Zabbix Install Guide
ooo 구축
000-01 V1.0 2013-04-16 권봉진
4 / 29
1. Zabbix 개요
Zabbix 는 엔터프라이즈급 오픈소스 분산 모니터링 솔루션이다.
Zabbix 는 네트워크와 서버의 상태 및 무결성의 다양한 매개변수를 모니터링하는 소프트웨어 입니
다. Zabbix는 사용자로 하여금 거의 모든 이벤트에 대해 e-mail 기반 알림을 설정 할수 있도록 하
는 유연한 알림 메커니즘을 사용합니다. 이것은 서버 문제데 대하나 빠른 대응을 할수 있게 합니
다. Zabbix 는 저장된 데이터를 기반으로 뛰어난 리포팅 및 데이터 시각화 기능을 제공합니다.
Zabbix 는 polling 및 trapping 을 모두 지원합니다. 모든 Zabbix 보고서 및 통계뿐만 아니라, 설정
정보들을 웹UI 를 통해 액세스 할수 있습니다.
Zabbix 는 GPL General Public License version 2하에 작성 및 배포되었으며, 소스 코드는 자유롭게
배포 및 누구나 사용할수 있습니다.
1.1. 설치 환경
Red Hat Enterprise Linux Server release 6.3
Zabbix 2.0.5
PHP 5.3.3
MySQL 5.1.67
5. Zabbix Install Guide
ooo 구축
000-01 V1.0 2013-04-16 권봉진
5 / 29
2. Zabbix Server 설치 방법
Zabbix Server 설치 작업 순서는 다음과 같다.
Zabbix 사용자 계정 생성
MySQL 설치
php 설치
Zabbix 소스 컴파일 및 설치
2.1. Zabbix 사용자 계정 생성
아래 명령으로 zabbix user 생성 (by root)
$ groupadd zabbix
$ useradd –g zabbix zabbix
2.2. MySQL 설치
Zabbix Server 는 모니터링 수집데이터를 저장하기위해서 데이터베이스가 필요하다.
아래 명령으로 설치 (by root)
$ yum -y install mysql mysql-server mysql-devel
설치완료후 mysql 데몬을 실행한다. (by root)
$ service mysqld start
2.3. PHP 설치
Zabbix Server 웹 UI 는 PHP 로 개발되어있음으로 PHP 모듈 및 PHP extensions 를 설치해야 한다.
아래 명령으로 설치 (by root)
$ yum install php
$ yum install php-mysql
$ yum install php-bcmath
$ yum install php-mbstring
$ yum install php-gd
웹서버는 리눅스에 기본적으로 설치되어 있는 httpd 를 사용한다.
6. Zabbix Install Guide
ooo 구축
000-01 V1.0 2013-04-16 권봉진
6 / 29
2.4. Zabbix 소스 컴파일 및 설치
2.4.1. Installing Zabbix deamons
Download the source archive
아래 url 에서 최신버전의 소스를 다운받는다.
http://www.zabbix.com/download.php
다운받은후 다음과같이 압축을 푼다. (by zabbix)
$ tar –zxvf zabbix-2.0.5.tar.gz // 현재 directory 에 zabbix-2.0.5 drectory 가 생성됨.
Create Zabbix database
MySQL 에 Zabbix 가 사용할 db schema 및 기본 dataset 을 입력한다. (by root)
$ mysql
mysql> create database zabbix;
mysql>exit;
$ cd /home/zabbix/zabbix-2.0.5/database/mysql
$ mysql –uroot –p zabbix < ./schema.sql
$ mysql –uroot –p zabbix < ./images.sql
$ mysql –uroot –p zabbix < ./data.sql
Configure the sources
설치 directory 생성후 소스 컴파일을 위한 설정을 실행한다. (by zabbix)
$ cd /home/zabbix
$ mkdir ./server
$ cd /home/zabbix/zabbix-2.0.5
$ ./configure --prefix=/home/zabbix/server --enable-server --enable-agent --with-mysql --enable-ipv6
--with-net-snmp --with-libcurl.
작업중 curl 및 snmp 관련 에러가 발생하면 다음 모듈을 추가 설치한다. (by root)
$ yum install curl curl-devel
$ yum install net-snmp-devel
7. Zabbix Install Guide
ooo 구축
000-01 V1.0 2013-04-16 권봉진
7 / 29
Make and install
최종 컴파일 및 설치를 실행한다. (by zabbix)
$ make install
앞선 ./configure –-prefix 로 지정한 /home/zabbix/server 에 Zabbix server deamon 이 설치된다.
Zabbix server 설정파일은 /home/zabbix/server/etc/zabbix_server.conf 이다. Database name, user
and password 등이 설정되어 있다.
Start up the daemons
다음과 같이 zabbix server deamon 을 실행한다.(by zabbix)
$ /home/zabbix/server/sbin/zabbix_server –c /home/zabbix/server/etc/zabbix_server.conf
// 아래는 종료 script
$ ps -ef | grep "zabbix_server" | awk {'print "kill -9 " $2'} | sh -x
-c 옵션으로 설정파일을 지정한다. 지정하지 않으면 /usr/local/etc/zabbix_server.conf 를 찾는다.
Ps –ef | grep zabbix 명령으로 데몬이 실행되었는지 확인다.
8. Zabbix Install Guide
ooo 구축
000-01 V1.0 2013-04-16 권봉진
8 / 29
2.4.1. Installing Zabbix frontend
Copying PHP files
Zabbix frontend(WEB UI) 는 PHP 로 작성되었다. 따라서 PHP가 지원되는 웹서버가 필요하다. 웹서버
가 설치되어 있다면 단순히 Zabbix 소스의 frontends/php 의 PHP 파일들을 웹서버의 document root
디렉토리에 카피만하면 된다.
일반적으로 OS별 아파치 웹서버의 document root 위치는 다음과 같다.
/usr/local/apache2/htdocs (default directory when installing Apache from source)
/srv/www/htdocs (OpenSUSE, SLES)
/var/www/html (Fedora, RHEL, CentOS)
/var/www (Debian, Ubuntu)
카피하기 전에 먼저 zabbix 서브 디렉토리를 생성후 그안에 php파일들을 카피한다. (by root)
$ cd /var/www/html
$ mkdir zabbix
$ cd /home/zabbix/zabbix-2.0.5/frontends/php
$ cp –R . /var/www/html/zabbix
웹서버(httpd)가 실행되어 있지 않다면 실행한다. (service httpd start)
Installing frontend
Step1
브라우저로 http://<server_ip_or_name>/zabbix 로 접속하면 아래와 같은 화면을 볼수 있다.
9. Zabbix Install Guide
ooo 구축
000-01 V1.0 2013-04-16 권봉진
9 / 29
Step2
다음 화면에서는 PHP 관련 필요 설정상태를 보여준다.
만일 fail 되어있는 항목이 있다면 설정 및 관련 설치를 통해 해결해야 한다.
아래를 참고하세요.
Pre-requisite Minimum value Description
PHP version 5.1.6
PHP memory_limit option 128MB
In php.ini:
memory_limit = 128M
PHP post_max_size
option
16MB
In php.ini:
post_max_size = 16M
PHPupload_max_filesize
option
2MB
In php.ini:
upload_max_filesize = 2M
PHPmax_execution_time
option
300 seconds
In php.ini:
max_execution_time = 300
PHP max_input_time
option
300 seconds
In php.ini:
max_input_time = 300
PHPsession.auto_start
option
must be disabled
In php.ini:
session.auto_start = 0.
Required since Zabbix 2.0.4 version.
Database support
One of: IBM DB2,
MySQL, Oracle,
PostgreSQL, SQLite
One of the following modules must be
installed:
ibm_db2, mysql, oci8, pgsql, sqlite3
bcmath php-bcmath
10. Zabbix Install Guide
ooo 구축
000-01 V1.0 2013-04-16 권봉진
10 / 29
mbstring php-mbstring
sockets
php-net-socket. Required for user script
support.
gd 2.0 or higher
php-gd. PHP GD extension must
support PNG images (--with-png-
dir), JPEG (--with-jpeg-dir) images and
FreeType 2 (--with-freetype-dir).
libxml 2.6.15 php-xml or php5-dom
xmlwriter php-xmlwriter
xmlreader php-xmlreader
ctype php-ctype
session php-session
gettext php-gettext
/etc/php.ini 설정(by root) 후에는 웹서버를 재시작해야 한다.
Step3
Database 관련설정 화면이다. 아래 화면과같이 설정하고, ‘Test connection’클릭 결과가 ‘OK’이어야
한다. (실패했다면 관련 정보 및 3306 포트관련 방화벽을 확인한다.)
11. Zabbix Install Guide
ooo 구축
000-01 V1.0 2013-04-16 권봉진
11 / 29
Step4
Zabbix server host 및 port 설정화면으로 변경 없이 ‘Next’.
Step5
설정 정보를 재확인하는 화면임. ‘Next’.
12. Zabbix Install Guide
ooo 구축
000-01 V1.0 2013-04-16 권봉진
12 / 29
Step6
‘Download configuration file’을 이용 zabbix.conf.php 파일을 다운받아서 서버
/var/www/html/zabbix/conf 로 업로드하고 ‘Retry’를 클릭해 ‘OK’를 확인한다.
Step7
설치 완료 화면.
13. Zabbix Install Guide
ooo 구축
000-01 V1.0 2013-04-16 권봉진
13 / 29
Step7
모든 설치가 완료되었으며 Default user name 은 ‘Admin’, password 는 ‘zabbix’ 이다.
14. Zabbix Install Guide
ooo 구축
000-01 V1.0 2013-04-16 권봉진
14 / 29
3. Zabbix Agent 설치 방법
Zabbix Server 설치 내역중에 아래 구성항목들을 Agent 모듈로 사용하면 된다.
[Zabbix Server Path]/bin/zabbix_get
[Zabbix Server Path]/bin/zabbix_sender
[Zabbix Server Path]/etc/zabbix_agent.conf
[Zabbix Server Path]/etc/zabbix_agentd.conf
[Zabbix Server Path]/sbin/zabbix_agent
[Zabbix Server Path]/sbin/zabbix_agentd
위 Agent 모듈을 각 모니터링 대상 host 에 설치하기만 하면 된다. (by agent 계정)
3.1. Zabbix Agent 설정
[Zabbix Agent Path]/etc/zabbix_agentd.conf 파일에서 아래 항목을 환경에 맞게 설정한다.
항목 설정
PidFile Pid 파일 경로 수정.
Ex ) [Zabbix Agent Path]/logs/zabbix_agentd.pid
LogFile Log 파일 경로 수정
Ex ) [Zabbix Agent Path]/logs/zabbix_agentd.log
Server Incomming Connection 을 허용할 Zabbix Server IP or hostname list 를 콤마
구분자로 설정한다. 공백을 허용하지 않음. (passive check 를 위함)
ServerActive Active check 를 위한 Zabbix Server IP:port (or hostname:port) list 를 콤마
구분자로 설정한다. 공백을 허용하지 않고, port 생략시 10051 기본포트가
사용된다.
Hostname Zabbix Server 에 등록된 host name 을 입력한다.
일반적인 경우 PidFile, LogFile 은 사용자 권한이 허용되는 곳으로 수정하고, Server, ServerActive 는
Zabbix Server IP 만 설정하면 된다.
3.2. Zabbix Agent Start
다음과 같이 Agent daemon 을 start 한다. (by agent 계정)
$ [Zabbix Server Path]/sbin/zabbix_agentd –c [Zabbix Server Path]/etc/zabbix_agentd.conf
// 아래는 종료 script
$ ps -ef | grep "zabbix_agent" | awk {'print "kill -9 " $2'} | sh -x
15. Zabbix Install Guide
ooo 구축
000-01 V1.0 2013-04-16 권봉진
15 / 29
4. Zabbix 모니터링 항목 및 모니터링 방법
4.1. 모니터링 항목 (Item keys)
Zabbix 는 모니터링 항목을 Item key라는 것으로 정의한다. 다음과 같은 항목을 모니터링 할 수 있다.
모니터링 항목 Item keys
CPU 사용률 Item key : system.cpu.util[<cpu>,<type>,<mode>]
cpu : cpu number (default is all CPUs)
type : idle, nice, user(default), system, iowait, interrupt…
mode : avg1 (1분평균, default), avg5(5분평균), avg15(15분평균)
Example key: system.cpu.util[0,user,avg5]
Memory 사용량 Item key : vm.memory.size[<mode>]
mode : one of total(default), active, anon, buffers, cached, exec,
file, free, inactive…
Example key: vm.memory.size[used]
Disk 사용량 Item key : vfs.fs.size[fs,<mode>]
Fs : directory path
Mode : one of total(default), free, used, pfree(free, percentage)
Pused(used, percentage)
Example key: vfs.fs.size[/,used]
프로세스 수 Item key : proc.num[<name>,<user>,<state>,<cmdline>]
name : process name (default is “all process”)
user : user name (default is “all users”)
stat : all (default), run, sleep, zomb
cmdline : filter by command line
Example keys:
proc.num[,mysql] - number of processes running under the
mysql user
proc.num[apache2,apache] –
number of apache2 processes running under the apache user
로그파일 특정 문자열 Item key : log[file,<regexp>,<encoding>,<maxlines>,<mode>]
file : full path and name of log file
regexp : 검출할 문자열의 정규 표현식
encoding : 로그파일 encoding (ex : UTF-8)
maxlines : Zabbix Server에 보낼 검출된 신규 log line 수
mode : all(default) or skip (old data 는 포함시키지 않는다.)
Example key :
log[/home/zabbix/logs/logfile,,,100]
16. Zabbix Install Guide
ooo 구축
000-01 V1.0 2013-04-16 권봉진
16 / 29
네트워크 Incomming traffic Item key : net.if.in[if,<mode>]
if : network interface name
mode : bytes(default), packets, errors, dropped
Example keys:
net.if.in[eth0,errors]
net.if.in[eth0]
네트워크 Outgoing traffic Item key : net.if.out[if,<mode>]
if : network interface name
mode : bytes(default), packets, errors, dropped
Example keys:
net.if.out[eth0,errors]
net.if.out[eth0]
http (https) response code Item key : web.test.rspcode[Scenario,Step]
Scenario : 정렬된 Step 의 집합명
Step : http request url 정의
(ex: http://www.company.com/test.do)
Zabbix는 이외에 더 많은 모니터링 항목을 제공한다. 자세한 정보는 아래url 에서 참고하세요.
https://www.zabbix.com/documentation/2.0/manual/config/items/itemtypes
4.2. 모니터링 방법
Zabbix 는 다양한 모니터링 방법(Item type)을 제공한다. Agent 기반 모니터링과 Agent 가 필요없는
Web 모니터링 및 SSH, Telnet Check 모니터링등을 제공한다.
아래는 Agent 기반 모니터링을 기준으로 설명한다. 대상 host 에 agent 설치 및 실행은 아래 작업
host 등록 이후에 진행해야 한다.
Zabbix 모니터링 절차는 아래와 같다.
Host 등록 : 모니터링 대상 host 정보 등록
Item 등록 : 모니터링 항목 등록
Trigger 등록 : 알람 발생 기준정보(threshold) 등록
Action 등록 : 알람 방법 및 대상 등록
17. Zabbix Install Guide
ooo 구축
000-01 V1.0 2013-04-16 권봉진
17 / 29
4.2.1. Host 등록 방법
Host 관리 메뉴 : Configuration > Hosts
아래 화면에서 우측 상단의 ‘Create host’ 버튼을 클릭한다.
아래는 host 등록화면이다. ‘Host name’, ‘Visible name’, ‘Groups’, ‘Agent interface’ 항목만 등록후
저장하면 된다.
‘Host name’ 은 agent 설정시 사용됨. ‘Groups’는 아래 에서 등록한 host group 을 등록한다.
18. Zabbix Install Guide
ooo 구축
000-01 V1.0 2013-04-16 권봉진
18 / 29
Host group 등록
Host group 관리메뉴 : Configuration > Host groups
아래 화면에서 우측 상단의 ‘Create host group’ 버튼을 클릭한다.
아래는 host group 등록화면이다. Group name 등록후 저장한다.
19. Zabbix Install Guide
ooo 구축
000-01 V1.0 2013-04-16 권봉진
19 / 29
4.2.2. Item 등록
Host 관리 메뉴 : Configuration > Hosts 의 Host 목록 화면에서 ‘Items’ 링크를 클릭한다.
아래는 item 관리 화면이다. 우측 상단의 ‘Create item’ 버튼을 클릭한다.
아래는 item 등록화면이다. 각 설정값 등록후 저장한다.
일반적으로 아래 값만 셋팅하면 된다.
20. Zabbix Install Guide
ooo 구축
000-01 V1.0 2013-04-16 권봉진
20 / 29
Parameter Description
Host Select the host or template.
Name Item 명
Type
Zabbix agent – for passive checks (Zabbix Server 의 요청에 의해 데이터 수집)
Zabbix agent(active) – for active checks (agent 가 주기적으로 데이터 전송)
자세한정보는 아래 url 참고.
https://www.zabbix.com/documentation/2.0/manual/config/items/itemtypes
Key
모니터링 항목
‘4.1 모니터링 항목’ 참고.
4.2.3. Trigger 등록
Host 관리 메뉴 : Configuration > Hosts 의 Host 목록 화면에서 ‘Triggers’ 링크를 클릭한다.
아래는 Trigger 관리 화면이다. 우측 상단의 ‘Create trigger’ 버튼을 클릭한다
아래는 Trigger 등록 화면이다. 설정 값 설정 후 저장한다.
21. Zabbix Install Guide
ooo 구축
000-01 V1.0 2013-04-16 권봉진
21 / 29
Parameter Description
Name Trigger name.
Expression Logical expression used for calculating the trigger state.
Multiple PROBLEM
events generation
Check : 매 알람상황(event)을 발생시킨다.
Uncheck : 최초 알람상황만 기록된다.
Comments Trigger comment
URL 알람 상황에 대한 링크정보를 제공하기 위해 설정한다.
Severity 알람의 수준을 명시한다.
Enabled Trigger 사용여부
4.2.4. Action 등록
Action 관리 메뉴 : Configuration > Actions.
아래는 Action 관리 화면이다. 우측 상단의 ‘Create Action’ 버튼을 클릭한다
22. Zabbix Install Guide
ooo 구축
000-01 V1.0 2013-04-16 권봉진
22 / 29
아래는 Action 등록 화면이다.
Action Tab 화면 : 알람 전송 메시지를 설정한다.
Parameter Description
Name Unique action name.
Default operation step
duration
(minimum 60 seconds)
기본 알람 전송 Term 시간 ( 300 이면 5분마다 알람을 전송한다)
Default subject 알람 제목.
Default message 알람 내용.
Recovery message Check : Trigger 가 정상상태일 때 메시지를 전송한다.
Recovery subject Recovery message subject.
Recovery message Recovery message.
Enabled 알람 전송 사용 여부.
23. Zabbix Install Guide
ooo 구축
000-01 V1.0 2013-04-16 권봉진
23 / 29
Conditions Tab 화면 : 어떤 Trigger 에 대한 알람을 전송할것인지 설정.
위는 host 가 maintenance 상태에 있지 않고, Trigger 상태가 ‘PROBLEM’ 이면서 Trigger 이름에 CPU
가 포함된 조건의 알람이 발생하면 메시지를 전송하겠다는 설정이다.
Operations Tab 화면
24. Zabbix Install Guide
ooo 구축
000-01 V1.0 2013-04-16 권봉진
24 / 29
Parameter Description
Step
알람 전송(Escalation) schedule:
알람 발생 From 회수부터 To (0=infinity, execution will not be limited) 회수까
지 Step duration (0=use default period)초 간격으로 전송한다.
Operation
type
Send message – 알람발생후 메시지 발송 수행.
Remote command – 알람발생후 특정 명령 수행.
Conditions
Condition for executing operation:
Not ack - only when the event is unacknowledged
Ack - only when the event is acknowledged
Operation type: send message
Send to user
groups
알람 메시지 수신 대상 그룹 설정.
Send to users 알람 메시지 수신자 설정.
Send only to 메일을 발송할건지, SMS로 발송할건지 등등 설정.
Default
message
Action tab 에서 설정한 default message 를 발송할건지 여부.
Subject Subject of the custom message.
Message The custom message.
Operation type: remote command
Target list Command 를 수행할 대상 호스트 설정.
Type Command type 설정.
Commands 수행할 명령 설정.
25. Zabbix Install Guide
ooo 구축
000-01 V1.0 2013-04-16 권봉진
25 / 29
5. 프로세스 모니터링 등록 및 확인 방법
5.1. 프로세스 모니터링 등록
Host 등록은 ‘4.2.1 host 등록 방법’ 참고
Item 등록
아래는 TestServer 에서 커맨드라인에 ‘server=jboss’ 가 포함된 프로세스 수를 모니터링하기 위한
Item 등록화면이다. 아래와 같이 등록하면, 60 초마다 해당 프로세스 개수가 기록된다.
Item key : proc.num[,,,server=jboss]
26. Zabbix Install Guide
ooo 구축
000-01 V1.0 2013-04-16 권봉진
26 / 29
Trigger 등록
아래는 이전에 등록한 item 을 이용해 60 초 동안 평균 프로세스 개수가 0 이면 알람(Trigger event)
가 발생하도록 설정한 화면이다.
위 화면의 Expression 이 중요한데, 직접 수기로 작성할수도 있고. 아래처럼 Add 버튼을 이용한
등록화면을 이용할수 있다.
Expression 에서 사용할수 있는 다양한 함수들이 제공된다. 다음 url 을 참고하세요.
https://www.zabbix.com/documentation/2.0/manual/config/triggers/expression
Acion 등록 ‘4.2.4 Acion 등록’ 참고.
27. Zabbix Install Guide
ooo 구축
000-01 V1.0 2013-04-16 권봉진
27 / 29
5.2. 프로세스 모니터링 확인방법
5.2.1. Monitoring > Latest data
아래 Monitoring > Latest data 화면을 통해서 서버별 설정된 item 데이터들이 잘 수집되는지 확인할
수 있다.
History를 이용해 그 동안 수집된 데이터 이력을 모두 확인 가능하다.
5.2.2. Monitoring > Triggers
최근 알람발생(Trigger Event)한 Trigger 목록을 확인할수 있다.
29. Zabbix Install Guide
ooo 구축
000-01 V1.0 2013-04-16 권봉진
29 / 29
6. 구성시 주의사항
6.1. Zabbix server 웹접속이 안될때
Zabbix 공식사이트에서 제공하는 설치 문서중 php 카피하는 아래 명령으로 하면 안됨.
mkdir <htdocs>/zabbix
cd frontends/php
cp -a . <htdocs>/zabbix
마지막 카피 명령을 ‘cp –R . <htdocs>/zabbix’ 로 작업해야 함.
6.2. Zabbix server deamon 이 start 되지 못하는경우
Zabbix_server.conf 파일의 ‘LogFile’, ‘PidFile’ 경로 설정에 권한을 확인하세요.
6.3. Zabbix server is not running 메시지 발생시
Zabbix Server Web UI 에서 ‘Zabbix server is running….’메시지가 나오는 경우 Zabbix Server 의 10051
포트 Listen 중인지 or 접근 가능한지 방화벽을 확인해야함.
그럼에도 메시지가 계속 보인다면.
아래 명령을 통해 웹서버가 network connection 을 할수 있는 권한을 부여해야 한다.
setsebool -P httpd_can_network_connect 1
관련 url : http://archives.ryandaigle.com/articles/2005/9/27/mythweb-howto-fix-fsockopen-function-
fsockopen-unable-to-connect-to-127-0-0-1-6543-permission-denied-error