Menu
- PNP4Nagios 0.6.x
- PNP4Nagios 0.4.x
PCRE PHP Module was not compiled with UTF-8 support.
PCRE has not been compiled with Unicode property support.
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
The class reflection
is not loaded or is not compiled.
The PHP module filter
is not loaded or not compiled.
The PHP modul iconv
is not loaded.
The function overloads the original PHP string functions.
http://php.net/manual/en/security.magicquotes.php
magic_quotes_gpc
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.
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
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";
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.
The specified directory is empty so PNP has no data to create any graphs.
Possible causes:
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.
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:
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.
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.
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.
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.
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.
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>
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.
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 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 config is not readable or does not exist.
You are not authorized to view “pages”
No page config file found
Xport controller needs “host” and “srv” URL Parameters.
The Apache module mod_rewrite is not enabled.
a2enmod rewrite /etc/init.d/apache2 restart
# open the following file: vi /etc/sysconfig/apache2 # and add the entry: APACHE_MODULES="[...] rewrite [...]" # restart your apache /etc/init.d/apache2 restart
No services could be found by this REGEX
No hosts could be found with this REGEX
PNP was not able to find a template for this service.