Page 1 of 2

Incorrect Notificaton time

Posted: Thu Sep 12, 2013 7:35 am
by lafargeuser
Hi,
In Notification & Event log tab, I didnt see correct time. However, on Nagios Server date & time is correct
# date
Thu Sep 12 18:01:05 IST 2013

Also not able to apply configuration. Attached is the log file for your reference.

Notification
2013-09-12 11:26:42 vshimsnagioscore Apache Web Server Service Problem No CRITICAL nagiosadmin Nagios XI httpd is stopped NID: 56261, COID: 75, CNID: 56037, CNMID: 56037


Event Log
2013-09-12 11:26:42SERVICE NOTIFICATION: nagiosadmin;vshimsnagioscore;Apache Web Server;CRITICAL;xi_service_notification_handler;httpd is stopped

Re: Incorrect Notificaton time

Posted: Thu Sep 12, 2013 9:31 am
by slansing
As for applying configuration it looks like it is telling you exactly what is wrong, 'xi_timeperiod_24x7' is defined multiple times. I'd check CCM > Time Periods and make sure you have no duplicates there.

For the notifications how far off is the time, could you run and send us the following:

Code: Select all

date

Code: Select all

cat /etc/php.ini | grep date.time
And the timestamp of a recent email? Possibly a test email? So we know the differences.

Re: Incorrect Notificaton time

Posted: Fri Sep 13, 2013 12:13 am
by lafargeuser
[root@NAGIOSXI ~]# date
Fri Sep 13 10:42:29 IST 2013


root@NAGIOSXI ~]# cat /etc/php.ini | grep date.time
; http://www.php.net/manual/en/datetime.c ... e.timezone
date.timezone = Asia/Kolkata

also change to

root@NAGIOSXI etc]# cat /etc/php.ini | grep date.time
; http://www.php.net/manual/en/datetime.c ... e.timezone
#date.timezone = Asia/Kolkata
date.timezone = IST



still in can see wrong time in Last Check 09/13/2013 12:05:04

Re: Incorrect Notificaton time

Posted: Fri Sep 13, 2013 7:45 am
by scottwilkerson
This usually will rectify itself once the time catches up as your last check was in the future.

Re: Incorrect Notificaton time

Posted: Mon Sep 16, 2013 7:44 am
by lafargeuser
How should I get rid of this ? due to I am not able to find current alert......

Re: Incorrect Notificaton time

Posted: Mon Sep 16, 2013 10:24 am
by sreinhardt
Is the link provided by the notification not working properly or was it not acknowledged initially? As Scott mentioned, setting php and system times to be the same, or even adding NTP to the mix will correct future notifications on it's own after an apache and nagios service restart.

Re: Incorrect Notificaton time

Posted: Tue Sep 17, 2013 6:53 am
by lafargeuser
Tried but no luck...still I can see wrong time/

Re: Incorrect Notificaton time

Posted: Tue Sep 17, 2013 10:53 am
by slansing
How far off is the notification time? In the XI interface if you navigate to Reports > Notifications and if you look for the notifications which have the wrong time do they show the correct time here? Or is this off as well?

Re: Incorrect Notificaton time

Posted: Wed Sep 18, 2013 12:17 am
by lafargeuser
How far off is the notification time? In the XI interface if you navigate to Reports > Notifications and if you look for the notifications which have the wrong time do they show the correct time here? Or is this off as well?

Navigate to Reports > Notifications here too showing wrong time. dont know what went wrong.

Any idea from where it is picking time. its shows below time.

ES-W2K8smart Up 4d 22h 19m 51s 1/5 18/09/2013 05:14:43

However, correct time here is 10:46 AM

Re: Incorrect Notificaton time

Posted: Wed Sep 18, 2013 9:55 am
by slansing
The interface uses a mix of system / hardware time, and php time. I'd like to see what you truly have for php time at this moment since you said you changed it:

Code: Select all

cat /etc/php.ini | grep date.time
Also though these should not differ:

Code: Select all

hwclock

Code: Select all

date
Also add your current "real time" that you expect for the notifications in your reply in relation to the time shown from these commands.