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?
Backup NagiosXI without perfdata
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Backup NagiosXI without perfdata
Hello @neo_infrastructure,
The backup script, backup_xi.sh, is located in /usr/local/nagiosxi/scripts/.
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!
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
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.
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!
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
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:
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!
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
that worked! Thanks for the help.
Please close this topic.
Please close this topic.
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Backup NagiosXI without perfdata
Hi @neo_infraestructura
Great. We''ll close this out.that worked! Thanks for the help.
Please close this topic.
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!
Be sure to check out our Knowledgebase for helpful articles and solutions!