Super simple Python based server ping monitor. Emails you with any email address (default: Gmail) if server is down.
You can add multiple sites to check every minute with the monitor.
-
Open up the configuration.py file
-
Add your site's to the list there. For example, the configuration for checking google and github would be:
sites = ( 'google.com', 'github.com', )
Note: Each site must have a comma after it
Open the configuration.py file with your favorite text editor.
-
Add the hostname or ip address and the recipient email
"recipient_email": '[email protected]', # The email that the alerts will be sent to
-
Add the Gmail address you would like to send the email from when your server goes down.
"monitor_email": '[email protected]',
-
Add the Gmail password that is associated with the above Gmail email address
"monitor_password": 'gmail password',
-
Add script to crontab to run every x amount of minutes you would like to run it.
Open the configuration.py file with your favorite text editor.
-
Add the hostname or ip address and the recipient email
"recipient_email": '[email protected]', # The email that the alerts will be sent to
-
Add the email address you would like to send the email from when your server goes down.
"monitor_email": '[email protected]',
-
Add the email password that is associated with the above email address
"monitor_password": 'email password',
-
Set the email server (smtp) address to send the emails from
"monitor_server": 'smtp.yourdomain.com',
-
Set the email server port
"monitor_server_port": 587,
-
Add script to crontab to run every x amount of minutes you would like to run it.
You can optionally set the subject of the email that is sent when the server goes down
"email_subject": 'Subject of the email'