Page 1 of 1

Snapshot Creation

Posted: Thu Nov 29, 2018 6:17 pm
by rpatricio
Hi All,

My NAgios is creating snapshot by himself, without any apply being given and no human interaction. Somebody knows how this can happen?

Re: Snapshot Creation

Posted: Fri Nov 30, 2018 12:21 pm
by scottwilkerson
What version of Nagios XI are you running?

Re: Snapshot Creation

Posted: Fri Nov 30, 2018 12:24 pm
by scottwilkerson
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

Posted: Tue Dec 11, 2018 1:28 pm
by rpatricio
Hi Scott,

I found this line. It´s ok if I remove it, or can cause any trouble on my nagios config?

Re: Snapshot Creation

Posted: Tue Dec 11, 2018 5:31 pm
by ssax
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:

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

Posted: Thu Dec 20, 2018 2:52 pm
by rpatricio
Thanks for explain ssax.

Re: Snapshot Creation

Posted: Fri Dec 21, 2018 2:09 pm
by lmiltchev
@rpatricio, is it OK to lock this thread or you have more questions?

Re: Snapshot Creation

Posted: Wed Feb 06, 2019 8:50 am
by rpatricio
It´s ok. You can lock.