Page 1 of 1
Config snapshots
Posted: Wed May 29, 2013 9:51 am
by BanditBBS
Ok, I have a weird thing happening. Daily at 8:00am I have a script that runs(updates some static config files) and the final line is it kicking off the script that is the same as "Apply configuration."
Well, in the list of config snapshots I see one created daily at 8am as expected. I can also see in /var/log/messages that the script is run. The issue I am seeing, is every day at 9:00am another config snapshot is being created. Nothing that I know of is kicking that off and the nagios process is not being restarted either, nothing is in the log. The interesting part is, today the config snapshot was 9:06, yesterday was 9:05, day before 9:04 and so on.... Is there anything in XI that would be doing this?
Re: Config snapshots
Posted: Wed May 29, 2013 12:41 pm
by slansing
I see the exact same phenomenon on my system here, this has been in effect for quite some time, I believe it is a part of the scheduled nagios cron's and happens each morning, it is odd though.. that it the time it is ran increases by a minute each day.. and in some cases only a millisecond..
Re: Config snapshots
Posted: Wed May 29, 2013 12:44 pm
by BanditBBS
slansing wrote:I believe it is a part of the scheduled nagios cron's
You believe? Shouldn't you
know? LOL
Ok, as long as it isn't something strange on my end, I'm good with it. Feel free to lock this up.
Re: Config snapshots
Posted: Wed May 29, 2013 12:49 pm
by slansing
Well, when I look into it I will know, off the top of my head I do not as most of them are not documented, and I was not around when they were
added.

Just giving speculation so you don't sit here without an answer all day.
Re: Config snapshots
Posted: Wed May 29, 2013 12:51 pm
by BanditBBS
Hopefully you read my humor in my "know" comment

I appreciate the reply!
Re: Config snapshots
Posted: Wed May 29, 2013 3:48 pm
by slansing
Yeah I caught that, though we all know how hard it is tell sarcasm over text,

.
This whole snapshot business in the morning is part of a nagios cron that is found in:
it is the nom.php cron, and it's time of running comes directly from it's line within:
Code: Select all
/usr/local/nagiosxi/html/config.inc.php
This line reads:
Code: Select all
"nom_checkpoint_interval" => 1440, // time (in minutes) between nom checkpoints
Simply change that number, restart apache for assurance, and you should be all set.
Re: Config snapshots
Posted: Thu May 30, 2013 7:48 am
by BanditBBS
I'm not concerned about it and don't care if it is done daily. I was just making sure it was by design. Since I do that custom script daily to handle on-call rotation, I just wanted to make sure it wasn't me somehow doing it. I investigated the heck out of it and was 99.9% sure I wasn't the cause, but there is always that sliver of a chance. Thanks for making sure!