Fwd: logwatch: zz-disk_space
"Kirk Bauer" <[email protected]>
| Newsgroups | gmane.comp.log.logwatch.devel |
|---|---|
| Message-ID | <[email protected]> |
Displaying free disk space only if it is below a certain threshold is more in the spirit of Logwatch, not a bad idea. I have some old script on my ftp site that already does this I think. ---------- Forwarded message ---------- From: Tom Metro <[email protected]> Date: Sat, 16 Jun 2007 15:29:01 -0400 Subject: logwatch: zz-disk_space To: [email protected] After a first time installation of logwatch, I noticed I was getting daily reports of free disk space: --------------------- Disk Space Begin ------------------------ Filesystem Size Used Avail Use% Mounted on /dev/hda6 1.9G 1.8G 50M 98% / /dev/hda1 46M 24M 21M 54% /boot /dev/hda7 1.9G 60K 1.8G 1% /tmp /dev/hda8 105G 16G 84G 16% /data ---------------------- Disk Space End ------------------------- Which is nice, but I wondered if there was a configurable threshold for usage, below which these messages would be suppressed. I took a look at zz-disk_space.conf and services/zz-disk_space and didn't see anything applicable. Am I correct in understanding that the disk space information (if enabled) is displayed unconditionally? Similarly, it appears the only thing LOGWATCH_DETAIL_LEVEL is controlling is whether supplemental directories are also reported on. I'd expect only file systems exceeding a configured threshold to be displayed at the default LOGWATCH_DETAIL_LEVEL, and all file systems to be displayed, regardless of threshold, at some high detail level. I could contribute a patch for this, but it would be Linux specific. -Tom -- Kirk Bauer <[email protected]> http://linux.kaybee.org | www.autorpm.org | www.logwatch.org