DISK CRITICAL with docker on RHEL7
Posted: Mon Apr 17, 2017 10:21 am
Hi,
[nagios@xxxxxx1 plugins]$ /home/nagios/plugins/check_disk -l -w 5% -c 3%
DISK CRITICAL - net:[4026532527] is not accessible: No such file or directory
I'm having this issue since I have installed docker on rhel 7 and Nagios disk check is showing as critical for some mounts that are not accessible. I downloaded https://nagios-plugins.org/download/nag ... 1492439288, compiled and built it and tested it out with that version and it also showed the same result.
cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.3 (Maipo)
docker --version
Docker version 1.13.0, build 49bf474
I currently have 2 plugins versions in 2 different folders and whichever user (root or nagios) I use, I get the same result with disk being critical for some mount (not sure if it's a docker mount or not). Please see below for the output details.
[nagios@xxxxxx1 ~]$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 14G 7.8G 5.2G 61% /
devtmpfs 3.9G 0 3.9G 0% /dev
tmpfs 3.9G 0 3.9G 0% /dev/shm
tmpfs 3.9G 377M 3.5G 10% /run
tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
/dev/sdb1 50G 13G 37G 25% /opt
/dev/sda2 4.0G 781M 3.0G 21% /var
tmpfs 782M 0 782M 0% /run/user/1000
/dev/dm-1 99G 766M 93G 1% /opt/docker/devicemapper/mnt/5971f011ed94af7b39b6875624b642ede1915d8c3e88d0e2bd5cfceece0c7f
shm 64M 0 64M 0% /opt/docker/containers/97df6beb3ff84fd7ef3d3c7881197c29aef6dac748e67ccc6a2d28c916950c/shm
/dev/dm-2 99G 451M 93G 1% /opt/docker/devicemapper/mnt/1e81c9d83dd8b0b77ceada51ed92c677eba2429301be2f568fc61903696c8b
shm 64M 0 64M 0% /opt/docker/containers/ea157866c0413a1270c06f87af32480266268298948e2da8e99ade88f4022b/shm
[nagios@xxxxxx1 ~]$ /home/nagios/plugins/check_disk --version
check_disk v2.0.3 (nagios-plugins 2.0.3)
[nagios@xxxxxxx1 ~]$ /home/nagios/plugins/check_disk -l -w 5% -c 3%
DISK CRITICAL - net:[4026532527] is not accessible: No such file or directory
[nagios@xxxxxx1 ~]$ /home/nagios/plugins/check_disk -l -w 5% -c 3% -X devtmpfs -X tmpfs -X /dev/dm-1 -X /dev/dm-2 -X shm
DISK CRITICAL - net:[4026532527] is not accessible: No such file or directory
[nagios@xxxxxx1 ~]$ /usr/local/src/nagios-plugins-2.1.3/plugins/check_disk --version
check_disk v2.1.3 (nagios-plugins 2.1.3)
[nagios@xxxxxx1 ~]$ /usr/local/src/nagios-plugins-2.1.3/plugins/check_disk -l
DISK CRITICAL - net:[4026532527] is not accessible: No such file or directory
[nagios@xxxxxx1 ~]$ /usr/local/src/nagios-plugins-2.1.3/plugins/check_disk -l -w 5% -c 3% -X devtmpfs -X tmpfs -X /dev/dm-1 -X /dev/dm-2 -X shm
DISK CRITICAL - net:[4026532527] is not accessible: No such file or directory
[nagios@xxxxxx1 ~]$ logout
[root@xxxxxx1 plugins]# /home/nagios/plugins/check_disk -l -w 5% -c 3% -X devtmpfs -X tmpfs -X /dev/dm-1 -X /dev/dm-2 -X shm
DISK CRITICAL - net:[4026532527] is not accessible: No such file or directory
[root@xxxxxx1 plugins]# /usr/local/src/nagios-plugins-2.1.3/plugins/check_disk -l -w 5% -c 3% -X devtmpfs -X tmpfs -X /dev/dm-1 -X /dev/dm-2 -X shm
DISK CRITICAL - net:[4026532527] is not accessible: No such file or directory
Is there any remedy for this issue? Any help is greatly appreciated.
Thank You,
Mike
[nagios@xxxxxx1 plugins]$ /home/nagios/plugins/check_disk -l -w 5% -c 3%
DISK CRITICAL - net:[4026532527] is not accessible: No such file or directory
I'm having this issue since I have installed docker on rhel 7 and Nagios disk check is showing as critical for some mounts that are not accessible. I downloaded https://nagios-plugins.org/download/nag ... 1492439288, compiled and built it and tested it out with that version and it also showed the same result.
cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.3 (Maipo)
docker --version
Docker version 1.13.0, build 49bf474
I currently have 2 plugins versions in 2 different folders and whichever user (root or nagios) I use, I get the same result with disk being critical for some mount (not sure if it's a docker mount or not). Please see below for the output details.
[nagios@xxxxxx1 ~]$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 14G 7.8G 5.2G 61% /
devtmpfs 3.9G 0 3.9G 0% /dev
tmpfs 3.9G 0 3.9G 0% /dev/shm
tmpfs 3.9G 377M 3.5G 10% /run
tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
/dev/sdb1 50G 13G 37G 25% /opt
/dev/sda2 4.0G 781M 3.0G 21% /var
tmpfs 782M 0 782M 0% /run/user/1000
/dev/dm-1 99G 766M 93G 1% /opt/docker/devicemapper/mnt/5971f011ed94af7b39b6875624b642ede1915d8c3e88d0e2bd5cfceece0c7f
shm 64M 0 64M 0% /opt/docker/containers/97df6beb3ff84fd7ef3d3c7881197c29aef6dac748e67ccc6a2d28c916950c/shm
/dev/dm-2 99G 451M 93G 1% /opt/docker/devicemapper/mnt/1e81c9d83dd8b0b77ceada51ed92c677eba2429301be2f568fc61903696c8b
shm 64M 0 64M 0% /opt/docker/containers/ea157866c0413a1270c06f87af32480266268298948e2da8e99ade88f4022b/shm
[nagios@xxxxxx1 ~]$ /home/nagios/plugins/check_disk --version
check_disk v2.0.3 (nagios-plugins 2.0.3)
[nagios@xxxxxxx1 ~]$ /home/nagios/plugins/check_disk -l -w 5% -c 3%
DISK CRITICAL - net:[4026532527] is not accessible: No such file or directory
[nagios@xxxxxx1 ~]$ /home/nagios/plugins/check_disk -l -w 5% -c 3% -X devtmpfs -X tmpfs -X /dev/dm-1 -X /dev/dm-2 -X shm
DISK CRITICAL - net:[4026532527] is not accessible: No such file or directory
[nagios@xxxxxx1 ~]$ /usr/local/src/nagios-plugins-2.1.3/plugins/check_disk --version
check_disk v2.1.3 (nagios-plugins 2.1.3)
[nagios@xxxxxx1 ~]$ /usr/local/src/nagios-plugins-2.1.3/plugins/check_disk -l
DISK CRITICAL - net:[4026532527] is not accessible: No such file or directory
[nagios@xxxxxx1 ~]$ /usr/local/src/nagios-plugins-2.1.3/plugins/check_disk -l -w 5% -c 3% -X devtmpfs -X tmpfs -X /dev/dm-1 -X /dev/dm-2 -X shm
DISK CRITICAL - net:[4026532527] is not accessible: No such file or directory
[nagios@xxxxxx1 ~]$ logout
[root@xxxxxx1 plugins]# /home/nagios/plugins/check_disk -l -w 5% -c 3% -X devtmpfs -X tmpfs -X /dev/dm-1 -X /dev/dm-2 -X shm
DISK CRITICAL - net:[4026532527] is not accessible: No such file or directory
[root@xxxxxx1 plugins]# /usr/local/src/nagios-plugins-2.1.3/plugins/check_disk -l -w 5% -c 3% -X devtmpfs -X tmpfs -X /dev/dm-1 -X /dev/dm-2 -X shm
DISK CRITICAL - net:[4026532527] is not accessible: No such file or directory
Is there any remedy for this issue? Any help is greatly appreciated.
Thank You,
Mike