icinga的idoutils插件


icinga的idoutils插件:

$ sudo apt-get install mysql-server libdbi-dev libdbd-mysql  (root密码设置123456,可改)

cd到icinga的源目录

$ sudo make clean

$ ./configure --prefix=/usr/local/icinga --enable-idoutils

$ sudo make all

$ sudo make install

$ sudo make install-init

$ sudo make install-commandmode

$ sudo make install-idoutils

$ sudo make install-config

$ sudo make install-webconf

$ sudo make install-webconf-auth


$ sudo htpasswd /usr/local/icinga/etc/htpasswd.users icingaadmin (即重新设置下密码)

$ sudo service apache2 restart


$ mysql -u root -p123456

> create database icinga default character set utf8;

> grant all on icinga.* to idouser@localhost identified by '123456';

> quit

$ sudo mysql -u idouser -p icinga < module/idoutils/db/mysql/mysql.sql

$ sudo vi /usr/local/icinga/etc/ido2db.cfg


db_user=idouser
db_pass=123456

:wq

$ sudo service ido2db start

$ sudo service icinga restart

$ sudo cat /usr/local/icinga/var/icinga.log  (显示idomod:Successfully connected to data sink即说明没问题)



本文出自 “linux” 博客,谢绝转载!

你可能感兴趣的:(插件,idoutils)