Since a couple of days I have started getting a problem were my /usr/local/nagios/var/nagios.log file just grows by about 4-5GB / 24 hours and in a couple of days my filesystem is full on my Nagios server. The problem is related to database inserts failing as per:
Code: Select all
[1647354247] NDO-3: INSERT INTO nagios_servicechecks (instance_id, start_time, start_time_usec, end_time, end_time_usec, service_object_id, check_type, current_check_attempt, max_check_attempts, state, state_type, timeout, early_timeout, execution_time, latency, return_code, output, long_output, perfdata, command_object_id, command_args, command_line) VALUES (1,FROM_UNIXTIME(1647354247),621734,FROM_UNIXTIME(1647354247),734849,9379,0,1,1,0,1,60,0,0.113115,0.000277,0,'DNS OK: 0.010 seconds response time. hostname.domain.tld returns 192.168.100.101','','time=0.010104s;2.000000;4.000000;0.000000',0,'','') ON DUPLICATE KEY UPDATE instance_id = VALUES(instance_id), start_time = VALUES(start_time), start_time_usec = VALUES(start_time_usec), end_time = VALUES(end_time), end_time_usec = VALUES(end_time_usec), service_object_id = VALUES(service_object_id), check_type = VALUES(check_type), current_check_attempt = VALUES(current_check_attempt), max_check_attempts = VALUES(max_check_attempts), state = VALUES(state), state_type = VALUES(state_type), timeout = VALUES(timeout), early_timeout = VALUES(early_timeout), execution_time = VALUES(execution_time), latency = VALUES(latency), return_code = VALUES(return_code), output = VALUES(output), long_output = VALUES(long_output), perfdata = VALUES(perfdata), command_object_id = VALUES(command_object_id), command_args = VALUES(command_args), command_line = VALUES(command_line)Server is a hyper-V virtual machine, fully patched CentOS 7:
[root@u3 ~]# cat /etc/redhat-release
CentOS Linux release 7.9.2009 (Core)
[root@u3 ~]# uname -a
Linux u3.jara.local 3.10.0-1160.59.1.el7.x86_64 #1 SMP Wed Feb 23 16:47:03 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Been running for 5-6 years now, all the way back to version 5.2.5 at least and never had a problem until now. I hope someone can help me with some insights into solving my problem?
Best regards
Anders