check_disk 2.2.1 broken in latest EPEL release

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
pete42
Posts: 2
Joined: Thu Aug 24, 2017 8:35 am

check_disk 2.2.1 broken in latest EPEL release

Post by pete42 »

Hi,

I found a problem with the latest check_disk release in EPEL. Version 2.2.1-1 is OK, in version 2.2.1-4git the -C/--check option seems to be broken:

2.2.1-1:

[code]
[root@master1 ~]# /usr/lib64/nagios/plugins/check_disk -V
check_disk v2.2.1 (nagios-plugins 2.2.1)

[root@master1 ~]# yum list installed | grep nagios-plugins-disk
nagios-plugins-disk.x86_64 2.2.1-1.el7 @stlg-epel-test
nagios-plugins-disk_smb.x86_64 2.2.1-1.el7 @stlg-epel-test

[root@master1 ~]# /usr/lib64/nagios/plugins/check_disk -C
DISK OK - free space: / 28202 MB (74.48% inode=100%); /dev 1413 MB (100.00% inode=100%); /dev/shm 1423 MB (99.99% inode=100%); /run 1279 MB (89.86% inode=100%); /sys/fs/cgroup 1423 MB (100.00% inode=100%); /boot 875 MB (86.37% inode=100%); /vagrant 88040 MB (9.24% inode=100%); /run/user/1000 284 MB (100.00% inode=100%);| /=9658MB;;;0;37861 /dev=0MB;;;0;1413 /dev/shm=0MB;;;0;1423 /run=144MB;;;0;1423 /sys/fs/cgroup=0MB;;;0;1423 /boot=138MB;;;0;1014 /vagrant=864673MB;;;0;952713 /run/user/1000=0MB;;;0;284
[/code]

2.2.1-4git:

[code]
[root@master1 ~]# /usr/lib64/nagios/plugins/check_disk -V
check_disk v2.2.1 (nagios-plugins 2.2.1)

[root@master1 ~]# yum list installed | grep nagios-plugins-disk
nagios-plugins-disk.x86_64 2.2.1-4git.el7 @stlg-epel-test
nagios-plugins-disk_smb.x86_64 2.2.1-4git.el7 @stlg-epel-test

[root@master1 ~]# /usr/lib64/nagios/plugins/check_disk -C
DISK CRITICAL - is not accessible: No such file or directory
[/code]

OS is CentOS 7.3 on x86_64. The problem can be reproduced on all of my machines.
pete42
Posts: 2
Joined: Thu Aug 24, 2017 8:35 am

Re: check_disk 2.2.1 broken in latest EPEL release

Post by pete42 »

Update: I opened a related issue in GitHub (#313).
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_disk 2.2.1 broken in latest EPEL release

Post by scottwilkerson »

pete42 wrote:Update: I opened a related issue in GitHub (#313).
Thank you, as this is likely an EPEL bug I posted a bugzilla report
https://bugzilla.redhat.com/show_bug.cgi?id=1484963
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked