Results 1 to 2 of 2
hi ,
i want to monitor my apllication server disk utilitazion. i prefer to use some 3rd party monitoring tool. but i haven't got any knowledge about this tools.
can ...
- 10-18-2005 #1Just Joined!
- Join Date
- Aug 2004
- Posts
- 2
disk usage monitoring tool
hi ,
i want to monitor my apllication server disk utilitazion. i prefer to use some 3rd party monitoring tool. but i haven't got any knowledge about this tools.
can someone any advertisment ?
thanks
- 10-20-2005 #2Just Joined!
- Join Date
- Oct 2005
- Posts
- 10
Here is a handy script in my collection:
#!/bin/ksh
#
# fswarn.ksh - checks the filesystem usage and mail alert
# if any match alarm threshold
fswarnLog=/cust/utils/fswarn/fswarn.log
mailProg=mailx
alarm=90
prog=$(basename $0)
df -k | while read line
do
if echo $line | grep '^Filesystem' >/dev/null
then
continue
fi
set $line
pcntFull=$(echo $5 | sed 's/%//')
fs=$6
if [[ "$pcntFull" -gt "$alarm" ]]
then
# send warning to logfile and mail to the admin
echo "WARNING: $fs is $pcntFull percent full at $(date)" >> $fswarnLog
echo "WARNING: $fs is $pcntFull percent full at $(date)" | $mailProg email@domain.com
fi
done


Reply With Quote