開源Linux監控系統:Icinga

Blog: http://www.simlinux.com

其實Icinga是Nagios監控的一個分支,有兩個分支版本Icinga1和Icinga2;Icinga除了完全兼容Nagios的插件和擴展甚至配置文件,在web接口和報告上有很大的改進,並且簡化了插件的開發;Icinga1和Nagios的基礎監控類似,增加了一些新的特性和修復了Nagios的一些bug
詳細可參考:
https://www.icinga.org/icinga/icinga-1/features/
https://www.icinga.org/icinga/icinga-2/architecture/
下面基於Centos7來安裝Icinga1:


一、安裝LAMP環境
1.安裝apache和php 
yum -y install httpd php php-pear php-xmlrpc php-xsl php-soap php-mysql php-pdo php-gd php-mbstring
防火牆放行httpd服務
firewall-cmd —add-service=http (臨時放行)
firewall-cmd —permanent —add-service=http(永久放行,寫入配置文件,系統重啓後依然有效)
systemctl start http.service

vim /var/www/html/info.php
<?php
    phpinfo();
?>
<br>
測試php解析是否正常
vim /etc/php.ini
date.timezone= PRC

2.安裝Mariadb

yum -y install mariadb-server mariadb
mysql_secure_installation
systemctl start mariadb
systemctl status mariadb

二、安裝icinga監控工具

wget http://packages.icinga.org/epel/ICINGA-release.repo -O /etc/yum.repod/icinga.repo
rpm --import http://packages.icinga.org/icinga.key
yum  -y install icinga icinga-doc icinga-gui
htpasswd -cm /etc/icinga/passwd  geekwolf
systemctl start icinga
systemctl start httpd

三、安裝Nagios插件

   rpm -Uvh http://ftp.ines.lug.ro/fedora/epel/beta/7/x86_64/epel-release-7-0.2.noarch.rpm
   yum -y install nagios-plugins nagios-plugins-all
   配置文件路徑/etc/icinga,配置方式和nagios一樣


   vim  /etc/icinga/cgi.cfg
   authorized_for_system_information=geekwolf
   authorized_for_configuration_information=geekwolf
   authorized_for_full_command_resolution=geekwolf
   authorized_for_system_commands=geekwolf
   authorized_for_all_services=geekwolf
   authorized_for_all_hosts=geekwolf
   authorized_for_all_service_commands=geekwolf
   authorized_for_all_host_commands=geekwolf

訪問Web:http://192.168.117.129/icinga 

相關資源

Icinga官方文檔 :http://docs.icinga.org
Icinga EPEL :http://packages.icinga.org/epel
Icinga安裝包及vagrant box下載 :https://www.icinga.org/download
Centos7網絡配置和服務管理參考: http://simlinux.com/blog/2014/08/12/centos7wang-luo-pei-zhi-he-fu-wu-guan-li/


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章