Bug 91504

Summary: produces errors when using cutoff for certain partitions
Product: [Retired] Red Hat Linux Reporter: Brian Johnson <bjohnson>
Component: diskcheckAssignee: Harald Hoyer <harald>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 9   
Target Milestone: ---   
Target Release: ---   
Hardware: athlon   
OS: Linux   
Fixed In Version: 1.4-3 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-05-23 15:57:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Description Flags
my config file none

Description Brian Johnson 2003-05-23 14:04:58 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 Galeon/1.2.7 (X11; Linux i686; U;) Gecko/20030131

Description of problem:
It was working fine but I wanted to increase the cutoff for a couple of
partitions and now I get errors:


Traceback (most recent call last):
File "/etc/cron.hourly/diskcheck", line 298, in ?
if (nPct < long(cutoff[volume])): continue
ValueError: invalid literal for long(): 95 # /var 

I changed the commented cutoff lines in the default diskcheck.conf to:
cutoff['/dev/hda4'] = 95  
cutoff['/dev/hdd4'] = 95 

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

How reproducible:

Steps to Reproduce:
1. see description please

Additional info:

Comment 1 Harald Hoyer 2003-05-23 14:09:16 UTC
please attach your diskcheck.conf

Comment 2 Brian Johnson 2003-05-23 14:47:18 UTC
Created attachment 91918 [details]
my config file

Comment 3 Brian Johnson 2003-05-23 15:09:46 UTC
The problem is the comments after (included on) the cutoff line

Now it works as expected

Comment 4 Harald Hoyer 2003-05-23 15:57:14 UTC
yeah, I fixed that comment problem... should be fixed in diskcheck >= 1.4-3