+ Post New Thread
Results 1 to 8 of 8
Wireless Networks Thread, Ping Fail Notification (E-mail) in Technical; Were having a few problems here with servers going down overnight (when no one is here) and at weekends. Now ...
  1. #1
    mbird's Avatar
    Join Date
    Feb 2010
    Location
    High Wycombe
    Posts
    190
    Thank Post
    51
    Thanked 21 Times in 16 Posts
    Rep Power
    40

    Ping Fail Notification (E-mail)

    Were having a few problems here with servers going down overnight (when no one is here) and at weekends.
    Now the problem with the servers is with the suppliers, but in the mean time it would be good to be notified when they went down.

    Just wondering if there is a simple programme that can be run in the background to ping the servers and send an e-mail when they go down.

    any ideas?

    mb

  2. #2

    mattx's Avatar
    Join Date
    Jan 2007
    Posts
    9,249
    Thank Post
    1,061
    Thanked 1,070 Times in 626 Posts
    Rep Power
    741
    Did this a while ago - may help.....

    No Ping

  3. #3

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,422
    Thank Post
    645
    Thanked 967 Times in 667 Posts
    Blog Entries
    2
    Rep Power
    328
    We have Monit installed on a Linux server and it monitors the service ports (as well as ICMP ping) for all our internal devices (servers, switches, APs etc) and sends an email on failures.

  4. #4
    mbird's Avatar
    Join Date
    Feb 2010
    Location
    High Wycombe
    Posts
    190
    Thank Post
    51
    Thanked 21 Times in 16 Posts
    Rep Power
    40
    Well, i may have a look at that, unfortunately as we only have server 03/08 it could be tricky.

  5. #5
    truslack's Avatar
    Join Date
    Jan 2009
    Posts
    75
    Thank Post
    11
    Thanked 9 Times in 9 Posts
    Rep Power
    14

  6. #6
    mbird's Avatar
    Join Date
    Feb 2010
    Location
    High Wycombe
    Posts
    190
    Thank Post
    51
    Thanked 21 Times in 16 Posts
    Rep Power
    40
    thanks, but im not sure that's quite what i'm after.

    What we need is a programme to e-mail us so we can note when it goes down, and so it can e-mail us to i can pick it up on BB or e-mail at home. or at least have a fairly accurate time when it came down so we can look at logs, etc.

  7. #7

    Join Date
    Apr 2007
    Location
    Birmingham
    Posts
    146
    Thank Post
    7
    Thanked 45 Times in 39 Posts
    Rep Power
    23
    something like this unsophsticated batch file method?


    Code:
    REM Compare results of ping command when server is off and the current status
    REM If they are the same assume server is off and send email
    REM off1.log is the result of "Ping SERVER1-IP" when the server can't be contacted
    REM bmail from http://www.beyondlogic.org/solutions/cmdlinemail/cmdlinemail.htm
    REM sleep from Windows 2003 Resource Kit
    
    @echo off
    
    :Start
    
    REM Server 1
    ping SERVER1-IP >live1.log
    fc off1.log live1.log >nul
    if errorlevel 1  (
    bmail -s SMTP-SERVER -t TO -f FROM -h -a "Server 1 Down" -b "Opps, Server 1 down at %time%"
    )
    
    REM Server 2
    ping SERVER2-IP >live2.log
    fc off2.log live2.log >nul
    if errorlevel 1 (
    bmail -s SMTP-SERVER -t TO -f FROM -h -a "Server 2 Down" -b "Opps, Server 2 down at %time%" 
    )
    
    REM ETC.....
    
    
    REM Wait 60 seconds
    Sleep 60
    
    REM Return
    goto start

  8. #8

    Join Date
    Oct 2008
    Location
    Lincolnshire
    Posts
    2,348
    Thank Post
    13
    Thanked 241 Times in 229 Posts
    Rep Power
    70
    We use P-Ping, have 3 servers running this tool and it monitors out 170 firewalls/sites plus a few other key things. Emails sent roughly every 6 minutes by the time it has gone through its cycle we have. Can often walk into several thousand emails after the weekend. Only tend to pay attention when we have 3 pings or more from site.



SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 5
    Last Post: 8th December 2009, 04:30 PM
  2. [Pics] Fail Blog Post Says It All: Fire Prevention Fail
    By DaveP in forum Jokes/Interweb Things
    Replies: 0
    Last Post: 18th August 2009, 06:57 PM
  3. Lotus Notes 6.5 e-mail notification
    By Fridge in forum Windows
    Replies: 0
    Last Post: 17th June 2009, 12:34 PM
  4. aFasthosts Fail again - E-Mail down all weekend
    By ninjabeaver in forum General Chat
    Replies: 1
    Last Post: 8th June 2009, 02:19 PM
  5. Replies: 1
    Last Post: 20th May 2008, 12:09 PM

Thread Information

Users Browsing this Thread

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

Tags for this Thread

Posting Permissions

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