Hi All,
My NAgios is creating snapshot by himself, without any apply being given and no human interaction. Somebody knows how this can happen?
Snapshot Creation
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Snapshot Creation
What version of Nagios XI are you running?
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Snapshot Creation
Prior to 5.5.3 there was an automated process that would make a checkpoint at the interval specified in the config.inc.php
Code: Select all
"nom_checkpoint_interval" => 1440, // time (in minutes) between nom checkpoints
Re: Snapshot Creation
Hi Scott,
I found this line. It´s ok if I remove it, or can cause any trouble on my nagios config?
I found this line. It´s ok if I remove it, or can cause any trouble on my nagios config?
Re: Snapshot Creation
XI still uses that line, please leave it in there.
You can increase it if you want to limit it but you should leave it in there so that you have checkpoints created with the latest good information.
I looked at the /usr/local/nagiosxi/cron/nom.php file which is run from /etc/cron.d/nagiosxi, you can see it still being used in the latest XI:
You can increase it if you want to limit it but you should leave it in there so that you have checkpoints created with the latest good information.
I looked at the /usr/local/nagiosxi/cron/nom.php file which is run from /etc/cron.d/nagiosxi, you can see it still being used in the latest XI:
Code: Select all
$cpinterval = $cfg['component_info']['nagioscore']['nom_checkpoint_interval'];
$docp = false;
$lastcp = get_meta(METATYPE_NONE, 0, "last_nom_nagioscore_checkpoint");
if ($lastcp == null) {
$docp = true;
} else {
if ($now > ($lastcp + (intval($cpinterval) * 60))) {
$docp = true;
}
}
if (intval($cpinterval) == 0) {
$docp = false;
}
if ($docp) {
// Config was good, so create a checkpoint
$cmdline = $script_dir."/nom_create_nagioscore_checkpoint_cond.sh";
Re: Snapshot Creation
Thanks for explain ssax.
Re: Snapshot Creation
@rpatricio, is it OK to lock this thread or you have more questions?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Snapshot Creation
It´s ok. You can lock.