1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Email notifications when server down

Discussion in 'Site & Server Administration' started by xsongs, Dec 28, 2011.

  1. #1
    Hello,

    Please help me finding the way of sending email notification after the server down.

    Thanks
     
    xsongs, Dec 28, 2011 IP
  2. Ella_Z.

    Ella_Z. Peon

    Messages:
    544
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    0
    #2
    Well I know the solution when you'll be notificated when not all your server is down, but when mc server is down. For that you need to [FONT=Verdana, Geneva, Tahoma, sans-serif]install and configure the cli mail program and then add this "[/FONT] */5 * * * * nc -w 3 -z <mc ip address> <mc port> || { echo "You, the servers down. Fix it" | mutt -s "MC server's down" <email address> >&2; }[FONT=Verdana, Geneva, Tahoma, sans-serif]" to your crontab file[/FONT]
     
    Ella_Z., Dec 28, 2011 IP
  3. ezbnc

    ezbnc Peon

    Messages:
    168
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Try a outside monitoring service like pingdom.
     
    ezbnc, Dec 28, 2011 IP
  4. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    1,007
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    150
    #4
    Hello there,

    Are you looking for notifications of a service down on the server, or, the entire server itself being down?

    Chris
     
    RHS-Chris, Dec 28, 2011 IP
  5. tweakservers

    tweakservers Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I would also recommend pingdom or some other external service monitoring. Setting up the script or cron on your server may not be a good idea as if the server down before the email gets delivered, you will never receive it.
     
    tweakservers, Dec 29, 2011 IP