This support forum board is for support questions relating to
Nagios XI , our flagship commercial network monitoring solution.
jkinning
Posts: 747 Joined: Wed Oct 09, 2013 2:54 pm
Post
by jkinning » Wed Apr 05, 2017 8:34 am
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
Post
by SteveBeauchemin » Wed Apr 05, 2017 10:20 am
From running this command
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
jkinning
Posts: 747 Joined: Wed Oct 09, 2013 2:54 pm
Post
by jkinning » Wed Apr 05, 2017 2:13 pm
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.
mcapra
Posts: 3739 Joined: Thu May 05, 2016 3:54 pm
Post
by mcapra » Wed Apr 05, 2017 4:20 pm
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.
jkinning
Posts: 747 Joined: Wed Oct 09, 2013 2:54 pm
Post
by jkinning » Thu Apr 06, 2017 5:58 am
Yeah, you can close this.