[Nagiosplug-devel] [ nagiosplug-Bugs-2973603 ] disk_check, -g group, failing calculations
SourceForge.net
noreply at sourceforge.net
Mon Aug 16 01:38:36 CEST 2010
Bugs item #2973603, was opened at 2010-03-20 02:52
Message generated for change (Settings changed) made by psychotrahe
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=2973603&group_id=29880
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: General plugin execution
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Bekar (bekar)
>Assigned to: Matthias Eble (psychotrahe)
Summary: disk_check, -g group, failing calculations
Initial Comment:
>From a tinderbox build:
# Failed test 'grouping: exit warning if the sum of free megs on mp1+mp2 is between -w and -c '
# at ./t/check_disk.t line 312.
# got: 0
# expected: 1
# Looks like you failed 1 test of 78.
..
Testing: ./check_disk -w 350 -c 348 -g group -p / -p /boot
not ok 68 - grouping: exit warning if the sum of free megs on mp1+mp2 is between -w and -c
Manually running the test and the check_disk command used to get the amount of disk space in the test shows:
[root at dev00 plugins]# ./check_disk -w 350 -c 348 -p / -p /boot
DISK CRITICAL - free space: / 275 MB (15% inode=91%); /boot 74 MB (80% inode=99%);| /=1518MB;1540;1542;0;1890 /boot=18MB;-252;-250;0;98
[root at dev00 plugins]# ./check_disk -w 350 -c 348 -g group -p / -p /boot
DISK OK - free space: group 500 MB (26% inode=91%);| group=1386MB;1639;1641;0;1989
The test is doing the calculation properly (349), adding one and taking one for warning / critical.
The check_disk it's self is coming up with the wrong number for free space in the group.
----------------------------------------------------------------------
>Comment By: Matthias Eble (psychotrahe)
Date: 2010-08-16 01:38
Message:
Hi Bekar,
thanks for your report and running the test cases.
Could you please send the failing grouping call with -vvvv added? This
should ease finding the problem.
Matthias
----------------------------------------------------------------------
Comment By: Bekar (bekar)
Date: 2010-03-20 02:59
Message:
Bloody hell, bad reporting there, sorry.
Plugin Version (-V output): check_disk v1.4.14-65-ge11b (nagios-plugins
1.4.14)
Operating System: Linux (Centos 5)
Architecture: x86_64
Compiler: gcc version 4.1.2 20080704 (Red Hat 4.1.2-46)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=2973603&group_id=29880
More information about the Devel
mailing list