Segfault Troubleshooting Tips
Posted: Tue Dec 18, 2018 5:20 pm
Over the years I've experienced some random segfaults with Nagios Core and I've struggled to figure out the best way to troubleshoot. Recently, I've had two incidents within 3 days on two separate servers, but in the past it was once every 6 months or so on just one of my servers.
What I'm really looking for is suggestions on how to debug or do a post mortem. My servers are running Nagios Core 4.3.4 on RHEL6.4. What I've done so far is set "daemon_dumps_core=1" in the nagios.cfg file, but it hasn't generated a core file yet. I have plans to update to RHEL7.5 and the latest Nagios Core, but I'm really looking for any other tips on how to track down what might be causing the issue. The other thing I've toyed around with is setting the "debug_level=-1" and "debug_verbosity=2", but I'm a little bit concerned with the size of the log file being generated. Plus, since it has only happened in the past every six months or so, that's potentially a long time to run debug mode. I guess maybe a better log rotation scheme is in the cards for me.
I'll keep digging at this and continue with my upgrade plans, but if anyone has other ideas on things to check, I'm all ears. Thank You for your time.
What I'm really looking for is suggestions on how to debug or do a post mortem. My servers are running Nagios Core 4.3.4 on RHEL6.4. What I've done so far is set "daemon_dumps_core=1" in the nagios.cfg file, but it hasn't generated a core file yet. I have plans to update to RHEL7.5 and the latest Nagios Core, but I'm really looking for any other tips on how to track down what might be causing the issue. The other thing I've toyed around with is setting the "debug_level=-1" and "debug_verbosity=2", but I'm a little bit concerned with the size of the log file being generated. Plus, since it has only happened in the past every six months or so, that's potentially a long time to run debug mode. I guess maybe a better log rotation scheme is in the cards for me.
I'll keep digging at this and continue with my upgrade plans, but if anyone has other ideas on things to check, I'm all ears. Thank You for your time.