Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Simple python scripts to monitor my servers
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
README.md
config.sample.py
disk-space.py
failed-user-auth.py
free-memory.py
running-processes.py
weather.py

README.md

server-monitors

This is a collection of scripts (and cron jobs) to setup some basic monitoring of servers.

Note: This is setup for the default amazon ami on an ec2 server. You may have to alter this to get it work perfectly on your server.

Install

First, you must have python and twilio-python installed.

sudo su
curl https://raw.github.com/pypa/pip/master/contrib/get-pip.py | python
pip install twilio

Second, pull down the project and setup the cron jobs.

git clone git@github.com:adamdecaf/server-monitors.git
# Copy config.sample.py to config.py and update the values
sudo su
crontab -e

* * * * * python /path/to/server-monitors/disk-space.py
* * * * * python /path/to/server-monitors/free-memory.py
* * * * * python /path/to/server-monitors/running-processes.py
0 7 * * * python /path/to/server-monitors/weather.py
Something went wrong with that request. Please try again.