icinga是nagios的升级版

icinga是nagios的升级版

http://blog.kukafei520.net/2011/445.html

icinga是nagios升级版,其开发人员全部为nagios原小组成员,其绝对免费,在nagios基础上进行二次开发,优化一些文件,其nagios原配置文件直接无缝对接,其安装配置方法如下

中文项目地址

http://icinga-cn.sourceforge.net/

安装基础依赖

yum install libdbi-devel libdbi libdbi-drivers libdbi-dbd-mysql

新增用户组及用户

groupadd www
useradd -g www www

wget http://jaist.dl.sourceforge.net/project/icinga-cn/icinga-cn/icinga-cn-1.5.1/icinga-cn-1.5.1.tar.bz2
tar jxvf icinga-cn-1.5.1.tar.bz2
cd icinga-cn-1.5.1
./configure –prefix=/usr/local/icinga –enable-idoutils –enable-embedded-perl –enable-ssl –with-icinga-user=www –with-icinga-group=www –with-command-user=www –with-command-group=www –with-web-user=www –with-web-group=www –with-httpd-conf=/etc/httpd/conf/conf.d
make all
make install
make install-init
make install-commandmode
make install-idoutils
make install-api
make install-config
make install-webconf

安装nagios插件

tar zxvf nagios-plugins-1.4.15.tar.gz
cd nagios-plugins-1.4.15/
./configure –prefix=/usr/local/icinga –with-cgiurl=/icinga/cgi-bin –with-htmurl=/www –with-nagios-user=www –with-nagios-group=www
make && make install

安装nrpe

tar zxvf icinga-nrpe-HEAD.tar.gz
cd icinga-nrpe
./configure –with-nrpe-user=www –with-nrpe-group=www –with-icinga-user=www –with-icinga-group=www
make
make install

拷贝nrpe文件:

cp src/nrpe /usr/local/icinga/bin
cp sample-config/nrpe.cfg /usr/local/icinga/etc

启动nrpe病检查:

/usr/local/icinga/bin/nrpe -n -c /usr/local/icinga/etc/nrpe.cfg -d
/usr/local/icinga/libexec/check_nrpe -H 127.0.0.1 -n

默认其icinga用户名
user:icingaadmin
pass:admin
如修改密码则使用
htpasswd -c /usr/local/icinga/etc/htpasswd.users icingaadmin

如修改用户名,则须修改cgi.cfg文件,将里面的icingaadm修改为你修改的用户,否则无权限查看主机服务

在其它客户机安装nrpe及nagios插件即可,nrpe配置文件允许监控主机进行数据采集

在客户机安装完成插件及nrpe后,可从服务端向客户端进行连接测试

usr/local/icinga/libexec/check_nrpe -H 192.168.1.128 -c check_load
OK – load average: 0.16, 0.14, 0.06|load1=0.160;1.500;3.000;0; load5=0.140;1.100;2.200;0; load15=0.060;0.900;1.900;0;

如测试硬盘空间check_disk或swap交换分区check_swap等,最后界面如下

你可能感兴趣的:(nagios)