Page 1 of 1

Backup NagiosXI without perfdata

Posted: Fri Apr 05, 2019 8:59 am
by neo_infraestructura
Hi there!

I'm creating a QA device to do some tests to the hosts and services that I have registered in my primary NagiosXI system, but this QA machine is significatively small, so to load a backup from my first Nagios I need to leave out the history or perfdata.
Is there an easy way to do this?

Re: Backup NagiosXI without perfdata

Posted: Fri Apr 05, 2019 9:51 am
by benjaminsmith
Hello @neo_infrastructure,

The backup script, backup_xi.sh, is located in /usr/local/nagiosxi/scripts/.

Re: Backup NagiosXI without perfdata

Posted: Fri Apr 05, 2019 12:04 pm
by benjaminsmith
Hello @neo_infrastructure,

I just edited the last post. I'm going to research this a bit more, and will get back to you later today.

Re: Backup NagiosXI without perfdata

Posted: Fri Apr 05, 2019 12:29 pm
by benjaminsmith
Hi @neo_infrastructure,

Looks like the best way is to use the exclude option when the script creates the Nagios core archive. Please backup your system before making any changes.

Example:

Code: Select all

echo "Backing up Nagios Core..."
tar czfp $mydir/nagios.tar.gz /usr/local/nagios --exclude=/usr/local/nagios/share/perfdata

Re: Backup NagiosXI without perfdata

Posted: Thu Apr 18, 2019 9:38 am
by neo_infraestructura
that worked! Thanks for the help.

Please close this topic.

Re: Backup NagiosXI without perfdata

Posted: Thu Apr 18, 2019 9:41 am
by benjaminsmith
Hi @neo_infraestructura
that worked! Thanks for the help.
Please close this topic.
Great. We''ll close this out.