JasonRivers / Docker-Nagios

Docker image for Nagios
MIT License
230 stars 252 forks source link

Docker for windows with K8S compatibility #102

Open rontidd opened 5 years ago

rontidd commented 5 years ago

OK Windows is stupid.

I have Docker for windows with default docker containers going to Kubernetes. I also want to save some of that data (K8S by design blows up everything every pod launch) SO I exported all your dirs to my WINDOWS file system.

FIRST ISSUE : Windows no likey named pipes or sockets. You have to move nagios.qh and nagios.cmd inside the container - I put mine in /opt/nagios/

SECOND ISSUE: Nagios graph won't work because the ngshared.pm moves the /opt/nagios/var/perfdata.log file to perfdata.log.nagiosgraph WINDOWS no likey the extra extension. Changing ngshared.pm to use a _ vs a . did the trick for me. my $worklog = $fn . '_nagiosgraph';

Other than Windows being stupid.. great container - thanks

rontidd commented 5 years ago

well that worked for a while then stopped graphing... will provide more info as i get it.