Snapshot Creation

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rpatricio
Posts: 22
Joined: Thu Nov 29, 2018 1:31 pm

Snapshot Creation

Post 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?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Snapshot Creation

Post by scottwilkerson »

What version of Nagios XI are you running?
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Snapshot Creation

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
rpatricio
Posts: 22
Joined: Thu Nov 29, 2018 1:31 pm

Re: Snapshot Creation

Post by rpatricio »

Hi Scott,

I found this line. It´s ok if I remove it, or can cause any trouble on my nagios config?
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Snapshot Creation

Post 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";
rpatricio
Posts: 22
Joined: Thu Nov 29, 2018 1:31 pm

Re: Snapshot Creation

Post by rpatricio »

Thanks for explain ssax.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: Snapshot Creation

Post by lmiltchev »

@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!
rpatricio
Posts: 22
Joined: Thu Nov 29, 2018 1:31 pm

Re: Snapshot Creation

Post by rpatricio »

It´s ok. You can lock.
Locked