Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 79539 - diskcheck -1.2.1 broken after python upgrade
diskcheck -1.2.1 broken after python upgrade
Product: Red Hat Linux
Classification: Retired
Component: diskcheck (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Harald Hoyer
Depends On:
  Show dependency treegraph
Reported: 2002-12-12 16:20 EST by David Dombek
Modified: 2008-05-01 11:38 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-03-10 11:54:04 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description David Dombek 2002-12-12 16:20:17 EST
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; .NET 
CLR 1.0.3705)

Description of problem:
The diskcheck-1.2.1 program does not send out notifications if it is run on a 
fully patched 7.3 system.

I don't know when it broke.

-David Dombek

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

How reproducible:
Didn't try

Steps to Reproduce:
1.install diskcheck-1.2.1 on a RH 7.3 system that has all patches
2.modify /etc/diskcheck.conf to 1% so it will page
3.run diskcheck in /etc/crond.hourly

Actual Results:  no output.  no email.

Expected Results:  send email to root@localhost

Additional info:
Comment 1 Harald Hoyer 2002-12-13 07:21:31 EST
fixed in 1.4-1, should be no problem to run it on 7.3
Comment 2 David Dombek 2002-12-13 08:35:29 EST

Will RedHat make 1.4-1 available on up2date any time soon?  

Comment 3 David Dombek 2002-12-20 14:52:51 EST

When will the new diskcheck be added to up2date?
Comment 4 Tim Niemueller 2003-01-15 18:32:51 EST
This seems to be a problem with type casts. Add the line 
defaultCutoff = long(conf['defaultCutoff'])
after the line
nPct = long(pct[:-1])
That is around line 284 (on diskcheck 1.3-2). Replace all upcoming occurrences
of "conf['defaultCutoff']" with "defaultCutoff".
That's it. If there is an updated package, why isn't that in the updates dir?
Comment 5 Dennis DeDonatis 2003-01-23 10:50:47 EST
This is still broken in RedHat 8.0 - diskcheck v1.3.2

Three spots have to be updated to make it work with volume or mount point and 
the default cutoff:

    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

Comment 6 Harald Hoyer 2003-01-23 11:12:25 EST
fixed in 1.4-1, should be no problem to run it on 7.3/8.0
Comment 7 David Dombek 2003-01-26 13:21:58 EST
So when will it be available via up2date for RH 7.3?
Comment 8 David Dombek 2003-03-10 11:51:58 EST
If it can be run on Red Hat7.3 why isn't in on up2date for 7.3?
Comment 9 Harald Hoyer 2003-03-10 11:54:04 EST
cause RHN-QA queue is full of security issues..

Note You need to log in before you can comment on or make changes to this bug.