From: Clifton, Pablo (Pablo.Clifton@BCBSFL.COM)
Date: Tue Mar 18 2003 - 15:55:56 EST
how about modifying this script for your needs:
#!/bin/ksh
threshold=95
host=`hostname`
pgspused=`lsps -s | sed 1d | awk '{print $2}' | awk -F% '{print $1}'`
if [ $pgspused -gt $threshold ]
then
page admin
mail -s "Paging space on $host is $pgspused % full." admin@host
<mailto:admin@host> < /dev/null
fi
-- Pablo Clifton UNIX Tech Services * pablo.clifton@bcbsfl.com -----Original Message----- From: Miller, Dave ( I.S.) [mailto:Dave.Miller@BHS.ORG] Sent: Tuesday, March 18, 2003 3:32 PM To: aix-l@Princeton.EDU Subject: Script to monitor paging space utilization Anyone have or know of a simple script that monitors paging space utilization automatically...i.e. emails or pages etc. if it exceeds a given threshold? Thanks. Blue Cross Blue Shield of Florida, Inc., and its subsidiary and affiliate companies are not responsible for errors or omissions in this e-mail message. Any personal comments made in this e-mail do not reflect the views of Blue Cross Blue Shield of Florida, Inc.
This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:40 EDT