zy407321952 发表于 2013-09-23 12:14

pnp4nagios求助

本帖最后由 zy407321952 于 2013-09-25 09:07 编辑

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,可以还是没办法是用小太阳查看

zy407321952 发表于 2013-09-23 12:39

找到url位置了
Alias /pnp4nagios "/usr/local/pnp4nagios/share"

<Directory "/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
        <IfModule mod_rewrite.c>
                # 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"
        </IfModule>
</Directory>

可是改完好像url跳转出了问题,再看看文档!

zy407321952 发表于 2013-09-23 15:10

终于解决了跳转问题,可是跳转又报这个错误:Disallowed key characters in global data.
跳转install.php没问题,这什么错误,查了所有日志也没发现问题所在。

zy407321952 发表于 2013-09-25 09:06

终于找到问题所在了,无语。。。
伤不起,关键在php。
页: [1]
查看完整版本: pnp4nagios求助