When trying to get the custom time range for PNP4Nagios graphs, it might result in an error "
application/models/data.php :". 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
pnp::clean()" from the below 2 lines
$this->start = pnp::clean($this->input->get('start',FALSE)); $this->end = pnp::clean($this->input->get('end',FALSE));
$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.