2013年3月28日 星期四

[網路軟體] nagiosQL安裝

解壓縮nagiosql
[root@server ~]# tar zxvf nagiosql_311.tar.gz -C /usr/local/nagios/
[root@server ~]# cd /usr/local/nagios/nagiosql/


建立配置文件目錄
[root@server nagiosql]# mkdir -p etc/{hosts,services,backup/{hosts,services},import}

修改權限
 [root@server ~]# chown -R nagios:nagios .
 [root@server ~]# chown -R 755 .

修改config目錄的訪問權限,讓apache對其具有寫的權限
 [root@server ~]# chown -R 777 /usr/local/nagios/nagiosql/config/

修改相關目錄的權限
[root@server nagiosql]# chown nagios:nagios /usr/local/nagios/etc
[root@server nagiosql]# chown nagios:nagios /usr/local/nagios/etc/{nagios.cfg,cgi.cfg}
[root@server nagiosql]# chown nagios:nagios /usr/local/nagios/etc/*
[root@server nagiosql]# chmod 664 /usr/local/nagios/etc/{nagios.cfg,cgi.cfg}
[root@server nagiosql]# chmod 775 /usr/local/nagios/etc

設定nagios二進制文件的權限,以便通過Web程序執行
[root@server nagiosql]# chown nagios:nagios /usr/local/nagios/bin/nagios
[root@server nagiosql]# chmod 750 /usr/local/nagios/bin/nagios
[root@server nagiosql]# chown -R nagios.nagios /usr/local/nagios/var/spool/
[root@server nagiosql]# chown nagios:nagios /usr/local/nagios/var/rw/nagios.cmd
[root@server nagiosql]# chmod 660 /usr/local/nagios/var/rw/nagios.cmd

於install下建立nagiosql的ENABLE_INSTALL安裝文件

[root@server nagiosql]# touch /usr/local/nagios/nagiosql/install/ENABLE_INSTALLER



修改apache的httpd.conf,為apache添加nagiosql虛擬目錄

[root@server nagiosql]#vi /etc/httpd/conf/httpd.conf

Alias /nagiosql "/usr/local/nagios/nagiosql"

<Directory "/usr/local/nagios/nagiosql">

# SSLRequireSSL
Options None
AllowOverride None
Order allow,deny
Allow from all
</Directory>
重新啟動apachemysql
[root@server nagiosql]# service httpd reload (restart)
[root@server nagiosql]# service mysqld start
Starting MySQL SUCCESS!

用IE開啟
http://<IP>/nagiosql/install/index.php

下一步

下一步

修改安裝目錄權限:
[root@server nagiosql]# chmod 000 /usr/local/nagios/nagiosql/install

完成設定:按Finish

進行相關配置:連線,並登入 http://192.168.47.103/nagiosql/index.php

修改對應路徑:



相關文件:
1. NagiosQL 3.2 Installation
2. 實戰CentOS 6.0+Nagios中文版+PNP+Nagios Web管理工具nagiosQL中文版
3. Nagios(八)―― Nagios Web 端管理工具Nagiosql



沒有留言:

張貼留言