Backup NagiosXI without perfdata

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
neo_infraestructura
Posts: 61
Joined: Wed Jan 17, 2018 3:55 pm

Backup NagiosXI without perfdata

Post 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?
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Backup NagiosXI without perfdata

Post by benjaminsmith »

Hello @neo_infrastructure,

The backup script, backup_xi.sh, is located in /usr/local/nagiosxi/scripts/.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Backup NagiosXI without perfdata

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Backup NagiosXI without perfdata

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
neo_infraestructura
Posts: 61
Joined: Wed Jan 17, 2018 3:55 pm

Re: Backup NagiosXI without perfdata

Post by neo_infraestructura »

that worked! Thanks for the help.

Please close this topic.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Backup NagiosXI without perfdata

Post by benjaminsmith »

Hi @neo_infraestructura
that worked! Thanks for the help.
Please close this topic.
Great. We''ll close this out.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked