1 #!{{ python_executable }}
6 cgitb.enable(display=0, logdir="/tmp/cgi.log")
8 json_file = "{{ json_file }}"
9 result = json.load(open(json_file))
12 print "<link rel=\"stylesheet\" href=\"pure-min.css\">"
13 print "<link rel=\"stylesheet\" href=\"/style.css\">"
15 print "<h1>Monitoring :</h1>"
16 print "<p><em>Last time of monitoring process : %s</em></p>" % (result['datetime'])
17 del result['datetime']
20 print "<h2>These scripts and promises have failed :</h2>"
23 print "<h3>%s</h3><p style=\"padding-left:30px;\">%s</p>" % (r, result[r])
26 print "<h2>These scripts and promises were successful :</h2>"
30 print "<li>%s</li>" % (r)
32 print "</body></html>"