servers.html 892 B

1234567891011121314151617181920212223242526272829303132
  1. {% extends "base.html" %}
  2. {% block main %}
  3. {% if demo %}
  4. <h2>demo mode</h2>
  5. {% end %}
  6. {% for group in groups %}
  7. <p>
  8. {{ group['name'] }}
  9. {% for server in servers[group['id']] %}
  10. <br>
  11. <a href="/stats/{{ group['id'] }}/{{ server['id'] }}">{{ server['hostname'] }}</a>
  12. {% end %}
  13. </p>
  14. {% end %}
  15. {% if not groups %}
  16. <p>
  17. to get started, create a <a href="/groups">group</a>
  18. </p>
  19. {% end %}
  20. <p>
  21. Run the <a href="/client/sysvitals_client">client</a> on a machine with the <code>--configure</code> flag to set up a new server (you will need to install <code>python-psutil</code> or your distro's equivalent). Your group ID and API key can be found on the <a href="/groups">groups page</a>.
  22. <br>
  23. Run the client without arguments as a cronjob every minute:
  24. <br>
  25. <code>* * * * * /.../sysvitals_client</code>
  26. <br>
  27. and you're good to go!
  28. </p>
  29. {% end %}