点击这里获取免费大流量卡

1.安装数据库mysql
apt-get install mysql-server
apt-get install libmysqlclient-dev
2.创建ndoutils使用的用户和库
CREATE DATABASE nagios DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
GRANT ALL PRIVILEGES ON nagios.* TO 'nagios'@'localhost' IDENTIFIED BY 'ivgivgivg'
3.安装ndoutils
tar -zxvf ndoutils-1.5.2.tar.gz
cd ndoutils-1.5.2
./configure
make
make install
cp config/ndomod.cfg-sample /usr/local/nagios/etc/ndomod.cfg
cp config/ndo2db.cfg-sample /usr/local/nagios/etc/ndo2db.cfg
cd db;./installdb -u nagios -p ivgivgivg -h 127.0.0.1 -d nagios
4.配置
vi /usr/local/nagios/etc/nagios.cfg
event_broker_options=-1
broker_module=/usr/local/nagios/bin/ndomod.o config_file=/usr/local/nagios/etc/ndomod.cfg
chmod 774 /usr/local/nagios/bin/ndo*
chown nagios:nagios /usr/local/nagios/bin/*
chown nagios:nagios /usr/local/nagios/etc/ndo*
5.启动
/usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
启动脚本(附件):
## Change permission's file
chmod 755 /etc/init.d/ndo2db
## Make it run at start up
update-rc.d ndo2db defaults
## Restart Nagios
/etc/init.d/nagios restart
http://terraltech.com/installing-centreon/

点击这里获取免费大流量卡

如果您喜欢本站,点击这儿可以捐赠本站
这些信息可能会帮助到你: 联系作者 | 报毒说明
修改版本软件,加群提示等均为修改者自留,非本站信息,注意鉴别