Docker

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jkinning
Posts: 747
Joined: Wed Oct 09, 2013 2:54 pm

Docker

Post 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
SteveBeauchemin
Posts: 524
Joined: Mon Oct 14, 2013 7:19 pm

Re: Docker

Post 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
XI 5.7.3 / Core 4.4.6 / NagVis 1.9.8 / LiveStatus 1.5.0p11 / RRDCached 1.7.0 / Redis 3.2.8 /
SNMPTT / Gearman 0.33-7 / Mod_Gearman 3.0.7 / NLS 2.0.8 / NNA 2.3.1 /
NSClient 0.5.0 / NRPE Solaris 3.2.1 Linux 3.2.1 HPUX 3.2.1
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Docker

Post by mcapra »

Thanks @SteveBeauchemin!

@jkinning let us know if the ignore option isn't working.
Former Nagios employee
https://www.mcapra.com/
jkinning
Posts: 747
Joined: Wed Oct 09, 2013 2:54 pm

Re: Docker

Post 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.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Docker

Post 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.
Former Nagios employee
https://www.mcapra.com/
jkinning
Posts: 747
Joined: Wed Oct 09, 2013 2:54 pm

Re: Docker

Post by jkinning »

Yeah, you can close this.
Locked