Browse Source

v2.5.6.2

pull/19/head
Aidaho12 7 years ago
parent
commit
96ed5b6fda
  1. 8
      app/ovw.py

8
app/ovw.py

@ -38,15 +38,15 @@ def get_overviewServers():
listhap = sql.get_dick_permit()
commands = [ "uname -smor",
"haproxy -v |head -1",
status_command + "|grep Active | sed 's/^[ \t]*//'" ]
status_command + "|grep Active |awk -F':' '{print $2\":\"$3\":\"$4}' | sed 's/^[ \t]*//'" ]
commands1 = [ "top -u haproxy -b -n 1" ]
for server in sorted(listhap):
print('<tr><td class="overviewTr first-collumn"><a name="'+server[1]+'"></a><h3 title="IP ' + server[2] + '">' + server[1] + ':</h3></td>')
print('<td class="overviewTd"><pre>')
print('<td class="overviewTd"><pre style="font-size: 12px;">')
funct.ssh_command(server[2], commands)
print('</pre></td><td><pre>')
print('</pre></td><td><pre style="font-size: 12px;">')
funct.ssh_command(server[2], commands1)
print('</td><td style="padding-top: 10px; padding-bottom: 10px;">')
print('</td><td style="padding: 10px;font-size: 13px;">')
funct.show_backends(server[2])
print('</pre></td><td></td></tr>')

Loading…
Cancel
Save