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!
Backing up config
Re: Backing up config
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
You could grab the entire nagios/ dir if you really want but I figured knowing what's actually contained where might help
Re: Backing up config
Awesome, thank you so much!
Re: Backing up config
I am attempting to delete a host, but Nagios won't remove it. write the necessary steps delete host from nagios