Config snapshots

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Config snapshots

Post 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?
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Config snapshots

Post 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..
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Config snapshots

Post 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.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Config snapshots

Post 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.
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Config snapshots

Post by BanditBBS »

Hopefully you read my humor in my "know" comment :) I appreciate the reply!
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Config snapshots

Post by slansing »

Yeah I caught that, though we all know how hard it is tell sarcasm over text, :D.

This whole snapshot business in the morning is part of a nagios cron that is found in:

Code: Select all

/etc/cron.d/nagiosxi
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.
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Config snapshots

Post 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!
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
Locked