Incorrect Notificaton time
-
lafargeuser
- Posts: 341
- Joined: Thu Sep 27, 2012 12:23 am
Incorrect Notificaton time
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
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
You do not have the required permissions to view the files attached to this post.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Incorrect Notificaton time
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:
And the timestamp of a recent email? Possibly a test email? So we know the differences.
For the notifications how far off is the time, could you run and send us the following:
Code: Select all
dateCode: Select all
cat /etc/php.ini | grep date.time-
lafargeuser
- Posts: 341
- Joined: Thu Sep 27, 2012 12:23 am
Re: Incorrect Notificaton time
[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
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
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Incorrect Notificaton time
This usually will rectify itself once the time catches up as your last check was in the future.
-
lafargeuser
- Posts: 341
- Joined: Thu Sep 27, 2012 12:23 am
Re: Incorrect Notificaton time
How should I get rid of this ? due to I am not able to find current alert......
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Incorrect Notificaton time
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.
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.
-
lafargeuser
- Posts: 341
- Joined: Thu Sep 27, 2012 12:23 am
Re: Incorrect Notificaton time
Tried but no luck...still I can see wrong time/
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Incorrect Notificaton time
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?
-
lafargeuser
- Posts: 341
- Joined: Thu Sep 27, 2012 12:23 am
Re: Incorrect Notificaton time
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
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
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Incorrect Notificaton time
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:
Also though these should not differ:
Also add your current "real time" that you expect for the notifications in your reply in relation to the time shown from these commands.
Code: Select all
cat /etc/php.ini | grep date.timeCode: Select all
hwclockCode: Select all
date