Re: zz-disk_space broken nfs problem
Mike Tremaine <[email protected]>
| Newsgroups | gmane.comp.log.logwatch.devel |
|---|---|
| Message-ID | <[email protected]> |
Georgi Georgiev wrote:
> Quoting Ivana Varekova at 05/01/2009-14:56:19(+0100):
>> Hello,
>> a bug reporter suggest to add -l option to df command to prevent the
>> delay which happens when some nfs is down.
>> I think it is a good idea so please could this change be done in
>> upstream version too - or is there any reason why this should not be
>> changed?
>
>>From what I see, -l is in the default options on Linux for at least
> logwatch 7.3.2. It's mentioned both in the
> default.conf/conf/services/zz-disk_space.conf and the zz-disk_space
> script itself.
>
> You can easily add your favorite $df_options to a zz-disk_space.conf in
> dist.conf as well if the defaults don't suit you.
>
> I personally also like the -P option, which avoids the ugly wrap,
> especially with device names like /dev/mapper/volumegroup0-logicalvolume0.
> That's why I put it in /etc/logwatch/conf/services/zz-disk_space.conf
>
> $disk_cmd = "df -hP -x tmpfs -l | sed -e 's/ on$/_on/' | column -t"
>
I also see -l as default for linux in CVS
if ($OSname eq "Linux") {
$df_options = "-h -l -x tmpfs -x udf -x iso9660";
I'll take a look at trying to avoid the wrap... Hopefully I will sit
down soon with Logwatch and try to push into some patches here.
I have a long list of them tagged in my email box... Keep them coming!!!
-Mike