NDO-3 query failed after each apply configuration
Posted: Thu Jan 21, 2021 10:14 am
Hi,
everytime we apply our configuration we see a lot of the following log entries:
So, the same entry, one for nagios_scheduleddowntime and one for nagios_downtimehistory.
But I can't find these entries anymore in NagiosXI + those object ID's don't even exist anymore.
The author and comments are valid and I recognise them from something in the past, but they are gone.
I think the issue we have here is that the scheduled_end_time is a negative value.
But the main question is, where does this come from.
I already looked in the cfg file and database tables for orphaned entries or something like that.
I've also looked at this kb article https://support.nagios.com/kb/article/n ... n-822.html
But I don't see the error, it just ends with:
Kind regards,
Peter
everytime we apply our configuration we see a lot of the following log entries:
Code: Select all
[1611240271] NDO-3: The following query failed while MySQL appears to be connected:
[1611240271] NDO-3: INSERT INTO nagios_scheduleddowntime (instance_id, downtime_type, object_id, entry_time, author_name, comment_data, internal_downtime_id, triggered_by_id, is_fixed, duration, scheduled_start_time, scheduled_end_time) VALUES (1,1,63030,FROM_UNIXTIME(1554368169),'my-author_name','my-comment_data',915511,0,1,-1778430201,FROM_UNIXTIME(1554368106),FROM_UNIXTIME(-224062095)) ON DUPLICATE KEY UPDATE instance_id = VALUES(instance_id), downtime_type = VALUES(downtime_type), object_id = VALUES(object_id), entry_time = VALUES(entry_time), author_name = VALUES(author_name), comment_data = VALUES(comment_data), internal_downtime_id = VALUES(internal_downtime_id), triggered_by_id = VALUES(triggered_by_id), is_fixed = VALUES(is_fixed), duration = VALUES(duration), scheduled_start_time = VALUES(scheduled_start_time), scheduled_end_time = VALUES(scheduled_end_time)
[1611240271] NDO-3: The following query failed while MySQL appears to be connected:
[1611240271] NDO-3: INSERT INTO nagios_downtimehistory (instance_id, downtime_type, object_id, entry_time, author_name, comment_data, internal_downtime_id, triggered_by_id, is_fixed, duration, scheduled_start_time, scheduled_end_time) VALUES (1,1,63030,FROM_UNIXTIME(1554368169),'my-author_name','my-comment_data',915511,0,1,-1778430201,FROM_UNIXTIME(1554368106),FROM_UNIXTIME(-224062095)) ON DUPLICATE KEY UPDATE instance_id = VALUES(instance_id), downtime_type = VALUES(downtime_type), object_id = VALUES(object_id), entry_time = VALUES(entry_time), author_name = VALUES(author_name), comment_data = VALUES(comment_data), internal_downtime_id = VALUES(internal_downtime_id), triggered_by_id = VALUES(triggered_by_id), is_fixed = VALUES(is_fixed), duration = VALUES(duration), scheduled_start_time = VALUES(scheduled_start_time), scheduled_end_time = VALUES(scheduled_end_time)But I can't find these entries anymore in NagiosXI + those object ID's don't even exist anymore.
The author and comments are valid and I recognise them from something in the past, but they are gone.
I think the issue we have here is that the scheduled_end_time is a negative value.
But the main question is, where does this come from.
I already looked in the cfg file and database tables for orphaned entries or something like that.
I've also looked at this kb article https://support.nagios.com/kb/article/n ... n-822.html
But I don't see the error, it just ends with:
Code: Select all
[1611240271] NDO-3: Ended event_handler thread
[1611240284] NDO-3: Ended service_check thread
[1611240296] NDO-3: Ended timed_event thread
[1611240333] NDO-3: Ended service_status thread
[1611240614] NDO-3: Ended downtime thread
Peter