Fix PNP4Nagios graphs custom date/time display issue - Nagios

When trying to get the custom time range for PNP4Nagios graphs, it might result in an error "application/models/data.php [664]:". It can easily resolved by editing "system.php"  in PNP4Nagios controllers folder. To start with first make a backup of the file.

# cp -a /usr/local/pnp4nagios/share/application/controllers/system.php /usr/local/pnp4nagios/share/application/controllers/system.php.bkp

And then start with editing the "system.php" file

# vi /usr/local/pnp4nagios/share/application/controllers/system.php

Remove "pnp::clean()" from the below 2 lines

Before

$this->start             = pnp::clean($this->input->get('start',FALSE));
$this->end               = pnp::clean($this->input->get('end',FALSE));

After

$this->start             = $this->input->get('start',FALSE);
$this->end               = $this->input->get('end',FALSE);

That's all that needs to be done and custom date filter should work now for graphs. Any issues, please let us know via Contact Us/Comments.

Monitoring Related Articles....

When trying to get the custom time range for PNP4Nagios graphs, it might result in an error "application/models/data.php [664]:". It...
To make Nagios CORE security compliant with a SHA2/SHA256 cert, follow these steps using Openssl and you will be ready...
This script is to monitor a failure when Nagios daemons fails to start or sometimes Nagios stops sending alerts. When...
Its possible to upgrade Nagios CORE to the latest version by just following these simple steps. This article covers upgrade,...
This is a easy-to-follow setup and config guide for of Cacti (Source install) on CentOS and Red Hat flavour OS.