Greg,
You must be running a very old version of swatch. This bug (which occurs
when using BQ system that uses LVM or very long mountpoint names) has been
fixed quite a while ago. Time to update your installation.
See message below from Hisao from April 2005 (!):
You use the LVM(Logical Volume Manager), then the output of df is two lines.
> Filesystem 1K-blocks Used Available Use% Mounted on
> /dev/mapper/VolGroup00-LogVol00
> 8288964 1092196 6775700 14% /
And, the /usr/sausalito/swatch/bin/am_disk.pl doesn't support two lines
output,
so you need to change am_disk.pl as the follows patch.
Index: am_disk.pl
===================================================================
RCS file: /cvsroot/ui/base-disk.mod/src/base-disk-am/Attic/am_disk.pl,v
retrieving revision 1.1.1.1.2.1
diff -u -r1.1.1.1.2.1 am_disk.pl
--- am_disk.pl 8 Mar 2004 14:41:25 -0000 1.1.1.1.2.1
+++ am_disk.pl 26 Apr 2005 02:16:45 -0000
@@ -51,7 +51,7 @@
my $ret;
# check if root is getting filled. if so, suspend CCE. if not, restore it.
-open(DF, "/bin/df -l / |");
+open(DF, "/bin/df -lP / |");
while (<DF>) {
if (/^\/dev\//) {
my ($device, $size, $used, $avail, $percent, $mount) = split(/ +/);
Now, I check in this patch which information is provided by Yasuhiro on
coba-o mailing list.
I'll release update package in a few days.
Please edit and run swatch by GUI, if you need to set up as soon.
With regards,
Taco
----- Original Message -----
From: "Greg Boehnlein" <damin (at mark) nacs.net>
To: <coba-e (at mark) bluequartz.org>
Sent: Tuesday, August 22, 2006 4:55 AM
Subject: [coba-e:06503] Swatch Failures
>I keep receiving E-mails w/ the following..Any idea how to fix it?
>
> Subject: Cron <root (at mark) bq1> /usr/sbin/swatch -c /etc/swatch.conf
>
> Use of uninitialized value in subroutine entry at
> /usr/sausalito/swatch/bin/am_disk.pl line 348, <GEN1> line 27.
>
>
>