From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: ldg@ulysium.net Newsgroups: gmane.os.tru64.managers Subject: summary: quick shell scripting question: followup Date: Mon, 22 Dec 2003 16:58:33 -0500 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1072130439 20185 80.91.224.253 (22 Dec 2003 22:00:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 22 Dec 2003 22:00:39 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Mon Dec 22 23:00:37 2003 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by deer.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 1AYY6O-0007h5-00 for ; Mon, 22 Dec 2003 23:00:36 +0100 Original-Received: (qmail 8605 invoked by uid 5); 22 Dec 2003 22:00:23 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 8566 invoked by uid 49493); 22 Dec 2003 22:00:22 -0000 Original-Received: from ldg@ulysium.net by sws1 by uid 49491 with qmail-scanner-1.16 (iscan: v3.1/v5.600-1011/622/49252. clamscan: 20030605. spamassassin: 2.55. Clear:SA:0(-3.6/5.0):. Processed in 1.009554 secs); 22 Dec 2003 22:00:22 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 22 Dec 2003 22:00:21 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.2-X17 #30669) with ESMTP id <0HQB00I74H4JZH@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 22 Dec 2003 17:00:20 -0500 (EST) Original-Received: from outbound28-2.lax.untd.com (outbound28-2.lax.untd.com [64.136.28.160]) by emroute1.cind.ornl.gov (PMDF V6.2-X17 #30669) with SMTP id <0HQB00ICAH44ZQ@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 22 Dec 2003 17:00:06 -0500 (EST) Original-Received: from outbound28-2.lax.untd.com (smtp03.lax.untd.com [10.130.24.123]) by smtpout01.lax.untd.com with SMTP id AAA98Q4J9ADHWU5S for (sender ); Mon, 22 Dec 2003 13:58:55 -0800 (PST) Original-Received: (qmail 17424 invoked from network); Mon, 22 Dec 2003 21:58:40 +0000 Original-Received: from dialup-4.72.64.19.dial1.orlando1.level3.net (HELO ?4.72.64.19?) (4.72.64.19) by smtp03.lax.untd.com with SMTP; Mon, 22 Dec 2003 21:58:40 +0000 Original-To: Tru64 Unix managers User-Agent: Microsoft-Outlook-Express-Macintosh-Edition/5.0.6 X-ContentStamp: 3:5:728855311 Xref: main.gmane.org gmane.os.tru64.managers:6070 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:6070 I wrote that script I needed and it's working just as I wanted it to. I used the vdf command, greped and parsed the output with awk to get only the amount full. I wanted to watch only 5 filesystems and not all of them, plus I needed to set a different threshold for reporting a warning. I get a warning emailed only if one or more filesystem goes over the threshold and if more than one goes over, the warning email gives info on each filesystem in that condition. I run this out of cron every hour. I inspired myself from a few scripts or snippets sent by several people (too many to mention). Thanks to all for all the suggestions, it's now working beautifully. -- Didier Godefroy mailto:dg@ulysium.net