pnp4nagios graphs are showing wrong dates.

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
grayloglearn
Posts: 222
Joined: Thu Jul 06, 2017 8:55 am

pnp4nagios graphs are showing wrong dates.

Post 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.
Attachments
time difference graph
time difference graph
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: pnp4nagios graphs are showing wrong dates.

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
grayloglearn
Posts: 222
Joined: Thu Jul 06, 2017 8:55 am

Re: pnp4nagios graphs are showing wrong dates.

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: pnp4nagios graphs are showing wrong dates.

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
grayloglearn
Posts: 222
Joined: Thu Jul 06, 2017 8:55 am

Re: pnp4nagios graphs are showing wrong dates.

Post by grayloglearn »

Hi Team,

Kindly find the below details do the needful on this to resolve this.
Attachments
datedetila
datedetila
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: pnp4nagios graphs are showing wrong dates.

Post by scottwilkerson »

Change the field in /etc/php.ini to

Code: Select all

date.timezone = 'Europe/Berlin';
then restart httpd

Code: Select all

service httpd restart
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
grayloglearn
Posts: 222
Joined: Thu Jul 06, 2017 8:55 am

Re: pnp4nagios graphs are showing wrong dates.

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: pnp4nagios graphs are showing wrong dates.

Post 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/
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
grayloglearn
Posts: 222
Joined: Thu Jul 06, 2017 8:55 am

Re: pnp4nagios graphs are showing wrong dates.

Post 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?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: pnp4nagios graphs are showing wrong dates.

Post 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.
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked