Page 2 of 2

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

Posted: Thu Jan 30, 2014 4:19 pm
by lmiltchev
Did you copy the UTC timezone in /etc/localtime?

cp /usr/share/zoneinfo/UTC /etc/localtime

Have you set the "ZONE=" in the "/etc/sysconfig/clock" as UTC?

Have you tried restarting the server?

Please, review the following document:

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

If this doesn't fix the negative duration, you may running the following commands:

Code: Select all

service nagios stop
rm -f /usr/local/nagios/var/retention.dat
service nagios start
Note: All of your hosts/service will be in pending state, and they will be rechecked.

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

Posted: Fri Jan 31, 2014 7:46 am
by johndoe

Code: Select all

# grep "memory_limit\|max_execution\|max_input" /etc/php.ini
; max_input_time
max_execution_time = 30
max_input_time = 60
;max_input_nesting_level = 64
memory_limit = 128M

Code: Select all

# tail -25 /var/log/mysqld.log
140131 12:28:24 [Warning] /usr/libexec/mysqld: Forcing close of thread 4  user: 'ndoutils'

140131 12:28:24  InnoDB: Starting shutdown...
140131 12:28:25  InnoDB: Shutdown completed; log sequence number 1589369
140131 12:28:25 [Note] /usr/libexec/mysqld: Shutdown complete

140131 12:28:25 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
140131 12:28:29 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
140131 12:28:29 [Note] libgovernor.so not found
140131 12:28:29 [Note] Plugin 'FEDERATED' is disabled.
140131 12:28:29 InnoDB: The InnoDB memory heap is disabled
140131 12:28:29 InnoDB: Mutexes and rw_locks use GCC atomic builtins
140131 12:28:29 InnoDB: Compressed tables use zlib 1.2.3
140131 12:28:29 InnoDB: Using Linux native AIO
140131 12:28:29 InnoDB: Initializing buffer pool, size = 128.0M
140131 12:28:29 InnoDB: Completed initialization of buffer pool
140131 12:28:29 InnoDB: highest supported file format is Barracuda.
140131 12:28:30  InnoDB: Waiting for the background threads to start
140131 12:28:31 InnoDB: 5.5.33 started; log sequence number 1589369
140131 12:28:31 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306
140131 12:28:31 [Note]   - '0.0.0.0' resolves to '0.0.0.0';
140131 12:28:31 [Note] Server socket created on IP: '0.0.0.0'.
140131 12:28:31 [Note] Event Scheduler: Loaded 0 events
140131 12:28:31 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.5.33-cll-lve'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  MySQL Community Server (GPL) by Atomicorp
How many checks are run every 5 minutes?
No actual idea here, our checks are all passive, having a look at "Admin" -> "Monitoring Engine Status" -> "Monitoring Engine Check Statistics" shows all 0, (due to the reboot i just did maybe? will wait some more minutes)

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

Posted: Fri Jan 31, 2014 7:52 am
by johndoe
For some reason now both things seem to work ok.

The only actual change i did was the following to UTC as directed on the PDF @lmiltchev suggested:
You will also need to set the “ZONE” directive in /etc/sysconfig/clock:
nano /etc/sysconfig/clock
Change or add the following line within your timezone:
ZONE=”America/Los_Angeles”
Save out.