You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

203 lines
6.7 KiB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
9 years ago
  1. {% extends "base.html" %}
  2. {% load compress humanize staticfiles %}
  3. {% block containers %}
  4. <div class="index-bleed">
  5. <div class="container">
  6. <div class="row">
  7. <div class="col-sm-12">
  8. <h1 id="pitch">Cron Monitoring. Get Notified When Your Cron Jobs Fail</h1>
  9. </div>
  10. </div>
  11. <div class="row">
  12. <div class="col-sm-12">
  13. <h2 id="pitch-subtitle">Here's an unique ping address for you:</h2>
  14. <div id="pitch-url">{{ ping_url }}</div>
  15. </div>
  16. </div>
  17. <div class="row">
  18. <div class="col-sm-12">
  19. <ul class="nav nav-tabs" role="tablist">
  20. <li class="active">
  21. <a href="#crontab" data-toggle="tab">Crontab</a>
  22. </li>
  23. <li>
  24. <a href="#bash" data-toggle="tab">Bash</a>
  25. </li>
  26. <li>
  27. <a href="#python" data-toggle="tab">Python</a>
  28. </li>
  29. <li class="hidden-xs">
  30. <a href="#node" data-toggle="tab">Node.js</a>
  31. </li>
  32. <li class="hidden-xs">
  33. <a href="#php" data-toggle="tab">PHP</a>
  34. </li>
  35. <li class="hidden-xs">
  36. <a href="#browser" data-toggle="tab">Browser</a>
  37. </li>
  38. <li class="hidden-xs">
  39. <a href="#email" data-toggle="tab">Email</a>
  40. </li>
  41. </ul>
  42. <div class="tab-content">
  43. <div role="tabpanel" class="tab-pane active" id="crontab">
  44. {% include "front/snippets/crontab.html" %}
  45. </div>
  46. <div role="tabpanel" class="tab-pane" id="bash">
  47. {% include "front/snippets/bash.html" %}
  48. </div>
  49. <div role="tabpanel" class="tab-pane" id="python">
  50. {% include "front/snippets/python.html" %}
  51. </div>
  52. <div role="tabpanel" class="tab-pane" id="node">
  53. {% include "front/snippets/node.html" %}
  54. </div>
  55. <div role="tabpanel" class="tab-pane" id="php">
  56. {% include "front/snippets/php.html" %}
  57. </div>
  58. <div class="tab-pane" id="browser">
  59. {% include "front/snippets/browser.html" %}
  60. </div>
  61. <div class="tab-pane" id="email">
  62. <div class="instructions">
  63. As an alternative to HTTP/HTTPS requests,
  64. you can "ping" this check by sending an
  65. email message to
  66. <div class="email-address">
  67. <a href="mailto:{{ check.email }}">{{ check.email }}</a>
  68. </div>
  69. </div>
  70. </div>
  71. </div>
  72. </div>
  73. </div>
  74. </div>
  75. </div>
  76. <div class="get-started-bleed">
  77. <div class="container">
  78. <div class="row">
  79. <div id="get-started" class="col-sm-6 col-sm-offset-3">
  80. <h2>E-mail Address to Receive Alerts:</h2>
  81. <form action="{% url 'hc-login' %}" method="post">
  82. {% csrf_token %}
  83. <div class="form-group">
  84. <div class="input-group input-group-lg">
  85. <div class="input-group-addon">@</div>
  86. <input
  87. type="email"
  88. class="form-control"
  89. id="id_email"
  90. name="email"
  91. autocomplete="email"
  92. placeholder="Email">
  93. </div>
  94. </div>
  95. <div class="clearfix">
  96. <button type="submit" class="btn btn-lg btn-primary pull-right">
  97. Get Started
  98. </button>
  99. </div>
  100. </form>
  101. </div>
  102. </div>
  103. </div>
  104. </div>
  105. <div class="container">
  106. <div class="row">
  107. <div class="col-sm-12">
  108. <h2 class="tour-title">A quick peek of what's inside:</h2>
  109. </div>
  110. </div>
  111. <div class="row tour-section">
  112. <div class="col-sm-8">
  113. <img
  114. class="img-responsive"
  115. src="{% static 'img/my_checks.png' %}" alt="My Checks page" />
  116. </div>
  117. <div class="col-sm-4">
  118. <p>
  119. A list of your checks, one for each Cron job, daemon or
  120. periodically running task you want to monitor.
  121. </p>
  122. <p>
  123. Give names to your checks to easily recognize them
  124. later. Adjust Period and Grace time to match periodicity
  125. and duration of your tasks.
  126. </p>
  127. </div>
  128. </div>
  129. <div class="row tour-section">
  130. <div class="col-sm-8">
  131. <img
  132. class="img-responsive"
  133. src="{% static 'img/period_grace.png' %}" alt="Period/Grace Time dialog" />
  134. </div>
  135. <div class="col-sm-4">
  136. Each check has configurable <strong>Period</strong> and <strong>Grace Time</strong> parameters.
  137. Depending on these parameters and time since the last ping, the check is in one of the
  138. following states:
  139. <table class="table">
  140. <tr>
  141. <td>
  142. <span class="glyphicon glyphicon-question-sign new"></span>
  143. </td>
  144. <td>
  145. New.
  146. A check that has been created, but has not received any pings yet.
  147. </td>
  148. </tr>
  149. <tr>
  150. <td>
  151. <span class="glyphicon glyphicon-ok-sign up"></span>
  152. </td>
  153. <td>
  154. Up.
  155. Time since last ping has not exceeded <strong>Period</strong>.
  156. </td>
  157. </tr>
  158. <tr>
  159. <td>
  160. <span class="glyphicon glyphicon-exclamation-sign grace"></span>
  161. </td>
  162. <td>
  163. Late.
  164. Time since last ping has exceeded <strong>Period</strong>,
  165. but has not yet exceeded <strong>Period</strong> + <strong>Grace</strong>.
  166. </td>
  167. </tr>
  168. <tr>
  169. <td>
  170. <span class="glyphicon glyphicon-exclamation-sign down"></span>
  171. </td>
  172. <td>
  173. Down.
  174. Time since last ping has exceeded <strong>Period</strong> + <strong>Grace</strong>.
  175. When check goes from "Late" to "Down", HealthChecks
  176. sends you an email alert.
  177. </td>
  178. </tr>
  179. </table>
  180. </div>
  181. </div>
  182. </div>
  183. {% endblock %}