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 1

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

protected by Community Apr 26 at 12:22

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

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