Blog:
其实Icinga是Nagios监控的一个分支,有两个分支版本Icinga1和Icinga2;Icinga除了完全兼容Nagios的插件和扩展甚至配置文件,在web接口和报告上有很大的改进,并且简化了插件的开发;Icinga1和Nagios的基础监控类似,增加了一些新的特性和修复了Nagios的一些bug
详细可参考:下面基于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.servicevim /var/www/html/info.php 测试php解析是否正常vim /etc/php.inidate.timezone= PRC
2.安装Mariadb
yum -y install mariadb-server mariadbmysql_secure_installationsystemctl start mariadbsystemctl status mariadb
二、安装icinga监控工具
wget http://packages.icinga.org/epel/ICINGA-release.repo -O /etc/yum.repod/icinga.reporpm --import http://packages.icinga.org/icinga.keyyum -y install icinga icinga-doc icinga-guihtpasswd -cm /etc/icinga/passwd geekwolfsystemctl start icingasystemctl 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:
相关资源:
Icinga官方文档 :
Icinga EPEL :Icinga安装包及vagrant box下载 :
Centos7网络配置和服务管理参考: