Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 232474 - net-analyzer/pnp4nagios web installation directory
Summary: net-analyzer/pnp4nagios web installation directory
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Caleb Tennis (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-20 13:47 UTC by Clemente Aguiar
Modified: 2008-11-29 17:09 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Clemente Aguiar 2008-07-20 13:47:13 UTC
Installed latest version of nagios (net-analyzer/nagios-3.0.3 and of pnp4 (net-analyzer/pnp4nagios-0.4.1).

Could not get the pnp4 initial page (.../nagios/pnp/index.php) to show as per the documentation instructions (http://www.pnp4nagios.org/pnp/verify).

The problem is that the Nagios package installs its "web frontend" in 
/usr/share/nagios/htdocs/
and the pnp4nagios package installs its "web frontend" in
/usr/share/pnp/.

As a workaround I created a symlink such as:
ln -s /usr/share/nagios/htdocs/pnp /usr/share/pnp/

But for the initial page (.../nagios/pnp/index.php) to work "out of the box" the pnp4nagios package should install the "web frontend" in
/usr/share/nagios/htdocs/pnp/.

Reproducible: Always
Comment 1 Tobias Scherbaum (RETIRED) gentoo-dev 2008-07-20 16:15:41 UTC
Just configure an alias for pnp, for example in /etc/apache2/modules.d/99_nagios3.conf:

        Alias /nagios/pnp       /usr/share/pnp/
        <Directory "/usr/share/pnp">
                AllowOverride AuthConfig
                Order allow,deny
                Allow from all
        </Directory>

Note that this has to be configured *before* the "Alias /nagios".

Maybe this hint could be added to postinst, but it would make sense to keep this installed in different directories, as for example one might want to setup a dedicated pnp box.
Comment 2 Clemente Aguiar 2008-07-21 11:35:02 UTC
It is fine like you suggested. Tried it and it works.

You should definitely add the hint to postinst.
Comment 3 Tobias Scherbaum (RETIRED) gentoo-dev 2008-11-29 17:09:34 UTC
Fixed in 0.4.12.