• Log in or sign up for an account here: https://www.sythe.org/login

[Source] Server status notification

Jazz00006

Apprentice

Visual Basic Programmers
Joined
Aug 26, 2005
Sythe Gold
0
Messages
807
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?
 
Just curious how you're scheduling it to run and running it?
 
A crontab of course
Code:
# Twitter
*/5     *       *       *       *       php /srv/d_PartyCat/scripts/php/main.php
 
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:
 
Runescape Gamblingrunescape gambling
Back
Top