Jump to content

Recommended Posts

Posted

I'll add this to the Admin Bar at some point but in the mean time it may be handy for some as just a stand alone scheduled script. Its basically a ping logger - you enter the IP addresses or dns entries in the .ini file. Make sure the .ini file is in the same directory as the script and fire it off - it will then create a file called 'No Ping Log.txt' which will report any IP or dns entries that are not pinging.

 

I use it to run checks on a selection of IP addresses etc on our network, printers, access points, servers, NAS boxes etc every morning. I can then check the log file and see any problems that I may be able to sort out quickly.

 

The addresses.ini file provided is a example - change the IPs etc and add more a line at a time by just adding another:

 

address6=10.0.0.150

address7=ourdomain.local

 

 

The log file when it encounters a non pingable address will look something like this:

 

No Ping On 10.0.0.9 at 14:36:30 on 2008-02-21

No Ping On 10.0.0.10 at 14:36:32 on 2008-02-21

No Ping On 10.0.0.9 at 14:37:21 on 2008-02-21

No Ping On 10.0.0.10 at 14:37:24 on 2008-02-21

No Ping On http://www.edugeek.au at 14:43:23 on 2008-02-21

 

 

If you get any problems or have comments - let me know. I get lonely.....

no ping.zip

Posted

I'd rather just check my nagios install once I have everything inputted for ping checks :)

 

But for a quick and easy way for a lot of people that is cool.

 

Ben

Posted (edited)

I thought nagios was now part of some distributions.....

 

This script is just a simple approach.....

Edited by mattx
Posted

Just the thing I wanted as was just going to post if anyone had a suggestion for something to do that..what timing...trouble is everytime I try to download it it says corrupt file. Anyone email it to me please?

tech.support @ central.doncaster.sch.uk

Posted
Just the thing I wanted as was just going to post if anyone had a suggestion for something to do that..what timing...trouble is everytime I try to download it it says corrupt file. Anyone email it to me please?

tech.support @ central.doncaster.sch.uk

 

Just E-mailed you the zip file......

 

Then it bounced back with the zip file removed.....

 

I'll rename it .DOC - you will then need to rename it .zip

Posted
Thanks Mattx, got the file, had a look at it, but can I make it ping my connection virtually constantly to create a log of when my internet connection si down or having problems as that what I really want to do. My broadband connection just goes to sleep regularily these days and want some evidence for my ISP to show it not just me imagining it or is there some other software I should be using but it needs to log the times etc when the net is not available i.e. web pages just won't load.
Posted
Thanks Mattx, got the file, had a look at it, but can I make it ping my connection virtually constantly to create a log of when my internet connection si down or having problems as that what I really want to do. My broadband connection just goes to sleep regularily these days and want some evidence for my ISP to show it not just me imagining it or is there some other software I should be using but it needs to log the times etc when the net is not available i.e. web pages just won't load.

 

Heh, I wrote something which did that for my ISP when I was having problems - I'll dig it out tomorrow as it's on my PC at the school.

You can have the source if you like and change it to your own requirements as it was written for my IP addresses etc at the time.

It was quite simple, it pinged an address every 2 mins, and when it didn't respond it logged it.

Posted
When I get time I'll add a GUI front for this too - that way you can run it ad hoc, and you will know when its finished, the non GUI one can be the one thats scheduled.....
Posted
If you have ISA 2006 you can set up all sorts of connectivity tests - ping/http/dns or even just arbitrary ports.

 

If you have ISA 2006.........

Posted (edited)

Thanks Mattx, look forward to it. What in the end was your problem with your ISP. Mine is that as I said it just goes to sleep and I have to wait for it to eventually load the page.

 

Just been trying this script I found for a similar situation,

http://blog.akinstech.com/script-to-monitor-your-internet-connection/

Modded it so that it only shows the failed ping tests though.

Edited by TechSupp
Posted
Thanks Mattx, look forward to it. What in the end was your problem with your ISP. Mine is that as I said it just goes to sleep and I have to wait for it to eventually load the page.

 

Just been trying this script I found for a similar situation,

http://blog.akinstech.com/script-to-monitor-your-internet-connection/

Modded it so that it only shows the failed ping tests though.

 

Attached to this is the loop forever version of the script - it will keep going until you stop it - [ close it in the system tray ] As with the first version just put the IP addresses of your choice in the .ini file

As for the problem with my ISP - I am on cable - they blamed the junction box at the top of my road.....

 

P.S. I'll E-mail you this version too, I'll change the name to a .DOC file again so it gets through.

no ping loop forever.zip

  • Thanks 1
Posted

Thanks for the replies, I set one logging last night but will probably do another few just to prove my case. What would you suggest I use to ping.?

 

I tried tracert on my isp web page and set it to the first hop ip, but reset it to google after I thought they might object to a continuous ping being sent to it and I don't want to get their backs up when I want their help:)

Posted
I use Freeping to check some devices

 

http://www.tucows.com/preview/332657

 

 

As its a traffic light display its easy to see if there any problems. You can also config a popup if something goes wrong

 

Yeah but at the end of the day there is nothing more satisfying than writing your own. [ Plus mine is only 249k, freeping is 360k ] Clutching at staws ? You bet !! :D

Posted
If you have ISA 2006.........

 

Haha, not knocking yours! :p

 

I've hacked something together with batch files in the past when somebody started turning important equipment off after hours. If you schedule batch scripts to run as a different account from the one you're logged on interactively with they run invisibly in the background. Probably not very efficient, but sub-1k ;)

  • Thanks 1
Posted
Yeah but at the end of the day there is nothing more satisfying than writing your own. [ Plus mine is only 249k, freeping is 360k ] Clutching at staws ? You bet !! :D

 

Nothing wrong with developing your own. After all you'll be able to tailor it to suit your requirements.

 

Freeping did all I needed.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...