Page 1 of 1

4.0.1 dumps daily log multiple times

Posted: Wed Nov 20, 2013 10:41 pm
by DaijoubuKun
Hello everyone, This isn't a huge issue, but kind of annoying.

At the end of the day when Nagios dumps status information into /var/log/messages, it does is between 19 and 23 times. Before the upgrade to 4.0.1 I was running 3.5.4. Any idea why that daily dump would repeat over and over again? I have checked all log and status files, but I see no reason for it to happen.

I am running one addon, which is NagiosGraph, and it was installed before the upgrade and reinstalled after. Thanks.

Re: 4.0.1 dumps daily log multiple times

Posted: Thu Nov 21, 2013 11:58 am
by slansing
Simple question but a good place to start, is a cron, or something else, changing your time settings at that time? Essentially this may cause the log rotation to repeat as the time is set further back.

Re: 4.0.1 dumps daily log multiple times

Posted: Thu Nov 21, 2013 6:24 pm
by DaijoubuKun
Going back over all my logs, the only change made at that time was nagios being upgraded. I'm not sure what else I can do besides wiping it and starting over (which I have been temped to do). When I first setup nagios, I didn't really know what I was doing, and now knowing what I do, it might be worth it to start over and simplify the configuration.

Re: 4.0.1 dumps daily log multiple times

Posted: Fri Nov 22, 2013 10:11 am
by slansing
It's up to you, we can continue to troubleshoot cron rotation issues, and logging or you could backup your config files and bring up another server along side this one, then transplant the configs.

Re: 4.0.1 dumps daily log multiple times

Posted: Fri Nov 22, 2013 8:23 pm
by DaijoubuKun
It wouldn't hurt to keep trying. It could be something with my configs, but I'm not sure what. Cron is empty, so I know that's not the issue, it has something to do with the nagios setup. I'm going to be performing an upgrade of my server tonight. After it is done I'm sure I will need to rebuild and reinstall nagios.

Re: 4.0.1 dumps daily log multiple times

Posted: Sun Nov 24, 2013 6:48 pm
by sreinhardt
Let us know how the rebuild goes, if it's still an issue could you post your nagios.cfg please. Feel free to sanitize anything that needs to be private.

[solved] Re: 4.0.1 dumps daily log multiple times

Posted: Wed Dec 04, 2013 2:05 am
by DaijoubuKun
I'm not sure exactly how I fixed it, but I did. I rebuild nagios from the ground up. Also, after furthur digging, I believe the issue was actually from a misconfiguration with the nagiosGraph plugin. For every service I was having graphs built for, was another dump in /var/log/messages. So I think we can call this one closed, mostly since it seems to have been an issue with a plugin and not Nagios. Thanks,