problem in nagios XI time

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
hanya.radwan
Posts: 194
Joined: Tue Feb 25, 2014 6:12 am
Location: palestine

problem in nagios XI time

Post 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
You do not have the required permissions to view the files attached to this post.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: problem in nagios XI time

Post 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.
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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: problem in nagios XI time

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
hanya.radwan
Posts: 194
Joined: Tue Feb 25, 2014 6:12 am
Location: palestine

Re: problem in nagios XI time

Post 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
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: problem in nagios XI time

Post 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?
Former Nagios employee
hanya.radwan
Posts: 194
Joined: Tue Feb 25, 2014 6:12 am
Location: palestine

Re: problem in nagios XI time

Post by hanya.radwan »

I applied the following commands

service nagios stop
killall nagios
service ndo2db stop
service ndo2db start
service nagios start
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: problem in nagios XI time

Post 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.
Former Nagios employee
hanya.radwan
Posts: 194
Joined: Tue Feb 25, 2014 6:12 am
Location: palestine

Re: problem in nagios XI time

Post by hanya.radwan »

I followed the steps in change time manual:
http://assets.nagios.com/downloads/nagi ... m_Time.pdf
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: problem in nagios XI time

Post 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.
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.
Locked