Page 1 of 1

out of sync

Posted: Tue Jun 05, 2012 9:49 am
by idas
Hello,

I have setup nagiosXI 2011R2.4 in a ESX version 4.1
I was taking daily backup of the machine.
Today, because ESX crashed, i restored the nagiosXI machine, with a backup that i took yesterday.

All seemed to work fine, until the moment that i tried to add a new host.
I added the host, i applied the conf, which was saved successfully, but then i had a message at Sync Status of host "out of sync".
Despite that message, notifications for that host are working correctly.

Moreover i have the same issue whenever i try to make a change at a host or service.

How can i solve that issue?

P.S. date and system clock were configured correctly after restore, so they have the correct time.

John

Re: out of sync

Posted: Tue Jun 05, 2012 9:59 am
by scottwilkerson
Try going to Configure -> Core Config Manager -> Apply Configuration

Then click Apply Configuration

Re: out of sync

Posted: Tue Jun 05, 2012 10:48 am
by idas
Hello scottwilkerson,

thank you for replying.

i tried it, but unfortunately it didn't solve the issue.

i am open to any other advise.

John

Re: out of sync

Posted: Tue Jun 05, 2012 11:01 am
by lmiltchev
1. Do you have the proper timezone specified in the "/etc/php.ini" file?

Code: Select all

vi /etc/php.ini
Under "Module Settings" [Date], edit the line that says:

Code: Select all

date.timezone = 
Restart apache:

Code: Select all

service httpd restart
2. Can you actually apply configuration successfully or you encounter some errors? Try running the Write Config Tool to verify your configuration. To see how to do this, please, review this document:

http://assets.nagios.com/downloads/nagi ... tabase.pdf

Re: out of sync

Posted: Tue Jun 05, 2012 11:03 am
by scottwilkerson
You may want to try the fixing global permissions script and then do the above again.
http://library.nagios.com/library/produ ... -nagios-xi

When you do the Apply configuration does it say it is successful?

Re: out of sync

Posted: Tue Jun 05, 2012 11:36 am
by idas
Hello

From "Nagios XI Installation Profile" i saw that PHP time is 2 hours behind local time

PHP Timezone: Europe/London
PHP Time: Tue, 05 Jun 2012 17:28:24 +0100
System Time: Tue, 05 Jun 2012 19:28:24 +0300

I will try to change it as lmiltchev proposed and i will inform you about the result.

thank you
John

Re: out of sync

Posted: Tue Jun 05, 2012 12:34 pm
by scottwilkerson
Thanks, let us know if this fixes it.

Re: out of sync

Posted: Thu Jun 07, 2012 7:14 am
by idas
Yes, it solved the issue.
Thank you both very much

John