Ping and email based on result

Sigma721

Well-Known Member
Joined
Sep 14, 2011
Messages
122
Reaction score
0
Hi everyone

I need way to ping multiple addresses and send myself an email only if any of them are not responding.
The reason is that there are multiple internet connections I have to monitor, so I setup dynamic dns names on the ADSL routers, then I can ping those dns names. If any of them are down I will get an email.

Does anyone know how I can achieve this? I have very limited knowledge relating to it, but thought that VB might be the best option and cant find anything online.
 
Would be very simple on Linux. I have written something very similar just using bash scripting. You would probably be able to do something similar using powershell but I'm not too clued up on Windows stuff.
 
Why reinvent the wheel? There are plenty of applications that are built for this kind of thing - like Nagios. There are also various cloud based services that take almost all the hassle out of setting up this kind of thing. Email and sms alerts to tell you when stuff goes down are usually free or very cheap.
 
Without having much knowledge in this regard, the first thing I'd google is Nagios.

Also...expect many false positives...ADSL drop data all the time for random reasons.
 
Why reinvent the wheel? There are plenty of applications that are built for this kind of thing - like Nagios. There are also various cloud based services that take almost all the hassle out of setting up this kind of thing. Email and sms alerts to tell you when stuff goes down are usually free or very cheap.

Thanks for the suggestions, would mind giving one or two names of cloud based options?
 
Due to security concerns and not finding an application that did everything I needed I wrote something similar a while back it took very little effort.
I just created a windows service then pinged a list of servers and emailed the list if any of the servers failed more than 1ping request in a row.

The relevant code for each part of the application is very common so you should not have problems coding something like that.
 
Top
Sign up to the MyBroadband newsletter
X