Page 1 of 1

problem in nagios XI time

Posted: Thu May 01, 2014 3:14 am
by hanya.radwan
4.png
the time of last check and next check of nagios Xi not the same as the time of nagios server and nagios core. please check the pictures

this the time from system profile:

Date/Time

PHP Timezone: Asia/Hebron
PHP Time: Thu, 01 May 2014 11:13:18 +0300
System Time: Thu, 01 May 2014 11:13:18 +0300

Re: problem in nagios XI time

Posted: Thu May 01, 2014 9:39 am
by sreinhardt
The picture you provided, simply shows the last check time of your services and the last time the host\service status dashlet updated from the database. These times are not comparable in any real way. The host\service dashlets in the upper right, only update the time when the update from the database to reap new results, it says nothing about when your last checks were. The service last check time, is perfectly understandable if you have 1 hour check intervals, but I could not know if that is actually the case without seeing your configurations.

Re: problem in nagios XI time

Posted: Thu May 01, 2014 9:41 am
by lmiltchev
Run the following commands:

Code: Select all

service nagios stop
killall nagios
service ndo2db stop
service ndo2db start
service nagios start
Let me know if this fixed your issue.

Re: problem in nagios XI time

Posted: Fri May 02, 2014 6:10 am
by hanya.radwan
I try the command but the problem still appear. please note that this problem appeared when I changed server time to summar time, but nagios XI time not changed

Re: problem in nagios XI time

Posted: Fri May 02, 2014 9:02 am
by tmcdonald
hanya.radwan wrote:please note that this problem appeared when I changed server time to summar time, but nagios XI time not changed
What changes exactly did you make? Can you post screenshots or provide the line in a config file?

Re: problem in nagios XI time

Posted: Tue May 06, 2014 12:46 am
by hanya.radwan
I applied the following commands

service nagios stop
killall nagios
service ndo2db stop
service ndo2db start
service nagios start

Re: problem in nagios XI time

Posted: Tue May 06, 2014 9:00 am
by tmcdonald
But how did you change the time? What specific edits did you make? That might have an impact on how things are working.

Re: problem in nagios XI time

Posted: Wed May 07, 2014 3:55 am
by hanya.radwan
I followed the steps in change time manual:
http://assets.nagios.com/downloads/nagi ... m_Time.pdf

Re: problem in nagios XI time

Posted: Wed May 07, 2014 11:29 am
by sreinhardt
Couple of questions:

What are the check intervals for the checks that you displayed originally?
What timezone is your desktop system in, and is that different from the timezone that nagios is in?

Also as I mentioned previously, the times that you mentioned are completely 100% separate. The last updated time in the upper right is a time created on your local system showing when that dashlet last updated. It actually has no bearing on when core or XI runs or displays items. Also due to that being created via javascript, it uses your desktop system time, not the nagios system time, so if there is an hour difference, as it appears from your screenshot, it should be fully expected that these are different. Secondly the last check time, is just the last time nagios ran a check for that particular host or service. This time is calculated locally to the nagios system and should not be generated on your desktop, so again if they are in differing timezones, it will definitely differ on your screen.