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 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330
|
<h1>Overview</h1>
<div class="updatable">
<%
var rabbit_version = 'unknown';
var erlang_version = 'unknown';
var version_warning = false;
if (user_monitor) {
for (var i = 0; i < nodes.length; i++) {
var node = nodes[i];
var r = fmt_rabbit_version(node.applications);
var e = node.erlang_version;
if (rabbit_version == 'unknown') {
rabbit_version = r;
erlang_version = e;
} else {
if (r != 'unknown' && (rabbit_version != r || erlang_version != e)) {
version_warning = true;
}
}
}
}
if (version_warning) {
%>
<p class="warning">
Version mismatch<br/><br/>
The nodes in this cluster are running different versions of
RabbitMQ and / or Erlang. This cluster may behave unpredictably.
You are very strongly recommended to ensure that all nodes in this cluster
run the same versions of RabbitMQ and Erlang.
</p>
<table class="list">
<tr>
<th>Name</th>
<th>RabbitMQ version</th>
<th>Erlang version</th>
</tr>
<%
for (var i = 0; i < nodes.length; i++) {
var node = nodes[i];
%>
<tr<%= alt_rows(i)%>>
<td><%= fmt_string(node.name) %></td>
<td><%= fmt_rabbit_version(node.applications) %></td>
<td><%= node.erlang_version %></td>
</tr>
<% } %>
</table>
<% } %>
</div>
<div class="section">
<h2>Totals</h2>
<div class="hider updatable">
<% if (overview.statistics_db_node != 'not_running') { %>
<h3>Queued messages <span class="help" id="queued-messages"></span></h3>
<div class="box">
<%= queue_length(overview.queue_totals, 'Ready', 'messages_ready') %>
<%= queue_length(overview.queue_totals, 'Unacknowledged', 'messages_unacknowledged') %>
<%= queue_length(overview.queue_totals, 'Total', 'messages') %>
</div>
<% if (statistics_level == 'fine') { %>
<h3>Message rates <span class="help" id="message-rates"></span></h3>
<div class="box">
<%= message_rates(overview.message_stats) %>
</div>
<% } %>
<% } else { %>
Totals not available
<% } %>
</div>
</div>
<% if (user_monitor) { %>
<div class="section">
<h2>Nodes</h2>
<div class="hider updatable">
<table class="list">
<tr>
<th>Name</th>
<th>
File descriptors <span class="help" id="file-descriptors"></span>
<sub>(used / available)</sub>
</th>
<th>
Socket descriptors <span class="help" id="socket-descriptors"></span>
<sub>(used / available)</sub>
</th>
<th>
Erlang processes
<sub>(used / available)</sub>
</th>
<th>
Memory
</th>
<th>
Disk space
</th>
<th>Uptime</th>
<th>Type</th>
</tr>
<%
for (var i = 0; i < nodes.length; i++) {
var node = nodes[i];
%>
<tr<%= alt_rows(i)%>>
<td>
<%= link_node(node.name) %>
</td>
<% if (!node.running) { %>
<td class="status" colspan="6">
<div class="red">
Node not running
</div>
</td>
<% } else if (node.external_stats_not_running) { %>
<td class="status" colspan="6">
<div class="red">
Could not contact management agent
</div>
</td>
<% } else { %>
<td class="status">
<div class="<%= fmt_color(node.fd_used / node.fd_total,
FD_THRESHOLDS) %>">
<%= fmt_fd_used(node.fd_used) %> / <%= node.fd_total %>
</div>
</td>
<td class="status">
<div class="<%= fmt_color(node.sockets_used / node.sockets_total,
SOCKETS_THRESHOLDS) %>">
<%= node.sockets_used %> / <%= node.sockets_total %>
</div>
</td>
<td class="status">
<div class="<%= fmt_color(node.proc_used / node.proc_total,
PROCESS_THRESHOLDS) %>">
<%= node.proc_used %> / <%= node.proc_total %>
</div>
</td>
<td class="status">
<% if (node.mem_limit != 'memory_monitoring_disabled') { %>
<% if (node.mem_alarm) { %>
<div class="red">
<%= fmt_bytes(node.mem_used) %>
<span class="help" id="memory-alarm"></span>
</div>
<% } else { %>
<div class="green">
<%= fmt_bytes(node.mem_used) %>
</div>
<% } %>
<sub><%= fmt_bytes(node.mem_limit) %> high watermark</sub>
<% } else { %>
<%= fmt_bytes(node.mem_used) %>
<% } %>
</td>
<td class="status">
<% if (node.disk_free_limit != 'disk_free_monitoring_disabled') { %>
<% if (node.disk_free_alarm) { %>
<div class="red">
<%= fmt_bytes(node.disk_free) %>
<span class="help" id="disk-free-alarm"></span>
</div>
<% } else { %>
<div class="green">
<%= fmt_bytes(node.disk_free) %>
</div>
<% } %>
<% if (node.disk_free_limit == 0) { %>
<sub>No low watermark <span class="help" id="disk-monitoring-no-watermark"></span></sub>
<% } else { %>
<sub><%= fmt_bytes(node.disk_free_limit) %> low watermark </sub>
<% } %>
<% } else { %>
(not available)
<% } %>
</td>
<td class="r">
<%= fmt_uptime(node.uptime) %>
</td>
<% } %>
<td class="c">
<% if (node.type == 'disc') { %>
<acronym title="Broker definitions are held on disc.">Disc</acronym>
<% } else { %>
<acronym title="Broker definitions are held in RAM. Messages will still be written to disc if necessary.">RAM</acronym>
<% } %>
<% if (overview.statistics_db_node == node.name) { %>
<acronym title="This node contains the management statistics database">Stats</acronym>
<% } %>
<% if (overview.node == node.name) { %>
<acronym title="You are accessing the management UI from this node.">*</acronym>
<% } %>
</td>
</tr>
<% } %>
</table>
<% if (!version_warning) { %>
<p>
RabbitMQ <b><%= rabbit_version %></b> on Erlang <b><%= erlang_version %></b>
</p>
<% } %>
<% if (overview.statistics_db_node == 'not_running') { %>
<p class="status-error">Statistics database could not be contacted. Message rates and queue lengths will not be shown.</p>
<% } %>
</div>
</div>
<div class="section">
<h2>Ports and contexts</h2>
<div class="hider updatable">
<h3>Listening ports</h3>
<table class="list">
<tr>
<th>Protocol</th>
<% if (nodes_interesting) { %>
<th>Host <small>(node)</small></th>
<% } %>
<th>Bound to</th>
<th>Port</th>
</tr>
<%
for (var i = 0; i < overview.listeners.length; i++) {
var listener = overview.listeners[i];
%>
<tr<%= alt_rows(i)%>>
<td><%= listener.protocol %></td>
<% if (nodes_interesting) { %>
<td><%= fmt_node_host(listener.node) %></td>
<% } %>
<td><%= listener.ip_address %></td>
<td><%= listener.port %></td>
</tr>
<% } %>
</table>
<h3>Web contexts</h3>
<table class="list">
<tr>
<th>Context</th>
<% if (nodes_interesting) { %>
<th>Host <small>(node)</small></th>
<% } %>
<th>Bound to</th>
<th>Port</th>
<th>SSL</th>
<th>Path</th>
</tr>
<%
for (var i = 0; i < overview.contexts.length; i++) {
var context = overview.contexts[i];
%>
<tr<%= alt_rows(i)%>>
<td><%= context.description %></td>
<% if (nodes_interesting) { %>
<td><%= fmt_node_host(context.node) %></td>
<% } %>
<td><%= (context.ip != undefined) ? context.ip : "0.0.0.0" %></td>
<td><%= context.port %></td>
<td class="c"><%= fmt_boolean(context.ssl || false) %></td>
<td><%= context.path %></td>
</tr>
<% } %>
</table>
</div>
</div>
<div class="section-hidden administrator-only">
<h2>Import / export definitions</h2>
<div class="hider">
<form action="api/definitions" method="post" enctype="multipart/form-data">
<table class="two-col-layout">
<tr>
<td>
<h3>Export</h3>
<p>
<label for="download-filename">Filename for download:</label><br/>
<input type="text" id="download-filename" value="<%= fmt_download_filename(overview.node) %>" class="wide" />
</p>
</td>
<td>
<h3>Import</h3>
<p>
<label>Definitions file:</label><br/>
<input type="file" name="file"/>
</p>
</td>
</tr>
<tr>
<td>
<p>
<button id="download-definitions">Download broker definitions</button>
<span class="help" id="export-definitions"></span>
</p>
</td>
<td>
<p>
<input type="hidden" name="redirect" value="../#/import-succeeded"/>
<input type="submit" value="Upload broker definitions"/>
<span class="help" id="import-definitions"></span>
</p>
</td>
</tr>
</table>
</form>
</div>
</div>
<% if (overview.statistics_level != 'fine') { %>
<div class="section-hidden">
<h2>Message Rates Disabled</h2>
<div class="hider">
<p>
The statistics level in this RabbitMQ server is currently set to
<code><%= overview.statistics_level %></code>. Message rates are therefore
disabled.
</p>
<p>
To re-enable message rates, edit your configuration file and either
set <code>collect_statistics</code> to <code>fine</code> in
the <code>rabbit</code> application, or
set <code>force_fine_statistics</code> to <code>true</code> in
the <code>rabbitmq_management_agent</code> application
</p>
</div>
</div>
<% } %>
<% } %>
|