Graphing and Trending

PNP4Nagios

Description:

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).

Current Version

0.6.21

Last Release Date

2012-03-25

Compatible With

  • Nagios 2.x
  • Nagios 3.x

Owner


Project Photos
Project Notes
Reviews (7) Add a Review
Fix for Ubuntu 20.04 with PHP 7.4
by vhribeiro, July 31, 2021
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)) {
Helpful? Yes  No 
Fixing PHP errors on CentOS 8.2 with PHP 7.2.24
by fcw, September 30, 2020
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 :)
1 of 1 found this review helpful.
Helpful? Yes 1 No 0
This is a Nagios must have
by bobbydale, December 31, 2013
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.
Helpful? Yes  No 
Easy to add graphing and trending
by JohnO, December 31, 2012
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!
Helpful? Yes  No 
Excellent!!
by sircharlo, November 30, 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.
Helpful? Yes  No 
Excellent Tool for Realtime Stats on Dashboard
by kosarajudeepak, November 30, 2010
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.
1 of 1 found this review helpful.
Helpful? Yes 1 No 0
Nice
by ahuffman, August 31, 2009
This adds some nice graphs to your services and hosts. The popup config is great for displaying performance data.
4 of 4 found this review helpful.
Helpful? Yes 4 No 0
Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
4.7 (37)
Favorites
12
Views
567,962