AW: script for df-k filesystem alerts...

From: Sippel, Christian (Christian.Sippel@IZB.DE)
Date: Wed Sep 11 2002 - 11:42:44 EDT


I would use something like

df -k | gawk '{p=substr ($5,1, length ($5) -1);if((p >= 10)&& (NR!=1))
{print p }}' -

regards,
Christian
> ----------
> Von: Barnhart, Troy[SMTP:TBarnhart@RCRH.ORG]
> Antwort an: IBM AIX Discussion List
> Gesendet: Mittwoch, 11. September 2002 17:13
> An: aix-l@Princeton.EDU
> Betreff: script for df-k filesystem alerts...
>
> Just a request to see if someone out there already has a
> simple script I could setup in cron that runs a df -k and
> then parses the output to find anything over a certain
> percentage in the %used column. I could use a little help
> on the parsing part. I'm going to then push that line of
> output to an alert email.
>
> thanks in advance,
> troy
>
> Troy Barnhart, Sr. Systems Programmer,
> tbarnhart@rcrh.org
> Rapid City Regional Hospital,
> Rapid City, South Dakota, 57701
> ph: 605-719-8068 / fax: 605-719-4206
>



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:12 EDT