2008-08-17 08:49:35 +02:00
|
|
|
========================================================================
|
|
|
|
|
|
|
|
You just installed/upgraded PNP graphing tool for Nagios.
|
|
|
|
|
2010-11-23 23:10:20 +01:00
|
|
|
You will need to read the documentation at
|
|
|
|
http://docs.pnp4nagios.org/pnp-0.6/doc_complete
|
|
|
|
both for new installations and upgrades from 0.4, since you will
|
|
|
|
need to tweak your Nagios and PNP configuration according to the
|
|
|
|
0.6.x recipes.
|
2008-08-17 08:49:35 +02:00
|
|
|
|
|
|
|
We recommend to start with the following restrictive Apache
|
|
|
|
configuration for the PNP area:
|
2010-11-23 23:10:20 +01:00
|
|
|
{{{
|
|
|
|
# PNP graphing tool
|
|
|
|
Alias /nagios/pnp %%WWWDIR%%
|
2008-08-17 08:49:35 +02:00
|
|
|
<Directory "%%WWWDIR%%/">
|
|
|
|
Order deny,allow
|
|
|
|
Allow from all
|
|
|
|
Deny from all
|
2010-11-23 23:10:20 +01:00
|
|
|
|
2008-08-17 08:49:35 +02:00
|
|
|
AddHandler application/x-httpd-php .php
|
2010-11-23 23:10:20 +01:00
|
|
|
DirectoryIndex index.php
|
2008-08-17 08:49:35 +02:00
|
|
|
|
2010-11-23 23:10:20 +01:00
|
|
|
RewriteEngine on
|
|
|
|
RewriteBase /nagios/pnp/
|
|
|
|
# Protect application and system files from being viewed
|
|
|
|
RewriteRule ^(application|modules|system) - [F,L]
|
|
|
|
# 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 [PT,L]
|
2008-08-17 08:49:35 +02:00
|
|
|
</Directory>
|
2010-11-23 23:10:20 +01:00
|
|
|
}}}
|
2008-08-17 08:49:35 +02:00
|
|
|
|
2010-11-23 23:10:20 +01:00
|
|
|
Create %%WWWDIR%%/install.ignore to disable sanity check
|
|
|
|
and start using PNP.
|
2008-08-17 08:49:35 +02:00
|
|
|
|
2008-12-25 01:32:12 +01:00
|
|
|
Please, note that user who runs Apache processes should be able to
|
|
|
|
read PNP RRD spool files from
|
|
|
|
%%PNP_RRDS%%
|
|
|
|
so you should tune path permissions accordingly. Probably one could
|
|
|
|
start from adding Apache user to the group '%%NAGIOSGROUP%%'.
|
2008-08-17 08:49:35 +02:00
|
|
|
|
|
|
|
Remember to restart NPCD service after upgrade if you're using
|
|
|
|
'bulk' mode with NPCD.
|
|
|
|
|
|
|
|
========================================================================
|