index.html 842 B

123456789101112131415161718192021222324252627282930313233343536
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <h2>檢查伺服器狀況</h2>
  5. </head>
  6. <body>
  7. <form method="POST" action="{{ url_for('check_ping') }}">
  8. <p><input type="submit" name="send" value="檢查連線"></p>
  9. </form>
  10. <form method="post" action="{{ url_for('check_gogs') }}">
  11. <p><input type="submit" name="send" value="檢查gogs"></p>
  12. </form>
  13. <form method="post" action="{{ url_for('check_watchdog') }}">
  14. <p><input type="submit" name="send" value="檢查watchdog"></p>
  15. </form>
  16. <form method="post" action="{{ url_for('check_mosquitto') }}">
  17. <p><input type="submit" name="send" value="檢查mosquitto"></p>
  18. </form>
  19. <pre>{{context}}</pre>
  20. <pre>{{gogs}}</pre>
  21. <pre>{{watchdog}}</pre>
  22. <pre>{{mosquitto}}</pre>
  23. </body>
  24. </html>