This python script is supposed to check for basic system errors like if the disk is nearly full or if the C.P.U usage is too high etc. This was accomplished using given python modules and functions
-
psutil.cpu_percent(interval=None, percpu=False)
-
psutil.virtual_memory()
-
shutil.disk_usage()
-
smtplib
The basic working of the program is shown in the flowchart.
The format of the error report in shown in figure
In the figure , the sender_email_id and password should be entered. Sender’s account means the mail id through which the report is to be sent. Receiver_email_id should have the mail id of person to whom the report generated is to be sent.
Added an feature that will maintain a log file of all actions when the program is executed.