Translations of this page:

Installer

PCRE UTF8 Support

PCRE PHP Module was not compiled with UTF-8 support.

http://php.net/pcre

PCRE Unicode Support

PCRE has not been compiled with Unicode property support.

http://www.php.net/pcre

Solution for Red Hat Enterprise Linux Server release 5.4 (Tikanga)

The simplest solution is to rebuild the RPM

pcretest -C
PCRE version 6.6 06-Feb-2006
Compiled with
  UTF-8 support
  No Unicode properties support
  Newline character is LF
  Internal link size = 2
  POSIX malloc threshold = 10
  Default match limit = 10000000
  Default recursion depth limit = 10000000
  Match recursion uses stack

A source RPM should be available at ftp://ftp.redhat.com/pub/redhat/linux/enterprise/5Server/en/os/SRPMS/

rpm -ivh pcre-6.6-2.el5_1.7.src.rpm

Just change:

%configure --enable-utf8

%configure --enable-utf8 --enable-unicode-properties

/usr/src/redhat/SPECS/pcre.spec

Now rebuild, install and restart Apache

rpmbuild -ba /usr/src/redhat/SPECS/pcre.spec
rpm -Uvh /usr/src/redhat/RPMS/i386/pcre-6.6-2.7.XX.rpm
PCRE version 6.6 06-Feb-2006
Compiled with
  UTF-8 support
  Unicode properties support
  Newline character is LF
  Internal link size = 2
  POSIX malloc threshold = 10
  Default match limit = 10000000
  Default recursion depth limit = 10000000
  Match recursion uses stack

Reflection Class

The class reflection is not loaded or is not compiled.

http://www.php.net/reflection

PHP module filter

The PHP module filter is not loaded or not compiled.

http://www.php.net/filter

PHP Modul iconv

The PHP modul iconv is not loaded.

http://php.net/iconv

Function mbstring overload

The function overloads the original PHP string functions.

http://php.net/mbstring

magic_quotes_gpc

http://php.net/manual/en/security.magicquotes.php

magic_quotes_gpc

This feature has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 6.0.0. Relying on this feature is highly discouraged

Locate your php.ini ( Debain/Ubuntu/SuSE: /etc/php5/apache2/php.ini, Fedora/CentOS: /etc/php.ini, FreeBSD: /usr/local/etc/php.ini ) and set

 magic_quotes_gpc = Off
 

Restart your Apache Webserver to activate the new settings.

RRDtool Binary is not executable by PHP

If you got the error ”RRDtool Binary /usr/local/rrdtool-1.4.3/bin/rrdtool is not executable by PHP” on the first run of the PNP4Nagios webinterface or you see errors instead of graphs, deactivate ”safe_mode” (safe_mode = off) in your php.ini and restart Apache2

Runtime Errors

rrdtool-not-found

To create the graphs PNP requires the complete path to the RRDtool binary.

The path is defined in config.php.

#
# Path to rrdtool
#
$conf['rrdtool'] = "/usr/bin/rrdtool";

config-not-found

PNP requires a config file for the settings of the web frontend.

The path is shown in the error message.

The path has been set during installation via ./configure and the passed parameters.

The file has to be readable by the Apache web-server.

perfdata-dir-empty

The specified directory is empty so PNP has no data to create any graphs.

Possible causes:

  • process_perfdata.pl was never called to process data.
    Solution: Depending on the mode used please checks the settings. See verify and verify_pnp_config for details.
  • The checks don't deliver (valid) performance data. Not all plugin return performance data (as an example: check_procs).
    Solution: Sometimes you have to specify additional options so that performance data is produced. In some cases a wrapper script might help.

host-perfdata-dir-empty

PNP was called using a host in the URL.

Example:

 http://<nagios-server>/pnp4nagios/graph?host=<this-host>

The resulting path to the perfdata directory could be found but it was not possible to retrieve data.

The path is shown in the error message.

