Bug 73335

Summary: diskcheck ignores configurtion "defaultCutoff=xx"
Product: [Retired] Red Hat Linux Reporter: Dirk Czirpka <dirk>
Component: diskcheckAssignee: Harald Hoyer <harald>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 7.3CC: ivan
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-05-09 12:42:53 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dirk Czirpka 2002-09-03 05:33:33 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)

Description of problem:
After updade from diskcheck-1.1-1.noarch.rpm (this rpm works) to diskcheck-1.2-
1.noarch.rpm or diskcheck-1.3-2.noarch.rpm is not working any more.

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


How reproducible:
Always

Steps to Reproduce:
1. Upgrade from RH 7.2 to RH 7.3 (update to diskcheck-1.3-2)
2. Set "defaultCutoff=10" (some partition has more than 10% used)
3. Exec "/etc/cron.hourly/diskcheck"
=> no mail send

another try:
1. Install an RH 7.3 out of the box
2. Set "defaultCutoff=10" (some partition has more than 10% used)
3. Exec "/etc/cron.hourly/diskcheck"
=> no mail send	

Actual Results:  no mail send

Expected Results:  mail about low disk space

Additional info:

Comment 1 Harald Hoyer 2002-11-05 11:35:14 UTC
Had to make the following changes...
if cutoff.has_key(volume):
        if (nPct < long(cutoff[volume])): continue
    elif cutoff.has_key(mountpt):
        if (nPct < long(cutoff[mountpt])): continue
    elif (nPct < long(conf['defaultCutoff'])): continue

Note the use of the long() typecast.

Comment 2 Harald Hoyer 2002-11-05 12:29:08 UTC
should be fixed in diskcheck >= 1.4

Comment 3 Harald Hoyer 2003-05-09 12:41:51 UTC
*** Bug 90528 has been marked as a duplicate of this bug. ***