Backing up config

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
theCzar
Posts: 2
Joined: Tue May 08, 2012 12:00 pm

Backing up config

Post by theCzar »

To start - I just inherited a primarily M$ environment (and being a windows admin myself). We do have a Nagios Core box running, however, that monitors all of our sites and services. I would like to take a backup of the configuration running on this box. Can I just use a program like WinSCP and copy the entire /etc/nagios/ folder to my backup location? Do I need to stop the nagios service first? Is this a "full" backup? (ie, would that copy all modules/plugins/what have you?)

Like I said, I'm a Windows admin so any responses in the most elementary of terminology/explanations would be GREATLY appreciated.

Thanks!
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: Backing up config

Post by jsmurphy »

The answer to that sort of depends, if you are using a stock standard Nagios core install without Nconf or NagiosQL config managers then you can simply do a backup of /path/to/nagios/etc/* with winscp which will get your config data... if you want your state history data as well then backup nagios/var/archive/* and a backup of nagios/libexec/* will get the plugins.

You could grab the entire nagios/ dir if you really want but I figured knowing what's actually contained where might help ;)
theCzar
Posts: 2
Joined: Tue May 08, 2012 12:00 pm

Re: Backing up config

Post by theCzar »

Awesome, thank you so much!
tadele
Posts: 1
Joined: Mon Oct 05, 2015 8:53 am

Re: Backing up config

Post by tadele »

I am attempting to delete a host, but Nagios won't remove it. write the necessary steps delete host from nagios
Locked