+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 17
Scripts Thread, No Ping Script in Coding and Web Development; I'll add this to the Admin Bar at some point but in the mean time it may be handy for ...
  1. #1

    mattx's Avatar
    Join Date
    Jan 2007
    Posts
    9,240
    Thank Post
    1,058
    Thanked 1,069 Times in 625 Posts
    Rep Power
    740

    No Ping Script

    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 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.....
    Attached Files Attached Files

  2. #2

    plexer's Avatar
    Join Date
    Dec 2005
    Location
    Norfolk
    Posts
    13,633
    Thank Post
    734
    Thanked 1,693 Times in 1,507 Posts
    Rep Power
    435
    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

  3. #3

    mattx's Avatar
    Join Date
    Jan 2007
    Posts
    9,240
    Thank Post
    1,058
    Thanked 1,069 Times in 625 Posts
    Rep Power
    740
    I thought nagios was now part of some distributions.....

    This script is just a simple approach.....
    Last edited by mattx; 21st February 2008 at 04:29 PM.

  4. #4
    TechSupp's Avatar
    Join Date
    Mar 2007
    Location
    South Yorkshire
    Posts
    1,940
    Thank Post
    318
    Thanked 122 Times in 103 Posts
    Rep Power
    42
    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

  5. #5

    mattx's Avatar
    Join Date
    Jan 2007
    Posts
    9,240
    Thank Post
    1,058
    Thanked 1,069 Times in 625 Posts
    Rep Power
    740
    Quote Originally Posted by TechSupp View Post
    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

  6. #6
    TechSupp's Avatar
    Join Date
    Mar 2007
    Location
    South Yorkshire
    Posts
    1,940
    Thank Post
    318
    Thanked 122 Times in 103 Posts
    Rep Power
    42
    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.

  7. #7

    mattx's Avatar
    Join Date
    Jan 2007
    Posts
    9,240
    Thank Post
    1,058
    Thanked 1,069 Times in 625 Posts
    Rep Power
    740
    Quote Originally Posted by TechSupp View Post
    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.

  8. #8

    mattx's Avatar
    Join Date
    Jan 2007
    Posts
    9,240
    Thank Post
    1,058
    Thanked 1,069 Times in 625 Posts
    Rep Power
    740
    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.....

  9. #9
    sahmeepee's Avatar
    Join Date
    Oct 2005
    Location
    Greater Manchester
    Posts
    795
    Thank Post
    20
    Thanked 70 Times in 42 Posts
    Rep Power
    34
    If you have ISA 2006 you can set up all sorts of connectivity tests - ping/http/dns or even just arbitrary ports.

  10. #10

    mattx's Avatar
    Join Date
    Jan 2007
    Posts
    9,240
    Thank Post
    1,058
    Thanked 1,069 Times in 625 Posts
    Rep Power
    740
    Quote Originally Posted by sahmeepee View Post
    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.........

  11. #11
    TechSupp's Avatar
    Join Date
    Mar 2007
    Location
    South Yorkshire
    Posts
    1,940
    Thank Post
    318
    Thanked 122 Times in 103 Posts
    Rep Power
    42
    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-...et-connection/
    Modded it so that it only shows the failed ping tests though.
    Last edited by TechSupp; 21st February 2008 at 11:22 PM.

  12. #12

    mattx's Avatar
    Join Date
    Jan 2007
    Posts
    9,240
    Thank Post
    1,058
    Thanked 1,069 Times in 625 Posts
    Rep Power
    740
    Quote Originally Posted by TechSupp View Post
    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-...et-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.
    Attached Files Attached Files

  13. Thanks to mattx from:

    TechSupp (22nd February 2008)

  14. #13
    antoeknee's Avatar
    Join Date
    Oct 2007
    Location
    NW
    Posts
    210
    Thank Post
    0
    Thanked 6 Times in 6 Posts
    Rep Power
    16
    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
    Last edited by antoeknee; 22nd February 2008 at 03:06 PM.

  15. #14
    TechSupp's Avatar
    Join Date
    Mar 2007
    Location
    South Yorkshire
    Posts
    1,940
    Thank Post
    318
    Thanked 122 Times in 103 Posts
    Rep Power
    42
    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

  16. #15

    mattx's Avatar
    Join Date
    Jan 2007
    Posts
    9,240
    Thank Post
    1,058
    Thanked 1,069 Times in 625 Posts
    Rep Power
    740
    Quote Originally Posted by antoeknee View Post
    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 !!



SHARE:
+ Post New Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Anybody used PING?
    By sqdge in forum Windows
    Replies: 11
    Last Post: 10th August 2007, 08:25 AM
  2. DNS - can't ping by computer name
    By SimpleSi in forum Windows
    Replies: 15
    Last Post: 29th September 2006, 02:42 PM
  3. Cannot Ping client from server
    By john in forum Wireless Networks
    Replies: 6
    Last Post: 12th April 2006, 02:54 AM
  4. Anyone for Ping Pong?
    By Optimus in forum Jokes/Interweb Things
    Replies: 2
    Last Post: 30th August 2005, 11:17 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •