Page 2 of 3
Re: Graphing Problem
Posted: Sun Jun 01, 2014 7:01 pm
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 ~]#
Re: Graphing Problem
Posted: Mon Jun 02, 2014 1:26 pm
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?
Re: Graphing Problem
Posted: Mon Jun 02, 2014 6:41 pm
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.
Re: Graphing Problem
Posted: Tue Jun 03, 2014 10:19 am
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'
Re: Graphing Problem
Posted: Tue Jun 03, 2014 6:58 pm
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
Re: Graphing Problem
Posted: Wed Jun 04, 2014 2:04 am
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.
Re: Graphing Problem
Posted: Wed Jun 04, 2014 2:27 pm
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?
Re: Graphing Problem
Posted: Wed Jun 04, 2014 7:02 pm
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.
Re: Graphing Problem
Posted: Thu Jun 05, 2014 12:24 pm
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.
Re: Graphing Problem
Posted: Thu Jun 05, 2014 7:05 pm
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?