4.0.1 dumps daily log multiple times

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
DaijoubuKun
Posts: 4
Joined: Wed Nov 20, 2013 10:33 pm

4.0.1 dumps daily log multiple times

Post 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.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: 4.0.1 dumps daily log multiple times

Post 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.
DaijoubuKun
Posts: 4
Joined: Wed Nov 20, 2013 10:33 pm

Re: 4.0.1 dumps daily log multiple times

Post 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.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: 4.0.1 dumps daily log multiple times

Post 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.
DaijoubuKun
Posts: 4
Joined: Wed Nov 20, 2013 10:33 pm

Re: 4.0.1 dumps daily log multiple times

Post 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.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: 4.0.1 dumps daily log multiple times

Post 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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
DaijoubuKun
Posts: 4
Joined: Wed Nov 20, 2013 10:33 pm

[solved] Re: 4.0.1 dumps daily log multiple times

Post 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,
Locked