Skip to content

Instantly share code, notes, and snippets.

@socalal
socalal / check_load.py
Last active April 20, 2016 16:40
Check 3 minute load average and email alert if threshold exceeded.
#!/usr/bin/python
# Created by Alan M. Orther - alan.orther@gmail.com
# This script is used to monitor a server's load and email an alert if the
# threshold is met or exceeded over a 3 minute average.
import os
import sys
import getopt
import multiprocessing
from time import sleep