Page 1 of 1

Docker

Posted: Wed Apr 05, 2017 8:34 am
by jkinning
I have a couple Linux (SLES) servers which I am monitoring just fine but have since installed and configured Docker. I am now getting this message for the Disk Usage check.

Code: Select all

DISK CRITICAL - /var/lib/docker/containers/d4dac090c11d21093ab43ae0bd997513413a4035d3c6e7050b615eb8a0e50a24/shm is not accessible: Permission denied
My check is check_nrpe -H <hostname> -c check_disk -a '-w 10% -c 5% -x /dev -x /dev/shm -x /sys/kernel/debug/tracing'

Wondering if I can exclude the /var/lib/docker from being checked. I have tried the -x /var/lib/docker but that doesn't appear to do anything.

Code: Select all

./check_nrpe -H <hostname> -c check_disk -a '-w 10% -c 5% -x /dev -x /dev/shm -x /sys/kernel/debug/tracing'
DISK CRITICAL - /var/lib/docker/containers/d4dac090c11d21093ab43ae0bd997513413a4035d3c6e7050b615eb8a0e50a24/shm is not accessible: Permission denied
./check_nrpe -H <hostname> -c check_disk -a '-w 10% -c 5% -x /dev -x /dev/shm -x /sys/kernel/debug/tracing -x /var/lib/docker'
DISK CRITICAL - /var/lib/docker/containers/d4dac090c11d21093ab43ae0bd997513413a4035d3c6e7050b615eb8a0e50a24/shm is not accessible: Permission denied

Re: Docker

Posted: Wed Apr 05, 2017 10:20 am
by SteveBeauchemin
From running this command

Code: Select all

./check_disk --help
I see

Code: Select all

 -I, --ignore-eregi-path=PATH, --ignore-eregi-partition=PARTITION
    Regular expression to ignore selected path/partition (case insensitive) (may be repeated)
 -i, --ignore-ereg-path=PATH, --ignore-ereg-partition=PARTITION
    Regular expression to ignore selected path or partition (may be repeated)
So there are 2 ways to do the ignore.

Steve B

Re: Docker

Posted: Wed Apr 05, 2017 1:13 pm
by mcapra
Thanks @SteveBeauchemin!

@jkinning let us know if the ignore option isn't working.

Re: Docker

Posted: Wed Apr 05, 2017 2:13 pm
by jkinning
Yeah, that appears to have worked but then it messes up the rest of my hosts in the service template. Might need to create a new one for Docker instances.

Re: Docker

Posted: Wed Apr 05, 2017 4:20 pm
by mcapra
Did you have additional questions regarding the original use case? We could take a look at the templates if you like, but it sounds like you've already got that figured out.

Re: Docker

Posted: Thu Apr 06, 2017 5:58 am
by jkinning
Yeah, you can close this.