MySQL Locks Each Night
Posted: Fri Aug 10, 2012 8:31 am
Once the socket goes stale it will not write to the database and will not allow any checks to occur.
This event happened before the backup process which worked but the database never recovered.
MySQL process remains very high 100% + until restarted.
The night before this even happened at about 7:40.
Mod-Gearman is running on the server with a mod-gearman worker. When the database stops all the gearman workers are orphaned.
Nagios XI 3.2
RHEL 5.x 64-bit
8 Cores, 16 GB RAM
new install with about 100 hosts/600 services
This event happened before the backup process which worked but the database never recovered.
MySQL process remains very high 100% + until restarted.
The night before this even happened at about 7:40.
Mod-Gearman is running on the server with a mod-gearman worker. When the database stops all the gearman workers are orphaned.
Nagios XI 3.2
RHEL 5.x 64-bit
8 Cores, 16 GB RAM
new install with about 100 hosts/600 services
Code: Select all
2012-08-09T09:54:37.264767-04:00 id-nag01 ndo2db: Error: mysql_query() failed for 'DELETE FROM nagios_timedevents WHERE instance_id='1' AND scheduled_
time<FROM_UNIXTIME(1344433766)'
2012-08-09T09:54:37.264785-04:00 id-nag01 ndo2db: mysql_error: 'Server shutdown in progress'
2012-08-09T09:54:42.457087-04:00 id-nag01 ndo2db: Error: Could not connect to MySQL database: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
2012-08-09T09:54:37.267184-04:00 id-nag01 ndo2db: mysql_error: 'Server shutdown in progress'
2012-08-09T09:54:37.267334-04:00 id-nag01 ndo2db: Error: mysql_query() failed for 'DELETE FROM nagios_systemcommands WHERE instance_id='1' AND start_t
ime<FROM_UNIXTIME(1343915366)'
2012-08-09T09:54:37.267341-04:00 id-nag01 ndo2db: mysql_error: 'Lost connection to MySQL server during query'
2012-08-09T09:54:37.267346-04:00 id-nag01 ndo2db: Error: Connection to MySQL database has been lost!