At 03:17 PM 6/2/00 , you wrote:
>If need to check on if one of our computers on our network is running.  If 
>figured I could set up a script on my linux box to ping the computer every 
>minute and then if it doesn't respond then message me a warning (I have 
>samba installed).  Any ideas how to set this up?

In perl, you could issue the ping command in backticks (make *sure* you 
give it a count) and evaluate whether it gives any output.  You'd have to 
play with it to get it to work since some output is produced even if there 
are no responses...

But there are packages to do this.  One is called 'heartbeat' and I think 
it can take action if it detects a downed host.

You should be aware, though, that it is entirely possible that important 
services have died (lpd, for example) while the host is still up.  In these 
cases, you may want to have a cron job or deamon check on the process and 
restart it if it dies.  I don't know of a package to do this, but I bet one 
exists.

-Alan


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to