pnp4nagios求助
nagios裡面的templates.cfg
action_url /pnp4nagios/index.php/graph?host=$HOSTNAME$&srv=_HOST_' class='tips' rel='/pnp4nagios/index.php/popup?host=$HOSTNAME$&srv=_HOST_
這個action_url路徑是怎麼來的,是要做軟鏈接嗎? 是做/usr/local/pnp4nagios/share/嗎?
數據已經產生了,可是沒法看,鬱悶啊!
另一種鏈接是/pnp4nagios/index.php?host=$HOSTNAME$&srv=_HOST_
這種鏈接可以正確打開install.php,可以還是沒辦法是用小太陽查看
《解決方案》
找到url位置了
Alias /pnp4nagios "/usr/local/pnp4nagios/share"
AllowOverride None
Order allow,deny
Allow from all
#
# Use the same value as defined in nagios.conf
#
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
# Turn on URL rewriting
RewriteEngine On
Options symLinksIfOwnerMatch
# Installation directory
RewriteBase /pnp4nagios/
# Protect application and system files from being viewed
RewriteRule "^(?:application|modules|system)/" -
# Allow any files or directories that exist to be displayed directly
RewriteCond "%{REQUEST_FILENAME}" !-f
RewriteCond "%{REQUEST_FILENAME}" !-d
# Rewrite all other URLs to index.php/URL
RewriteRule "^.*$" "index.php/$0"
可是改完好像url跳轉出了問題,再看看文檔!
《解決方案》
終於解決了跳轉問題,可是跳轉又報這個錯誤:Disallowed key characters in global data.
跳轉install.php沒問題,這什麼錯誤,查了所有日誌也沒發現問題所在。
《解決方案》
終於找到問題所在了,無語。。。
傷不起,關鍵在php。