Page 1 of 2

Elements out of sync after upgrading to Nagios XI 2012R2.8c

Posted: Tue Jan 28, 2014 8:13 am
by johndoe
Just updated nagios XI to "Nagios XI 2012R2.8c" , went to configure some unconfigured objects and noticed that even though nagios says the configs were successfully written it keeps showing me "Out of sync" when i go to the Legacy CCM to try and configure them further.

Went to tools > write config files also and all shows ok however the "out of sync" is still shown.

What can I do ?

Re: Elements out of sync after upgrading to Nagios XI 2012R2

Posted: Tue Jan 28, 2014 10:54 am
by tmcdonald
What happened when you clicked Verify? All "Write" does is actually write the files to disk without bothering to sanity-check them.

Re: Elements out of sync after upgrading to Nagios XI 2012R2

Posted: Wed Jan 29, 2014 7:17 am
by johndoe
Total Warnings: 80
Total Errors: 0

Things look okay - No serious problems were detected during the pre-flight check


.... I came accross this post http://support.nagios.com/forum/viewtop ... f=6&t=6040

I also had the time different, however after changing my time and making sure it matches i still have the same problem...

On a side note, not sure if related to this issue also, some checks (99% of my checks are passive) on the "duration" show a negative value (-20s, -30s etc...)

Re: Elements out of sync after upgrading to Nagios XI 2012R2

Posted: Wed Jan 29, 2014 8:56 am
by scottwilkerson
Can you run the following and send the results (can PM if it is sensitive information)

Code: Select all

ls -la /usr/local/nagios/etc/hosts /usr/local/nagios/etc/services

Re: Elements out of sync after upgrading to Nagios XI 2012R2

Posted: Wed Jan 29, 2014 9:12 am
by johndoe
here you go, all other permissions of files are the same, obfuscated the names:

Code: Select all

/usr/local/nagios/etc/services:
total 420
drwsrwsr-x 2 apache nagios  4096 Jan 28 13:00 .
drwsrwsr-x 7 apache nagios  4096 Jan 27 13:44 ..
-rw-rw-r-- 1 apache nagios  1005 Jan 29 14:05 XXX.cfg
-rw-rw-r-- 1 apache nagios  1012 Jan 29 14:05 XXX1.cfg
-rw-rw-r-- 1 apache nagios  1029 Jan 29 14:05 XXX2.cfg


/usr/local/nagios/etc/hosts:
total 204
drwsrwsr-x 2 apache nagios 4096 Jan 28 13:00 .
drwsrwsr-x 7 apache nagios 4096 Jan 27 13:44 ..
-rw-rw-r-- 1 apache nagios 1119 Jan 29 14:05 XXX.cfg
-rw-rw-r-- 1 apache nagios 1116 Jan 29 14:05 XXX1.cfg
-rw-rw-r-- 1 apache nagios 1104 Jan 29 14:05 XXX2.cfg

Re: Elements out of sync after upgrading to Nagios XI 2012R2

Posted: Wed Jan 29, 2014 9:20 am
by scottwilkerson
Unfortunately this isn't going to help as I am looking for particular host/service that is the offending one, and want to see if there is a difference in timestamp compared to the rest.. Can you send the full output in a PM?

Re: Elements out of sync after upgrading to Nagios XI 2012R2

Posted: Wed Jan 29, 2014 10:13 am
by johndoe
They all have the same timestamp "Jan 29 14:05" and permissions "-rw-rw-r--", the only differences are file sizes, a bit reluctant to send you the data as it's quite sensitive for us. Any other way I can assist you on finding the issue here?

Re: Elements out of sync after upgrading to Nagios XI 2012R2

Posted: Wed Jan 29, 2014 1:42 pm
by scottwilkerson
If you to to Admin -> System Profile can you show me the Date/Time section, e.g.
Date/Time
PHP Timezone: US/Central
PHP Time: Wed, 29 Jan 2014 12:38:20 -0600
System Time: Wed, 29 Jan 2014 12:38:20 -0600

Re: Elements out of sync after upgrading to Nagios XI 2012R2

Posted: Thu Jan 30, 2014 9:29 am
by johndoe
Date/Time

PHP Timezone: UTC
PHP Time: Thu, 30 Jan 2014 14:29:05 +0000
System Time: Thu, 30 Jan 2014 14:29:05 +0000

Re: Elements out of sync after upgrading to Nagios XI 2012R2

Posted: Thu Jan 30, 2014 4:08 pm
by abrist
Lets check a few things. What is the output of:

Code: Select all

grep "memory_limit\|max_execution\|max_input" /etc/php.ini
And:

Code: Select all

tail -25 /var/log/mysqld.log
How many checks are run every 5 minutes?