Nconf安装(一)
配置Nagios及Web图形方式添加监控主机和服务
1,安装如下软件包
root@server~#yum install php-mysql mysql perl mysql-server perl-DBI perl-DBD-MySQL httpd
2,检查/etc/php.ini下面三项的设置状态是否如下:
short_open_tag = On
register_globals = Off
magic_quotes_gpc = Off
3,启动apache,mysql
[root@localhost ~]# /etc/init.d/httpd start
[root@localhost ~]# /etc/init.d/mysqld start
4,解压文件到apache目录
[root@localhost ~]# tar -zxf nconf-1.2.6-0.tgz -C /var/www/html/
5,创建nconf数据库及用户
[root@localhost /var/www/html/nconf#mysql -uroot -p
mysql> create database nconf;
mysql> grant all privileges on nconf.* to nconf@localhost identified by '1q2w3e'; mysql> flush privileges;
[root@localhost ~]# cd /var/www/html/nconf/
[root@localhost nconf]# mysql -unconf -p nconf < INSTALL/create_database.sql Enter password:
6,修改相关目录权限
[root@localhost nconf]# chown -R apache.apache config/ temp/ static_cfg/ output/
7.如果selinux 打开了,需要设置下安全上下文:
chcon -R -t httpd_sys_content_t /var/www/html/nconf/
chcon -t httpd_sys_script_exec_t /var/www/html/nconf/bin/nagios
7,浏览器输入ip/conf进行安装
可以参考这个网址:http://www.yunweiw.com/?action-viewnews-itemid-89327