just need to know what are the causes and what one should take preventive measures to avoid ndo2db error.
i am always getting below error.
host=2780
services=25000
nagiosxi 2014 2.7
By the way profile.zip is already on the way. this is a general question just need to know. Followed FAQ, tried repairing mysql. After repairing it seems to work perfectly. Just want to share a incident.
Nagios instance is running on VM. Couple of days back there was suddenly surge in CPU 7000+ load average (can show you graph but not right now). Monitoring Engine was not working. Immediate steps taken to resolve the issue was Hard Reboot the server. We were not able to login to server nor NagiosXI URL was loading so unable to make out who was on top command. After that did mysql repair and things where working fine.
Code: Select all
Nov 10 08:27:24 NAGPRDAPP1 ndo2db: Message sent to queue.
Nov 10 08:27:24 NAGPRDAPP1 ndo2db: Warning: queue send error, retrying...
Nov 10 08:27:25 NAGPRDAPP1 ndo2db: Message sent to queue.
Nov 10 08:27:26 NAGPRDAPP1 ndo2db: Warning: queue send error, retrying...
Nov 10 08:27:27 NAGPRDAPP1 ndo2db: Message sent to queue.
Nov 10 08:27:27 NAGPRDAPP1 ndo2db: Warning: queue send error, retrying...
Nov 10 08:27:28 NAGPRDAPP1 ndo2db: Message sent to queue.
Nov 10 08:27:28 NAGPRDAPP1 ndo2db: Warning: queue send error, retrying...
Nov 10 08:27:29 NAGPRDAPP1 ndo2db: Message sent to queue.
Nov 10 08:27:29 NAGPRDAPP1 ndo2db: Warning: queue send error, retrying...
Nov 10 08:27:30 NAGPRDAPP1 ndo2db: Message sent to queue.
Nov 10 10:13:28 NAGPRDAPP1 ndo2db: Error: mysql_query() failed for 'UPDATE nagios_conninfo SET disconnect_time=NOW(), last_checkin_time=NOW(), data_end_time=FROM_UNIXTIME(0), bytes_processed='0', lines_processed='0', entries_processed='0' WHERE conninfo_id='0''
Nov 10 10:13:28 NAGPRDAPP1 ndo2db: mysql_error: 'MySQL server has gone away'
Nov 10 10:13:28 NAGPRDAPP1 ndo2db: Error: Connection to MySQL database has been lost!
Nov 10 13:00:01 NAGPRDAPP1 rsyslogd-2177: imuxsock lost 1188 messages from pid 26690 due to rate-limiting
Nov 10 16:32:42 NAGPRDAPP1 ndo2db: Error: mysql_query() failed for 'UPDATE nagios_conninfo SET disconnect_time=NOW(), last_checkin_time=NOW(), data_end_time=FROM_UNIXTIME(0), bytes_processed='0', lines_processed='0', entries_processed='0' WHERE conninfo_id='0'' Nov 10 16:32:42 NAGPRDAPP1 ndo2db: mysql_error: 'MySQL server has gone away'
Nov 10 16:32:42 NAGPRDAPP1 ndo2db: Error: Connection to MySQL database has been lost!
Nov 10 18:14:01 NAGPRDAPP1 auditd[1618]: Audit daemon rotating log files