[Source] Server status notification

Discussion in 'Web Programming' started by Jazz00006, Mar 8, 2012.

[Source] Server status notification
  1. Unread #1 - Mar 8, 2012 at 11:26 PM
  2. Jazz00006
    Joined:
    Aug 26, 2005
    Posts:
    807
    Referrals:
    0
    Sythe Gold:
    0

    Jazz00006 Apprentice
    Visual Basic Programmers

    [Source] Server status notification

    Wow, it's been forever since I last posted on Sythe, I wonder how many people care about this sub-forum.

    https://github.com/JasonMillward/Server-Notification-Scripts

    I made this yesterday. It's a simple Twitter and email notification script that notifies you or the owner if something is wrong.

    Those things include;
    • Server load being too high
    • HDD running out of space
    • Swap being used
    • Websites creating error logs

    You can see a working example of it (or at least the 'tweets') here: https://twitter.com/partycatnetwork



    I'm happy to answer questions, respond to comments and criticism. Fork it github if you want to use it, I'll be updating and adding to it regularly.



    If you like my code, why not endorse me? [​IMG]
     
  3. Unread #2 - Mar 9, 2012 at 3:57 PM
  4. Nullware
    Joined:
    Jan 30, 2007
    Posts:
    1,761
    Referrals:
    4
    Sythe Gold:
    0

    Nullware Guru

    [Source] Server status notification

    Just curious how you're scheduling it to run and running it?
     
  5. Unread #3 - Mar 9, 2012 at 4:33 PM
  6. Jazz00006
    Joined:
    Aug 26, 2005
    Posts:
    807
    Referrals:
    0
    Sythe Gold:
    0

    Jazz00006 Apprentice
    Visual Basic Programmers

    [Source] Server status notification

    A crontab of course
    Code:
    # Twitter
    */5     *       *       *       *       php /srv/d_PartyCat/scripts/php/main.php
    
     
  7. Unread #4 - Mar 9, 2012 at 10:17 PM
  8. Nullware
    Joined:
    Jan 30, 2007
    Posts:
    1,761
    Referrals:
    4
    Sythe Gold:
    0

    Nullware Guru

    [Source] Server status notification

    Sorry, I was guessing that's what you did but I've never thought to use crontab for PHP myself. Wanted to make sure there wasn't some other magical alternative.:noworry:
     
< Placing text over images | Looking for someone to built me a "MEME" website ($$) >

Users viewing this thread
1 guest


 
 
Adblock breaks this site