JasonRivers / Docker-Nagios

Docker image for Nagios
MIT License
232 stars 254 forks source link

Define as volumes the etc and var dir of the nagiosgraph installation #41

Closed jtome closed 7 years ago

jtome commented 7 years ago

First of all, congratulations and thanks for this project.

Second, I would like to suggest to define as docker volumes also the directories of Nagiosgraph....

At least in my case I usually have to made some adjusts in the Nagiosgraph configuration in order to support the different services I define in Nagios (in the datasetdb.conf file) and also I think that it is important to be able to persist the graphs generated by Nagiosgraph (that are located in the var directory).

Thanks in advance.

JasonRivers commented 7 years ago

Commit d4d3ea3 should have the changes for this, so the next build should be good to go. As a side note - you can mount any directory within the container even if it's not explicitly mentioned in the volumes.

jtome commented 7 years ago

Thanks a lot @JasonRivers. I will make some tests in order to verify this is working ok