The cause for this error cannot be determined without further ado.

Normally PNP will not create a directory without placing data. Maybe the directory was created manually with wrong permissions so PNP has no write permissions.

perfdata-dir-for-host

PNP was called with a host in the URL.

Example:

 http://<nagios-server>/pnp4nagios/graph?host=<this-host>

The resulting path to the perfdata directory could not be found.

The path is shown in the error message.

var/perfdata/<this-host> will be created by process_perfdata.pl when it processes performance data for this host.

If this directory does not exist there are several possible causes:

  • Passing an incorrect host name in the URL
  • The host has no valid performance data
  • None of the services has valid performance data

xml-not-found

PNP was called with a host and a service in the URL

Example:

 http://<nagios-server>/pnp4nagios/graph?host=<this-host>&srv=<this-service>

The name of the XML file contains host and srv. The path is shown in the error message.

This xml file cannot be found be the web server or is not readable.

get-first-service

PNP was called with a host in the URL but without a service.

Exmaple:

 http://<nagios-server>/pnp4nagios/graph?host=<this-host>

PNP tries to get the first service in the specified perfdata directory.

Maybe the directory var/perfdata/<this-host>/ is empty.

get-first-host

PNP was called without specifying a host. While searching the directory var/perfdata no hosts were found.

Please make sure that you enabled performance data processing and that your hosts/services deliver valid performance data. See system requirements, verify and verify script for details.

xml-structure-mismatch

PNP checks the format of the xml files created by process_perfdata.pl using a version number.

This way it is ensured that the versions of the web frontend and process_perfdata.pl are compatible. The version number will only be increased due to basic changes.

These errors are temporary after a change of the XML format. The files are recreated each time by process_perfdata.pl so the errors should disappear after a while (depending on the value of check_interval).

If this error persists it should be checked if the version of process_perfdata.pl matches the version of the web frontend.

save-rrd-image

During creation of a PDF document PNP temporarily saves the graph as an image in the file system. Only this way the graph can be included into the PDF document.

The location is defined in etc/config.php.

#
# Directory for Temporary Files used for PDF creation 
#
$conf['temp'] = "/var/tmp";

This message indicates that the web server user is not able to write into this directory.

xml-structure-without-version-tag

Starting with PNP 0.6 a version tag was introduced. This message indicated that this tag is missing. After all the xml file seems to be created by a PNP version < 0.6.

If this error occurs directly after an update it should be sufficient to wait for the next Nagios check after which the xml file will be newly created.

If the error persists the cause may be an old version of process_perfdata.pl.

Snippet of the XML structure:

<NAGIOS>
...
  <XML>
   <VERSION>4</VERSION>
  </XML>
</NAGIOS>

template-without-opt

The template used for this host/service does not return the array $opt[] to PNP.

The path to the template is shown in the error message.

template-without-def

The template used for this host/service does not return the array $def[] to PNP.

The path to the template is shown in the error message.

no-data-for-page

No data could be detected for the page config used. The specified host name / service description has to match the file name in the perfdata directory, not the settings in the host/service definition!

page-not-readable

Page config is not readable or does not exist.

auth-pages

You are not authorized to view “pages”

page-config-dir

No page config file found

xport-host-service

Xport controller needs “host” and “srv” URL Parameters.

mod_rewrite

The Apache module mod_rewrite is not enabled.

The Debian way

 a2enmod rewrite
 /etc/init.d/apache2 restart

The Suse way

 # open the following file:
 vi /etc/sysconfig/apache2
 # and add the entry:
 APACHE_MODULES="[...] rewrite [...]"
 # restart your apache
 /etc/init.d/apache2 restart

tpl-no-services-found

No services could be found by this REGEX

tpl-no-hosts-found

No hosts could be found with this REGEX

no-templates-found

PNP was not able to find a template for this service.

faq.txt · Last modified: 2012/04/02 15:44 by Joerg Linge
www.chimeric.de Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0