1,安装如下软件包

[email protected]~#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

[[email protected] ~]# /etc/init.d/httpd start
[[email protected] ~]# /etc/init.d/mysqld start

 

4,解压文件到apache目录

[[email protected] ~]# tar -zxf nconf-1.2.6-0.tgz -C /var/www/html/

 

5,创建nconf数据库及用户


  [email protected] /var/www/html/nconf#mysql –uroot –p


  1. mysql> create database nconf; 
  2. mysql> grant all privileges on nconf.* to [email protected] identified by '1q2w3e';  
  3. mysql> flush privileges;                                                        

 


  1. [[email protected] ~]# cd /var/www/html/nconf/ 
  2.  
  3. [[email protected] nconf]# mysql -unconf -p nconf  < INSTALL/create_database.sql  
  4. Enter password

 

6,修改相关目录权限

 


  1. [[email protected] nconf]# chown -R apache.apache config/ temp/ static_cfg/ output

 

7.如果selinux 打开了,需要设置下安全上下文:

 


  1. chcon -R -t httpd_sys_content_t /var/www/html/nconf/ 
  2.  
  3. chcon -t httpd_sys_script_exec_t /var/www/html/nconf/bin/nagios 

 

7,浏览器输入ip/conf进行安装,安装画面如下

 

安装nagios 图形添加监控主机和服务的软件nconf 安装nagios 图形添加监控主机和服务的软件nconf 安装nagios 图形添加监控主机和服务的软件nconf 安装nagios 图形添加监控主机和服务的软件nconf 安装nagios 图形添加监控主机和服务的软件nconf 安装nagios 图形添加监控主机和服务的软件nconf 安装nagios 图形添加监控主机和服务的软件nconf

安装nagios 图形添加监控主机和服务的软件nconf

 

[[email protected] nconf]# rm -rf INSTALL* UPDATE*

[[email protected] nconf]# ln -s /usr/bin/nagios bin/nagios                       

[[email protected] nconf]# chown -R apache.apache  bin

安装nagios 图形添加监控主机和服务的软件nconf

安装nagios 图形添加监控主机和服务的软件nconf

 

 

安装nagios 图形添加监控主机和服务的软件nconf