[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
"disks"/"required" for all local disks
From: |
John Borwick |
Subject: |
"disks"/"required" for all local disks |
Date: |
Tue, 14 Sep 2004 15:51:09 -0400 |
User-agent: |
Mozilla Thunderbird 0.7.3 (X11/20040901) |
Hey. Thanks very much for the help with finding out the interface. I
ended up using ${global.ipv4[eth0]} for the IP address and
eth0_gateway = ( ExecResult(/bin/sh -c "echo `ifconfig eth0 | grep
'inet' | cut -d: -f2 | cut -d. -f-3`.254") )
for the gateway.
Next trick: I'm trying to assert that all the local disks have a
certain amount of space free. I tried
control:
actionsequence = ( disks )
partitions = ( ExecResult(/bin/sh -c "df -l | grep '%' | perl
-F\\s+ -alne 'print $F[5]'"))
disks:
$(partitions) freespace=100M
But this doesn't work because $(partitions) is expanded as a string
rather than as a list.
If it's not possible, that's cool; we'll monitor it with SNMP instead.
Thanks!
Yours,
John
--
John Borwick
System Administrator
Wake Forest University | web http://www.wfu.edu/~borwicjh
Winston-Salem, NC, USA | GPG key ID 0x797326D5
signature.asc
Description: OpenPGP digital signature
- "disks"/"required" for all local disks,
John Borwick <=