This repository has been archived by the owner on Dec 27, 2023. It is now read-only.
forked from infincia/AEServmon
-
Notifications
You must be signed in to change notification settings - Fork 1
/
dashboard.html
178 lines (167 loc) · 7.7 KB
/
dashboard.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
{% comment % }}
Copyright (c) 2009, Steve Oliver ([email protected])
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of the <organization> nor the
names of its contributors may be used to endorse or promote products
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY STEVE OLIVER ''AS IS'' AND ANY
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL STEVE OLIVER BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
{% endcomment %}
{% extends 'core.html' %}
{% block controlpanel %}
<img style="display:inline;" src="/images/cloud.jpg"></img>
<h1>Cloud Broker Monitor</h1>
<div id="userdisplay">
Logged in as:<br/>
{{ user }}
</div><!---userdisplay--->
<div id="linklist">
<ul>
<li><a href="/">Home</a></li>
<li><a href="/admin">Admin</a></li>
<li><a href="/admin/addserver">Add Servers</a></li>
</div><!---linklist--->
{% endblock %}
{% block breadcrumbs %}
<div id="breadcrumbs">EC2 Dashboard</div>
{% endblock %}
{% block pagearea %}
<!--<h3>Google Vizu</h3>
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<div id="chart_div"></div>
<script type="text/javascript">
google.load("visualization", "1", {packages:["areachart"]});
google.setOnLoadCallback(drawChart);
function drawChart() {
var data = new google.visualization.DataTable();
data.addColumn('string', 'Year');
data.addColumn('number', 'Sales');
data.addColumn('number', 'Expenses');
data.addRows(4);
data.setValue(0, 0, '2004');
data.setValue(0, 1, 1000);
data.setValue(0, 2, 400);
data.setValue(1, 0, '2005');
data.setValue(1, 1, 1170);
data.setValue(1, 2, 460);
data.setValue(2, 0, '2006');
data.setValue(2, 1, 660);
data.setValue(2, 2, 1120);
data.setValue(3, 0, '2007');
data.setValue(3, 1, 1030);
data.setValue(3, 2, 540);
var chart = new google.visualization.AreaChart(document.getElementById('chart_div'));
chart.draw(data, {width: 600, height: 400, legend: 'bottom', title: 'Company Performance'});
}
</script>
-->
<div class="tabber">
<div class="tabbertab" title="m1.small linux">
{% if monitoroptions.us_east_small_linux_valid %}
<b>us-east-1 m1.small linux</b>
<script type="text/javascript" src="amstock/swfobject.js"></script>
<div id="us-east_small_linux">You need to upgrade your Flash Player</div>
<script type="text/javascript">
var so = new SWFObject("/amstock/amstock.swf", "amstock", "800", "400", "8", "#FFFFFF");
so.addVariable("path", "/data/");
so.addVariable("settings_file", encodeURIComponent("/amstock/settings.xml"));
so.addVariable("preloader_color", "#999999");
so.addVariable("additional_chart_settings", "{{ us_east_small_linux_data }}");
so.write("us-east_small_linux");
</script>
{% endif %}
{% if monitoroptions.us_west_small_linux_valid %}
<b>us-west-1 m1.small linux</b>
<script type="text/javascript" src="amstock/swfobject.js"></script>
<div id="us-west_small_linux">You need to upgrade your Flash Player</div>
<script type="text/javascript">
var so = new SWFObject("/amstock/amstock.swf", "amstock", "800", "400", "8", "#FFFFFF");
so.addVariable("path", "/data/");
so.addVariable("settings_file", encodeURIComponent("/amstock/settings.xml"));
so.addVariable("preloader_color", "#999999");
so.addVariable("additional_chart_settings","{{ us_west_small_linux_data }}");
so.write("us-west_small_linux");
</script>
{% endif %}
{% if monitoroptions.eu_west_small_linux_valid %}
<b>eu-west-1 m1.small linux</b>
<script type="text/javascript" src="amstock/swfobject.js"></script>
<div id="eu-west_small_linux">You need to upgrade your Flash Player</div>
<script type="text/javascript">
var so = new SWFObject("/amstock/amstock.swf", "amstock", "800", "400", "8", "#FFFFFF");
so.addVariable("path", "/data/");
so.addVariable("settings_file", encodeURIComponent("/amstock/settings.xml"));
so.addVariable("preloader_color", "#999999");
so.addVariable("additional_chart_settings","{{ eu_west_small_linux_data }}");
so.write("eu-west_small_linux");
</script>
{% endif %}
</div>
<div class="tabbertab" title="m1.large linux">
{% if monitoroptions.us_east_large_linux_valid %}
<b>us-east-1 m1.large linux</b>
<script type="text/javascript" src="amstock/swfobject.js"></script>
<div id="us-east_large_linux">You need to upgrade your Flash Player</div>
<script type="text/javascript">
var so = new SWFObject("/amstock/amstock.swf", "amstock", "800", "400", "8", "#FFFFFF");
so.addVariable("path", "/data/");
so.addVariable("settings_file", encodeURIComponent("/amstock/settings.xml"));
so.addVariable("preloader_color", "#999999");
so.addVariable("additional_chart_settings", "{{ us_east_large_linux_data }}");
so.write("us-east_large_linux");
</script>
{% endif %}
{% if monitoroptions.us_west_large_linux_valid %}
<b>us-west-1 m1.large linux</b>
<script type="text/javascript" src="amstock/swfobject.js"></script>
<div id="us-west_large_linux">You need to upgrade your Flash Player</div>
<script type="text/javascript">
var so = new SWFObject("/amstock/amstock.swf", "amstock", "800", "400", "8", "#FFFFFF");
so.addVariable("path", "/data/");
so.addVariable("settings_file", encodeURIComponent("/amstock/settings.xml"));
so.addVariable("preloader_color", "#999999");
so.addVariable("additional_chart_settings","{{ us_west_large_linux_data }}");
so.write("us-west_large_linux");
</script>
{% endif %}
{% if monitoroptions.eu_west_large_linux_valid %}
<b>eu-west-1 m1.large linux</b>
<script type="text/javascript" src="amstock/swfobject.js"></script>
<div id="eu-west_large_linux">You need to upgrade your Flash Player</div>
<script type="text/javascript">
var so = new SWFObject("/amstock/amstock.swf", "amstock", "800", "400", "8", "#FFFFFF");
so.addVariable("path", "/data/");
so.addVariable("settings_file", encodeURIComponent("/amstock/settings.xml"));
so.addVariable("preloader_color", "#999999");
so.addVariable("additional_chart_settings","{{ eu_west_large_linux_data }}");
so.write("eu-west_large_linux");
</script>
{% endif %}
</div>
</div>
</div>
<script type="text/javascript" src="files/tabber.js">
</script>
<link rel="stylesheet" href="files/example.css" TYPE="text/css" MEDIA="screen">
<script type="text/javascript">
/* Optional: Temporarily hide the "tabber" class so it does not "flash"
on the page as plain HTML. After tabber runs, the class is changed
to "tabberlive" and it will appear. */
document.write('<style type="text/css">.tabber{display:none;}<\/style>');
</script>
{% endblock %}