[expert] Disk drive monitor

2001-01-23 Thread Laurent Duperval

Hi,

Short of writing one, does anyone kno of a disk drive monitor that pops up a
warning on your screen when your partition is almost full?

l

-- 
MY EMAIL ADDRESS HAS CHANGED -- UPDATE YOUR ADDRESSBOOK

Laurent Duperval   "Montreal winters are an intelligence test,
Netergy Networks - Java Centerand we who are here have failed it."
Phone: (514) 282-8484 ext. 228   -Doug Camilli
mailto:[EMAIL PROTECTED]   Penguin Power!






Re: [expert] Disk drive monitor

2001-01-23 Thread David G.Powers

Check out www.bb4.com - they've got a GPL app that can monitor all sorts of 
stuff and send alerts.  If you can write shell scripts, it is simple enough 
to add your own monitors.

If you want something quick, just set this script to run via crontab.  You 
can modify the notfication even to suit your needs.  I use the email address 
for my cell phone so I get an alphnumeric page.

DP

-
diskmonitor.sh
-
#!/bin/sh

# set this to a reasonable percentage
warn_level=50

# this is where alerts will be sent
[EMAIL PROTECTED]

# check disk utilization using `df`
for percent in $(df | grep /dev/ | cut -c 52-54); do
 if [ $percent -gt $warn_level ]; then
 # construct and send a message 
 echo -e "subject: disk utilization warning on  \
$(uname -n)\n\n$(df -h)"| sendmail $recipient 
 # one warning should suffice
 break
 fi
done
-


On Tuesday 23 January 2001 12:09, you wrote:
 Hi,

 Short of writing one, does anyone kno of a disk drive monitor that pops up
 a warning on your screen when your partition is almost full?

 l


#!/bin/sh
warn_level=50
[EMAIL PROTECTED]

for percent in $(df | grep /dev/ | cut -c 52-54); do
if [ $percent -gt $warn_level ]; then
echo "warning $percent"
echo -e "subject: disk utilization warning on $(uname -n)\n\n$(df 
-h)"| sendmail @recipient 
echo -e "subject: disk utilization warning on $(uname -n)\n\n$(df -h)"
break
fi
done




Re: [expert] Disk drive monitor

2001-01-23 Thread Simon Cousins

 Short of writing one, does anyone kno of a disk drive monitor that pops up a
 warning on your screen when your partition is almost full?


I can't help you specifically, but as I sit in X  most of the time, I rely
on gkrellm -- it graphically displays disk usage (and handy utilisation)
data.  My favourite monitoring tool..


-- 

Simon Cousins
[EMAIL PROTECTED]

He who dies with the largest RAID wins.





Re: [expert] Disk drive monitor

2001-01-23 Thread Ron Stodden

Laurent Duperval wrote:
 
 Hi,
 
 Short of writing one, does anyone kno of a disk drive monitor that pops up a
 warning on your screen when your partition is almost full?

It helps to know your system.   The KDE utility KDiskFree (kdf) has
this ability.  It is so useful that I leave it in a rolled up window
on my desktop all the time.   It is standard in Mandrake 7.2.

-- 
Regards,

Ron. [AU]