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