Question: How do I write a Bash script that monitors different services, and outputs all information gathered to a basic HTML webpage. Pings all of stackoverflow.coms
How do I write a Bash script that monitors different services, and outputs all information gathered to a basic HTML webpage.
- Pings all of stackoverflow.coms IP addresses.
- Tests to see if they can query 8.8.8.8 and 8.8.4.4 for DNS results.
- Tests to see if the aforementioned DNS servers provide the same IP addresses for stackoverflow.com.
- Tests to see if they can query time.nist.gov and pool.ntp.org for time.
- Tests to see if the aforementioned NTP servers provide the same time within 1 second.
- Tests to see if stackoverflow.coms web server is online by doing a wget on the site.
- Takes all of this information and creates a webpage showing the results of the tests.
- Max 500 lines including comments.
- Webpage must update every minute.
- Script must run every 5 minutes, and must fully execute in less than 4 minutes.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
