graphing Problem

This support forum board is for questions relating to Nagios Fusion.
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: graphing Problem

Post by rajasegar »

slansing wrote:Do you actually have the PHP time set on those two servers?:

Code: Select all

cat /etc/php.ini | grep 'date.time'
If not please set it.
Set the date. The graph for Shanghai looks ok but is showing 2 hours postdated
The graph for Hong Kong still shows zero and is 6 hours behind time.
graph2.png

Fusion
[nagios@nagiosprodxi1 ~]$ date
Mon Jun 2 07:57:50 MYT 2014

[nagios@nagiosprodxi1 ~]$ cat /etc/php.ini | grep 'date.time'
; http://www.php.net/manual/en/datetime.c ... e.timezone
date.timezone = Asia/Kuala_Lumpur
[nagios@nagiosprodxi1 ~]$


Shanghai
Mon Jun 2 07:55:36 CST 2014
[nagios@CNPUDAS011 ~]$

[nagios@CNPUDAS011 ~]$ cat /etc/php.ini | grep 'date.time'
; http://www.php.net/manual/en/datetime.c ... e.timezone
date.timezone = Asia/Shanghai


Hong Kong
[root@HKICBS011 ~]# date
Mon Jun 2 07:51:57 HKT 2014

[root@HKICBS011 ~]# cat /etc/php.ini | grep 'date.time'
; http://www.php.net/manual/en/datetime.c ... e.timezone
date.timezone = Asia/Hong_Kong
[root@HKICBS011 ~]#
You do not have the required permissions to view the files attached to this post.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: graphing Problem

Post by lmiltchev »

Fusion
[nagios@nagiosprodxi1 ~]$ date
Mon Jun 2 07:57:50 MYT 2014

[nagios@nagiosprodxi1 ~]$ cat /etc/php.ini | grep 'date.time'
; http://www.php.net/manual/en/datetime.c ... e.timezone
date.timezone = Asia/Kuala_Lumpur
[nagios@nagiosprodxi1 ~]$
Is this our Nagios Fusion server? This (nagios@nagiosprodxi1) seems like XI box... Do you have Nagios XI and Fusion, running on the same machine?
Be sure to check out our Knowledgebase for helpful articles and solutions!
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: graphing Problem

Post by rajasegar »

lmiltchev wrote:
Fusion
[nagios@nagiosprodxi1 ~]$ date
Mon Jun 2 07:57:50 MYT 2014

[nagios@nagiosprodxi1 ~]$ cat /etc/php.ini | grep 'date.time'
; http://www.php.net/manual/en/datetime.c ... e.timezone
date.timezone = Asia/Kuala_Lumpur
[nagios@nagiosprodxi1 ~]$
Is this our Nagios Fusion server? This (nagios@nagiosprodxi1) seems like XI box... Do you have Nagios XI and Fusion, running on the same machine?
Sorry, captured time from wrong server. Anyway Fusion and XI have identical date and php.ini date.timezone output.
XI and Fusion are running in separate VM's.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: graphing Problem

Post by lmiltchev »

Can you show us the output from the following commands, run on the Nagios Fusion server?

Code: Select all

date
cat /etc/php.ini | grep 'date.time'
Be sure to check out our Knowledgebase for helpful articles and solutions!
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: graphing Problem

Post by rajasegar »

lmiltchev wrote:Can you show us the output from the following commands, run on the Nagios Fusion server?

Code: Select all

date
cat /etc/php.ini | grep 'date.time'
[nagios@nagiosprodcons raja]$ cat /etc/php.ini | grep 'date.time'
; http://www.php.net/manual/en/datetime.c ... e.timezone
date.timezone = Asia/Kuala_Lumpur
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: graphing Problem

Post by rajasegar »

Upgraded to 2014.
Same problem but all the graphs become an aye sore.

Before
graph2.png
After
2014_graph.png
I still did not get an answer how to view yesterday alert graph.
You do not have the required permissions to view the files attached to this post.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: graphing Problem

Post by sreinhardt »

What timezone are you in when generating these graphs? I didn't see this asked yet, but the actual graphing is done client side, so this definitely can play a role.
I still did not get an answer how to view yesterday alert graph.
I must have missed this, could you please restate what you are looking for? Are you trying to view the alerts from a previous day?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: graphing Problem

Post by rajasegar »

sreinhardt wrote:What timezone are you in when generating these graphs? I didn't see this asked yet, but the actual graphing is done client side, so this definitely can play a role.
I still did not get an answer how to view yesterday alert graph.
I must have missed this, could you please restate what you are looking for? Are you trying to view the alerts from a previous day?
The timezone is Asia/Kuala_Lumpur, MYT (GMT + 8).
[nagios@nagiosprodcons raja]$ cat /etc/php.ini | grep 'date.time'
; http://www.php.net/manual/en/datetime.c ... e.timezone
date.timezone = Asia/Kuala_Lumpur

I was referring to Today's Alert by Hour. What if I want to see Yesterday's alert by hour or any other day? Alert by hour for the week, month, custom duration?
Please also advice how to get back the same theme as before for the graphs.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
jomann
Development Lead
Posts: 611
Joined: Mon Apr 22, 2013 10:06 am
Location: Nagios Enterprises

Re: graphing Problem

Post by jomann »

Is the graph showing into the future? As in, is the empty part of the graph 8 hours of future time? Because if so, there may be an issue with our alert graph in fusion. When you took the "After" picture in the above post it looks like Jun 5th is on that graph and it was only Jun 4th from the post you made...

As for the previous day in fusion this doesn't exist. We can add a feature request for this functionality ... it would probably get added in an upcoming release since it seems helpful and would be a nice feature.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: graphing Problem

Post by rajasegar »

jomann wrote:Is the graph showing into the future? As in, is the empty part of the graph 8 hours of future time? Because if so, there may be an issue with our alert graph in fusion. When you took the "After" picture in the above post it looks like Jun 5th is on that graph and it was only Jun 4th from the post you made...

As for the previous day in fusion this doesn't exist. We can add a feature request for this functionality ... it would probably get added in an upcoming release sin
ce it seems helpful and would be a nice feature.
Yes it is showing future dates for 2 of the servers. This was discussed in this thread history which lead to investigation on the time settings.

This graph is not usable my reporting since it is showing data future dates. People will question the data credibility.

BTW, how do I get back the previous graph theme?
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation