what files to take as a backup (Manual copy via WinSCP)

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
zaji_nms
Posts: 616
Joined: Tue Oct 16, 2012 12:28 am

what files to take as a backup (Manual copy via WinSCP)

Post by zaji_nms »

Dear Team

As per our top SystemAdmin, he is taking care of Database backup, but he told me take back of other files, what me taking care as below, please let me know what are the files I should copy other than these (below), or let me know if me doing copy unnecessary files (you know unnecessary files copying in my external hard disk taking space and time) so your valuable advice will save my time and me will be in tension free in case total Nagios failure.

/etc/hosts
/etc/mrtg/mrtg.cfg
/usr/local/nagios/etc/hosts
/usr/local/nagios/etc/services
/usr/local/nagios/share/perfdata <= its taking time, plz let me know exact files I will copy not full directory
/usr/local/nagvis <= don't know which files I have to take backup (its big folder), images, icons , graphs

Regards
Zajil NMS
zaji_nms
Posts: 616
Joined: Tue Oct 16, 2012 12:28 am

Re: what files to take as a backup (Manual copy via WinSCP)

Post by zaji_nms »

Dear Expert

Is there anyone doing like this (manual copy) or having any PHP or BATCH file, so I will tell my SysAdmin, he will take care of Nagios backup.

Regards
Zajil NMS
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: what files to take as a backup (Manual copy via WinSCP)

Post by lmiltchev »

What is the Nagios XI version that you are currently using? There is a "Scheduled Backup" component in Nagios XI 2014R1.x that you could use.
You can open the"/usr/local/nagiosxi/scripts/backup_xi.sh" script and see what is being backed up.
Be sure to check out our Knowledgebase for helpful articles and solutions!
zaji_nms
Posts: 616
Joined: Tue Oct 16, 2012 12:28 am

Re: what files to take as a backup (Manual copy via WinSCP)

Post by zaji_nms »

Dear, version is : Nagios XI 2012R1.8
Zajil NMS
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: what files to take as a backup (Manual copy via WinSCP)

Post by tmcdonald »

It would help if we knew what the goal of the backup is. Are you looking to only save the object configs? Or do you need a full backup including the Nagios XI PHP files?

The script lmiltchev posted will perform a full backup.

I would also strongly recommend updating to the latest version of XI as there have been numerous bugfixes and improvements since 2012R1.8.
Former Nagios employee
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: what files to take as a backup (Manual copy via WinSCP)

Post by lmiltchev »

You could just schedule the "/usr/local/nagiosxi/scripts/backup_xi.sh" script to run on a cron. By default, the backups are placed in "/store/backups/nagiosxi/" directory. You could then move the *.tar.gz" files wherever you like. I would recommend upgrading to the latest Nagios XI version though. There are many improvements and bug fixes - you can view the change log here:

http://assets.nagios.com/downloads/nagi ... S-2014.TXT
Be sure to check out our Knowledgebase for helpful articles and solutions!
zaji_nms
Posts: 616
Joined: Tue Oct 16, 2012 12:28 am

Re: what files to take as a backup (Manual copy via WinSCP)

Post by zaji_nms »

Thanks TMCDONALD & lmiltchev ,, I will check with my SysAdmin and you pointed good think PHP files backup, yes we have developed many PHP script to fetch many OID result in Nagios as a alert.

Our Admin aware about new release and sure we will go but you know its involve some commercial. :)

Regards
Zajil NMS
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: what files to take as a backup (Manual copy via WinSCP)

Post by lmiltchev »

Sure. Let us know if you need any more help. I am locking this post. If you have more questions, please, start a new thread.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked