您好,登錄后才能下訂單哦!
安裝nconf
安裝前創(chuàng)建nconf數(shù)據(jù)庫(kù)并建立用戶(hù)及分配權(quán)限
mysql -u root -p create database nconf; grant all privileges on nconf.* to nconf@localhost identified by 'nconf'; flush privileges;
安裝nconf
[root@SZNAGIOS01 mnt]# tar zxvf nconf-1.3.0-0..tgz [root@SZNAGIOS01 mnt]# mv nconf /var/www/html/ [root@SZNAGIOS01 mnt]# cd /var/www/html/nconf/ [root@SZNAGIOS01 nconf]# chown -R apache:apache config/ temp/ static_cfg/ output/
打開(kāi) http://192.168.7.164/nconf
設(shè)置連接數(shù)據(jù)庫(kù)的參數(shù):
配置nconft和nagiso路徑(默認(rèn)):
設(shè)置nconf管理密碼:
修改配置文件:
[root@localhost nconf]# rm -rf INSTALL INSTALL.php UPDATE UPDATE.php [root@localhost nconf]# ln -s /usr/local/nagios/bin/nagios bin/nagios [root@localhost nconf]# chmod +x bin/generate_config.pl [root@localhost nconf]# chown -R apache:apache temp [root@localhost nconf]# chown -R apache:apache bin [root@localhost nconf]# chmod +x bin/nagios [root@localhost nconf]# chmod +x ADD-ONS/deploy_local.sh
登陸測(cè)試:
導(dǎo)入配置文件:
[root@localhost nconf]# ADD-ONS/deploy_local.sh
Running configuration check...done.
Reloading nagios configuration...done
之后會(huì)在/usr/local/nagios/etc/目錄中生成以下目錄Default_collector與global
修改nagios配置文件:
將原來(lái)的配置文件(cfg_file=***)注釋加上最后兩行
[root@localhost nconf]# vim /usr/local/nagios/etc/nagios.cfg #cfg_file=/usr/local/nagios/etc/objects/commands.cfg #cfg_file=/usr/local/nagios/etc/objects/contacts.cfg #cfg_file=/usr/local/nagios/etc/objects/timeperiods.cfg #cfg_file=/usr/local/nagios/etc/objects/templates.cfg #cfg_file=/usr/local/nagios/etc/objects/localhost.cfg cfg_dir=/usr/local/nagios/etc/Default_collector cfg_dir=/usr/local/nagios/etc/global
重啟nagios:
service nagios restart
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀(guān)點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。