Page 1 of 2
pnp4nagios graphs are showing wrong dates.
Posted: Thu May 09, 2019 2:11 am
by grayloglearn
Hi Team,
We are facing the issue with wrong graph details. Could you please find the details for screen shot.
We are requested to show the graph between 1:53 to 5:53 but its showing wrong timings. Can some body help on this.
Re: pnp4nagios graphs are showing wrong dates.
Posted: Thu May 09, 2019 7:20 am
by scottwilkerson
Can you verify your PHP timezone matches your system timezone by running the following commands
Code: Select all
grep date.timezone /etc/php.ini
date
Re: pnp4nagios graphs are showing wrong dates.
Posted: Thu May 09, 2019 12:14 pm
by grayloglearn
Hi Team,
We have seen that php.ini, But in that time timezone was commented. And We have another server we have seen same php.ini in that file also time zone is commented.
Could you please help us what needs to be check more and how to resolve this.
Re: pnp4nagios graphs are showing wrong dates.
Posted: Thu May 09, 2019 12:28 pm
by scottwilkerson
It should be uncommented and then please show the output of these commands, we need to verify they match
Code: Select all
grep date.timezone /etc/php.ini
date
Re: pnp4nagios graphs are showing wrong dates.
Posted: Fri May 10, 2019 1:49 am
by grayloglearn
Hi Team,
Kindly find the below details do the needful on this to resolve this.
Re: pnp4nagios graphs are showing wrong dates.
Posted: Fri May 10, 2019 7:23 am
by scottwilkerson
Change the field in /etc/php.ini to
then restart httpd
Re: pnp4nagios graphs are showing wrong dates.
Posted: Tue May 21, 2019 11:23 pm
by grayloglearn
Hi Team,
thanks its works for me without restarting the service. Can we automate the report for every week or month. The user wants graph for every one week on particular service shall we do automate this graphs.
Ex: On X host cpu, memory, filesystem graphs he wants every week. shall we do this automate for multiple host.
Re: pnp4nagios graphs are showing wrong dates.
Posted: Wed May 22, 2019 6:40 am
by scottwilkerson
There isn't automated reports in Nagios Core, however, in Nagios XI you can accomplish this
https://www.nagios.com/products/nagios-xi/
Re: pnp4nagios graphs are showing wrong dates.
Posted: Wed May 22, 2019 8:02 pm
by grayloglearn
Hi Team,
Iknow in nagiosxi we have available.Can't we enable the graph in nagios core. Is there any possibility like how we enable like page, the same is it possible?
Re: pnp4nagios graphs are showing wrong dates.
Posted: Thu May 23, 2019 6:42 am
by scottwilkerson
grayloglearn wrote:Hi Team,
Iknow in nagiosxi we have available.Can't we enable the graph in nagios core. Is there any possibility like how we enable like page, the same is it possible?
Actually, in Nagios Core graphing isn't even a function of the project, you need to add it with an addon such as pnp4nagios.
The only way to get graphs in a report in Core would be to create that functionality yourself.
This is the developers of Nagios XI have done a lot of the heaving lifting for you.