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
|
<h1>Connection <b><%= fmt_string(connection.name) %></b></h1>
<div class="section">
<h2>Overview</h2>
<div class="hider updatable">
<% if (connection.recv_oct) { %>
<table class="facts">
<tr>
<th>From client</th>
<td>
<% if (connection.recv_oct_details) { %>
<span class="mini-highlight"><%= fmt_bytes(connection.recv_oct_details.rate) %>/s</span>
<% } %>
</td>
</tr>
<tr>
<th>To client</th>
<td>
<% if (connection.send_oct_details) { %>
<span class="mini-highlight"><%= fmt_bytes(connection.send_oct_details.rate) %>/s</span>
</td>
<% } %>
</tr>
</table>
<% } %>
<table class="facts">
<% if (nodes_interesting) { %>
<tr>
<th>Node</th>
<td><%= fmt_string(connection.node) %></td>
</tr>
<% } %>
<% if (vhosts_interesting) { %>
<tr>
<th>Virtual host</th>
<td><%= fmt_string(connection.vhost) %></td>
</tr>
<% } %>
<tr>
<th>Username</th>
<td><%= fmt_string(connection.user) %></td>
</tr>
<tr>
<th>Protocol</th>
<td><%= connection.protocol %></td>
</tr>
<% if (connection.ssl) { %>
<tr>
<th>SSL</th>
<td><%= fmt_boolean(connection.ssl) %></td>
</tr>
<% } %>
<% if (connection.auth_mechanism) { %>
<tr>
<th>Authentication</th>
<td><%= connection.auth_mechanism %></td>
</tr>
<% } %>
</table>
<% if (connection.state) { %>
<table class="facts">
<tr>
<th>State</th>
<td class="status"><%= fmt_connection_state(connection) %></td>
</tr>
<tr>
<th>Timeout</th>
<td><% if (connection.timeout != 0) { %><%= connection.timeout %>s<% } %></td>
</tr>
<tr>
<th>Frame max</th>
<td><%= connection.frame_max %> bytes</td>
</tr>
</table>
<% } %>
</div>
</div>
<div class="section">
<h2>Channels</h2>
<div class="hider updatable">
<%= format('channels-list', {'channels': channels, 'mode': 'connection'}) %>
</div>
</div>
<% if (connection.ssl) { %>
<div class="section">
<h2>SSL</h2>
<div class="hider">
<table class="facts">
<tr>
<th>Protocol Version</th>
<td><%= connection.ssl_protocol %></td>
</tr>
<tr>
<th>Key Exchange Algorithm</th>
<td><%= connection.ssl_key_exchange %></td>
</tr>
<tr>
<th>Cipher Algorithm</th>
<td><%= connection.ssl_cipher %></td>
</tr>
<tr>
<th>Hash Algorithm</th>
<td><%= connection.ssl_hash %></td>
</tr>
</table>
<% if (connection.peer_cert_issuer != '') { %>
<table class="facts">
<tr>
<th>Peer Certificate Issuer</th>
<td><%= connection.peer_cert_issuer %></td>
</tr>
<tr>
<th>Peer Certificate Subject</th>
<td><%= connection.peer_cert_subject %></td>
</tr>
<tr>
<th>Peer Certificate Validity</th>
<td><%= connection.peer_cert_validity %></td>
</tr>
</table>
<% } %>
</div>
</div>
<% } %>
<% if (properties_size(connection.client_properties) > 0) { %>
<div class="section-hidden">
<h2>Client properties</h2>
<div class="hider">
<%= fmt_table_long(connection.client_properties) %>
</div>
</div>
<% } %>
<div class="section-hidden">
<h2>Close this connection</h2>
<div class="hider">
<form action="#/connections" method="delete" class="confirm">
<input type="hidden" name="name" value="<%= fmt_string(connection.name) %>"/>
<input type="submit" value="Force Close"/>
</form>
</div>
</div>
|