Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

PNP4Nagios

Current Version
0.6.21
Last Release Date
2012-03-25
Compatible With
  • Nagios 2.x
  • Nagios 3.x
Hits
563912
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
PNP is an addon to Nagios which analyzes performance data provided by plugins and stores them automatically into RRD-databases (Round Robin Databases, see RRD Tool).
Reviews (7)
To make it work on Ubuntu 20.04 with PHP 7.4:

Edit /usr/local/pnp4nagios/lib/kohana/system/libraries/Input.php line 57 and replace
if (get_magic_quotes_runtime())
{
set_magic_quotes_runtime(0);
Kohana::log('debug', 'Disable magic_quotes_runtime! It is evil and deprecated: http://php.net/magic_quotes');
}

magic_quotes_gpc is enabled
if (get_magic_quotes_gpc())
{
$this->magic_quotes_gpc = TRUE;
Kohana::log('debug', 'Disable magic_quotes_gpc! It is evil and deprecated: http://php.net/magic_quotes');
}

with
if (version_compare(PHP_VERSION, '5.3.0', 'magic_quotes_gpc = TRUE;
Kohana::log('debug', 'Disable magic_quotes_gpc! It is evil and deprecated: http://php.net/magic_quotes');
}
}

(Credits to https://betanzos.org/gmo/2020/01/13/pnp4nagios-function-get_magic_quotes_runtime-is-deprecated/ )

and edit /usr/local/pnp4nagios/share/application/models/data.php line 979 and replace:
if(sizeof($pages) > 0 ){
with:
if (is_array($pages)) {
byfcw, September 18, 2020
1 of 1 people found this review helpful
See: support.nagios.com/forum/viewtopic.php?f=7&t=58008

These changes fixed the issues for me.
#
# diff /usr/local/pnp4nagios/share/application/models/data.php-orig /usr/local/pnp4nagios/share/application/models/data.php
979c979
0 ){
---
> if(is_array($pages) && sizeof($pages) > 0){
#
#
# diff /usr/local/pnp4nagios/share/application/lib/json.php-orig /usr/local/pnp4nagios/share/application/lib/json.php
133c133
function Services_JSON_construct($use = 0)
783c783
function Services_JSON_Error_construct($message = 'unknown error', $code = null,
797c797
function Services_JSON_Error_construct($message = 'unknown error', $code = null,
#
#
# diff /etc/php.ini-orig /etc/php.ini
1670a1671,1673
> ; Added for pnp4nagios
> magic_quotes_gpc = Off
>
#
#

Thanks for a great plugin :)
This is a Nagios must have if you want great performance graphs.

If I could suggest one thing, it would be that it somehow graph the performance of your Nagios core daemon without any customization.

The classic MRTG graphs to graph that type of information are not user friendly like PNP4Nagios is.
I added PNP4Nagios to my environment over the last few days. Other than making some simple configuration changes to account for the RPM package-based installation, it installed easily and works very well. It even includes a mobile web interface!
bysircharlo, November 25, 2011
Amazing plugin, compiled from source on Ubuntu 11.10 with Nagios 3.1.1.

Works great, takes a lot of tweaking and configuring but is amazing once you're done.
bykosarajudeepak, November 5, 2010
1 of 1 people found this review helpful
Very Impressive at first I decided to go with nagiosgrapher but exporting reports to PDF really made my day to thing pnp4nagios is my choice.
byahuffman, August 26, 2009
4 of 4 people found this review helpful
This adds some nice graphs to your services and hosts. The popup config is great for displaying performance data.