Bug 1929568

Summary: check_disk incorrect performance data (fixed upstream)
Product: [Fedora] Fedora EPEL Reporter: Claudio Kuenzler <napsty>
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, extras-orphan, herrold, lemenkov, smooge, swilkerson
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: ---
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:

Description Claudio Kuenzler 2021-02-17 07:52:30 UTC
Description of problem:

The check_disk plugin (nagios-plugins-disk) contains a bug which was introduced in upstream 2.3.0 (check_disk: Add support for base-10 units kB, MB, GB, TB; rename base-2 units to KiB, MiB, GiB, TiB). 

The bug is reported upstream in https://github.com/nagios-plugins/nagios-plugins/issues/518 and was fixed in nagios-plugins 2.3.2 (check_disk: Change unit calculations to always use binary units for backward compatibility (#518)). 

However the EPEL package of nagios-plugins refers to version 2.3.3 but still contains this bug.

Unfortunately the incorrect UOM value in the performance data prevents data to be written into a graph database.

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

Name        : nagios-plugins-disk
Arch        : x86_64
Version     : 2.3.3
Release     : 2.el7
Size        : 86 k
Repo        : installed
From repo   : epel
Summary     : Nagios Plugin - check_disk
URL         : https://www.nagios-plugins.org/
License     : GPLv2+
Description : Provides check_disk support for Nagios.

How reproducible:

Run the plugin and check the performance data output.

/usr/lib/nagios/plugins/check_disk -w 15% -c 5% -W 15% -K 5% -p /
DISK OK - free space: / 8640 MiB (76.21% inode=95%);| /=2696MiB;10171;11368;0;11967

Steps to Reproduce:
1. Run /usr/lib/nagios/plugins/check_disk -w 15% -c 5% -W 15% -K 5% -p /

Actual results:

DISK OK - free space: / 8640 MiB (76.21% inode=95%);| /=2696MiB;10171;11368;0;11967

Expected results:

DISK OK - free space: / 8640 MiB (76.21% inode=95%);| /=2696MB;10171;11368;0;11967

Note the difference between MiB and MB. Even the Nagios Plugin developer guidelines require the UOM as (K|M|G)B, not MiB.


Additional info:


A workaround is to use additional parameter "-m" but the default output should already be working.

Comment 1 Claudio Kuenzler 2021-02-17 16:42:35 UTC
Actually the bug is still present in nagios-plugins upstream project.

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