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.

  1. Pings all of stackoverflow.coms IP addresses.
  2. Tests to see if they can query 8.8.8.8 and 8.8.4.4 for DNS results.
  3. Tests to see if the aforementioned DNS servers provide the same IP addresses for stackoverflow.com.
  4. Tests to see if they can query time.nist.gov and pool.ntp.org for time.
  5. Tests to see if the aforementioned NTP servers provide the same time within 1 second.
  6. Tests to see if stackoverflow.coms web server is online by doing a wget on the site.
  7. Takes all of this information and creates a webpage showing the results of the tests.
  8. Max 500 lines including comments.
  9. Webpage must update every minute.
  10. 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!