Create a conf.py containing these:
SERVER_NAME = 'My Server'
EMAIL_HOST = 'localhost'
FROM_EMAIL = '[email protected]'
RECIPIENTS = ['[email protected]']
LOG_DIR = '~/log'
URLS = ('mydomain.com', 'myotherdomain.com/testurl')
Optional settings:
WEB_TIMEOUT (default is 10)
Add these to your crontab:
* * * * * free -m | /path/to/memory_monitor.py
45 * * * * df -h | /path/to/disk_monitor.py
15,35,55 * * * * /path/to/web_monitor.py
I have run the script, but does get i am not getting any output , can anyone help ?
[07:33:29]ablinux@Centos_Server1:~/NewScripts$-> python3 disk_monitor.py
^CTraceback (most recent call last):
File "disk_monitor.py", line 13, in
table = sys.stdin.read()
KeyboardInterrupt