Shell scripts are insanely powerful & convenient. We all know it 😉 Much of the beauty in shell scripts lies in the way they can be used to automate many aspects of System Administration. As a SysAdmin, you might have been asked to prepare health-reports on a regular basis. Today, I wrote one such script that will generate an HTML health-report containing some vital system information. Lets see how it works 🙂
Lab Description : –
Ubuntu 14.04 Server. Environment : – Bash shell
Instructions : –
Download or clone my GitHub repository from below location.
syshealth.sh file anywhere you want. I prefer keeping it under my home-directory but you may keep it anywhere.
Make it executable (if not already).
You may either run/execute it manually or you may also put it in a CRON job. I have chosen to generate the report twice a day, but its entirely upto you 🙂
Video Tutorial : –
To see the script in action, watch the video below on my YouTube Channel.
Additional Notes : –
I have kept the script & report minimal since I wrote it today only. You may customize it further so as to suit your needs. Sky is the limit 😉