Page 1 of 1

Docker nagios container additionaly volumes?

Posted: Tue Jul 26, 2016 6:20 am
by henryhollow
Hello!

I'm using nagios (3.5.1) currently within a docker container installed trough ubuntu 14.04 LTS via apt.

I've mapped the configuration directory from within the docker container to my host like this:

Code: Select all

 
/opt/docker_data/nagios/nagios3:/etc/nagios3
I'm now wondering which additional directories do need to be persistent for to not lose the cached/monitored data information, when restarting the container? Can someone may give me a hint which other directories need/should to be persistent too? Cause curretnly I'm losing all information when I restart the dpcker container of course.

thanks a lot!

Re: Docker nagios container additionaly volumes?

Posted: Wed Jul 27, 2016 2:09 am
by Box293
I've not used docker however...

This documentation explains the main files used by Nagios.
https://assets.nagios.com/downloads/nag ... gmain.html

retention.dat, the log files, all the configuration files, pre-cached object files, resource file.

Honestly everything under the nagios directory and it's subdirectories.