Bug 1859993

Summary: check_disk -H flag doesn't work with -e flag
Product: [Fedora] Fedora EPEL Reporter: Scott <slfields>
Component: nagios-pluginsAssignee: Guido Aulisi <guido.aulisi>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: epel7CC: b.heden, herrold, lemenkov, smooge, swilkerson
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Scott 2020-07-23 13:34:43 UTC
Description of problem:

-H flag doesn't work with -e flag


Version-Release number of selected component (if applicable):

nagios-plugins-disk-2.3.3-2

How reproducible:

Easy

Steps to Reproduce:
1. run "# /usr/lib64/nagios/plugins/check_disk -N ext4 -Hew <relevant value>%"
2.
3.

Actual results:

# /usr/lib64/nagios/plugins/check_disk -N ext4 -Hew 90%
[root@ftwlxngsp001 windows]# /usr/lib64/nagios/plugins/check_disk -N ext4 -Hew 90%
Warning: less than 90.0% is free on one or more file systems

Status     Free   Avail   Total   Type   Mount Point
---------------------------------------------------------------
WARNING   69.9%    312B    476B   ext4   /boot
WARNING   59.5%   3.3kB   5.8kB   ext4   /usr
WARNING   47.2%   4.4kB   9.8kB   ext4   /var
OK        94.2%    856B    975B   ext4   /usr/local
OK        97.7%   2.7kB   2.9kB   ext4   /tmp
OK        99.5%   5.5kB   5.8kB   ext4   /home
OK        98.8%   8.1kB   8.6kB   ext4   /
OK        93.1%   8.6kB   9.8kB   ext4   /opt

Expected results:

Warning: less than 90.0% is free on one or more file systems

Status     Free   Avail   Total   Type   Mount Point
---------------------------------------------------------------
WARNING   69.9%    312B    476B   ext4   /boot
WARNING   59.5%   3.3kB   5.8kB   ext4   /usr
WARNING   47.2%   4.4kB   9.8kB   ext4   /var




Additional info:

Comment 1 Fedora Admin user for bugzilla script actions 2021-02-20 00:05:47 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.