Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Is there any alternative software to freeping in ubuntu?

Note:     
FREEping automatically pings in the background and shows
statistics for each pinged hosts. When a host stops 
responding, FREEping can send popup messages to a 
specified destination. 

screenshot freeping

share|improve this question
2  
You could write a shell script that pings the server. If you don't get a response, display a notification! :) –  omnidan Apr 13 '11 at 13:31
add comment

1 Answer

up vote 4 down vote accepted

Without parameter, a ping runs forever, but you can restrict it, to wait maximal 10 seconds and do just one ping this way:

ping -W10 -c1 askubuntu.com 

to suppress the output, and issue your warning

ping -W10 -c1 askubuntu.com || warning.sh

to handle a list of domains

urls=(abc.de xy.org jkl.net) 
for url in ${urls[@]} ; 
do 
   ping -W10 -c1 $url || warning.sh
   sleep 10
done

To pop up a warning, you need to either start the script by hand, or do some gymnastics with crontab - common errors there: call programs without path. Using x11-programs without specifying the DISPLAY.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.