Backup and restore

This board serves as an open discussion and support collaboration point for Nagios XI. NOTE: Nagios XI customers should use the Customer Support forum to obtain expedited support.

Backup and restore

Postby manimurugesan » Wed Jun 19, 2019 6:46 am

Hello Team,

In nagiosxi backup and restore we have below document

https://assets.nagios.com/downloads/nagiosxi/docs/Backing-Up-And-Restoring-Nagios-XI.pdf

but i need to automate the backup and restore process.

I mean backup need to happen automatically and restore as well on mentioned server.

i know we have option ssh,local backup but i don't want to schedule. i need to run any of the script that need to do the all the backup and restore on server .

could you please help me to achieve this
manimurugesan
 
Posts: 112
Joined: Wed Oct 03, 2018 9:15 am

Re: Backup and restore

Postby lmiltchev » Wed Jun 19, 2019 12:34 pm

I must be missing the point here... Why are you trying to restore XI "automatically"? You would be losing all of the changes made between the time you ran the backup and the restore script...

Also, you said:
i know we have option ssh,local backup but i don't want to schedule

No matter if you are doing a backup or restore, if you need it to be "automatic", you would still need to schedule it (have some schedule), e.g. run the script on a cron, etc. Can you elaborate on what exactly you are trying to accomplish?
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!
User avatar
lmiltchev
QA Manager
 
Posts: 12491
Joined: Mon May 23, 2011 12:15 pm

Re: Backup and restore

Postby manimurugesan » Fri Jun 21, 2019 4:54 am

I need script like that need to take backup and automatically need to restore it on my remote server .

is this possible in nagios ?
manimurugesan
 
Posts: 112
Joined: Wed Oct 03, 2018 9:15 am

Re: Backup and restore

Postby lmiltchev » Fri Jun 21, 2019 9:09 am

Since you will be creating backup on one server (old), and restoring XI on another, remote server (new), basically you will be doing a migration. I still don't understand why this (migration) has to be done "automatically"... Anyway, you could probably use ansible for something like this - create an ansible playbook that would:

1. run the backup on the "old" server
2. copy over the backup that was created in step 1 to the "new", remote server
3. run the restore script on the "new" server, restoring from the backup you just transferred

Note: Creating such a playbook is out of scope of nagios support, so you would be on your own with this one. It can be done, even though I don't see a point of doing it.
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!
User avatar
lmiltchev
QA Manager
 
Posts: 12491
Joined: Mon May 23, 2011 12:15 pm

Re: Backup and restore

Postby manimurugesan » Fri Jun 21, 2019 11:33 am

Thanks for your support .
manimurugesan
 
Posts: 112
Joined: Wed Oct 03, 2018 9:15 am

Re: Backup and restore

Postby lmiltchev » Fri Jun 21, 2019 11:43 am

You are welcome! Let us know if you have any further questions.
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!
User avatar
lmiltchev
QA Manager
 
Posts: 12491
Joined: Mon May 23, 2011 12:15 pm

Re: Backup and restore

Postby manimurugesan » Mon Jun 24, 2019 10:30 am

I have few questions

recently i have configured nagios core on my Ubuntu os ,this upuntu instance i have created in my AWS.
i have configured all the devices on my nagios core,

Now i want to configure email notifications on my nagios core i need to receive email to my gmail .

Could you please give me the any document or procedure ,so that i can configure this
manimurugesan
 
Posts: 112
Joined: Wed Oct 03, 2018 9:15 am

Re: Backup and restore

Postby lmiltchev » Mon Jun 24, 2019 4:01 pm

Setting up a mail server on your OS is out of scope of nagios support, however there are many guides/tutorials online for configuring sendmail or postfix. I don't know what version of Ubuntu you are running, but here's a guide on installing and configuring postfix on Ubuntu 16.04:

https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-postfix-on-ubuntu-16-04

Once you have a mail server configured on your machine, you can add contacts, notification commands, etc. Read more about notifications in Nagios here:

https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/4/en/notifications.html
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!
User avatar
lmiltchev
QA Manager
 
Posts: 12491
Joined: Mon May 23, 2011 12:15 pm


Return to Nagios XI

Who is online

Users browsing this forum: MSN [Bot] and 18 guests