Page 1 of 1

Last Run Time is in Future for alerting

Posted: Thu Feb 26, 2015 2:51 am
by muratKURU
Hi All
I have configured an Alert in Nagios Log Server.
If I press the Icon "Run the alert now" the Date an Time in the "Lat Run" field are okay.
But as soon the schedule runs this alert, the Time of the "Last Run" is changed to a future time.
Our Cluster Timezone is set (UTC+01:00) Bern.
We have also configure NTP on the Nagios Log Servers.
Where else do we need to correct/set up the time?
We are running the latest version of Nagios Log Server 2015R1.3.
Thank you for your help in this matter.

Re: Last Run Time is in Future for alerting

Posted: Thu Feb 26, 2015 9:08 am
by scottwilkerson
Can you run the following

Code: Select all

date
cat /etc/php.ini|grep date.timezone

Re: Last Run Time is in Future for alerting

Posted: Fri Feb 27, 2015 3:29 am
by muratKURU
Hi scottwilkerson
Thank you for your feedback.
Below the information you requested:

[root@cnalg346 ~]# date
Fri Feb 27 09:28:51 CET 2015
[root@cnalg346 ~]# cat /etc/php.ini|grep date.timezone
; http://www.php.net/manual/en/datetime.c ... e.timezone
date.timezone = Europe/Berlin
[root@cnalg346 ~]#

Re: Last Run Time is in Future for alerting

Posted: Fri Feb 27, 2015 3:20 pm
by abrist
Have you restarted the httpd server since making the php.ini changes?

Code: Select all

service httpd restart

Re: Last Run Time is in Future for alerting

Posted: Fri Feb 27, 2015 3:21 pm
by jdalrymple
It might be helpful for us if you could tell us ~how far in the future the Last Run Time is. Does it seem to be a random small number, a random large number, or does it seem to be a timezone offset problem?

Thanks

Re: Last Run Time is in Future for alerting

Posted: Mon Mar 02, 2015 5:57 am
by muratKURU
Hi All
The Problem is solved.
The DNS IP on the 2nd Nagios Log Server instance was wrong.
We run 2 Nagios Log Server instances.
The DNS IP on the 1st Nagios Log Server was okay but the DNS IP on the 2nd Nagios Log Server was wrong.
We corrected that and it's okay now.

Re: Last Run Time is in Future for alerting

Posted: Mon Mar 02, 2015 9:11 am
by scottwilkerson
Glad you got this resolved.