check_disk 2.2.1 broken in latest EPEL release

This forum is intended for the discussion of Nagios plugin development. Feature requests, patches, bug fixes, and all types of development-related discussions are welcome!

NOTE: The SourceForge.net nagiosplug-devel mailing list has been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

check_disk 2.2.1 broken in latest EPEL release

Postby pete42 » Thu Aug 24, 2017 9:00 am

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

Postby pete42 » Thu Aug 24, 2017 9:17 am

Update: I opened a related issue in GitHub (#313).
pete42
 
Posts: 2
Joined: Thu Aug 24, 2017 8:35 am

Re: check_disk 2.2.1 broken in latest EPEL release

Postby scottwilkerson » Thu Aug 24, 2017 11:53 am

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
User avatar
scottwilkerson
CTO
 
Posts: 7620
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises


Return to Nagios Plugin Development

Who is online

Users browsing this forum: No registered users and 3 guests