您的位置:首页 > 运维架构 > Linux

开源Linux监控系统:Icinga

2014-08-15 18:37 441 查看
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/
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  nagios icinga icinga2