Add "Virt" servers, shown only on pages: "Stats" and "Runtime". Bugs fixed
pull/19/head
Aidaho12 2018-04-18 11:40:49 +06:00
parent 6534d9ca43
commit 54acd562e3
23 changed files with 8 additions and 8 deletions

View File

@ -3,7 +3,7 @@
# Haproxy web interface
A simple web interface(user-frendly web GUI) for managing Haproxy servers. Leave your [feedback](https://github.com/Aidaho12/haproxy-wi/issues)
![alt text](image/8.jpeg "Show config page")
![alt text](image/haproxy-wi-config-show.jpeg "Show config page")
# Capabilities:
1. View statistics of all servers in one place
@ -36,7 +36,7 @@ $ sudo ./install.sh
For Apache just do virtualhost with cgi-bin.
![alt text](image/7.jpeg "Overview page")
![alt text](image/haproxy-wi-overview.jpeg "Overview page")
# Settings
```
@ -50,7 +50,7 @@ Edit $HOME_HAPROXY-WI/cgi-bin/haproxy-webintarface.config with your env
Login http://haproxy-wi-server/users.py, and add: users, groups and servers. Default: admin/admin
![alt text](image/11.jpeg "Admin area")
![alt text](image/haproxy-wi-admin-area.jpeg "Admin area")
Copy ssh key on all HAproxy servers
@ -61,7 +61,7 @@ For Runtime API enable state file on HAproxt servers and need install socat on a
defaults
load-server-state-from-file global
```
![alt text](image/4.jpeg "View logs page")
![alt text](image/haproxy-wi-logs.jpeg "View logs page")
# Start and autostart if service
```

View File

@ -79,9 +79,9 @@ def get_overview():
funct.ssh_command(server[2], commands, server_status="1")
print('</td><td>')
if funct.is_admin():
print('<a id="%s" title="Start HAproxy service" onclick = "if (! confirm(\'Start service?\')) return false;"><img src=/image/pic/start.png alt="start" class="icon"></a>' % server[2])
print('<a id="%s" title="Stop HAproxy service" onclick = "if (! confirm(\'Stop service?\')) return false;"><img src=/image/pic/stop.png alt="start" class="icon"></a>' % server[2])
print('<a id="%s" title="Restart HAproxy service" onclick = "if (! confirm(\'Restart service?\')) return false;"><img src=/image/pic/update.png alt="restart" class="icon"></a>' % server[2])
print('<a id="%s" class="start" title="Start HAproxy service" onclick = "if (! confirm(\'Start service?\')) return false;"><img src=/image/pic/start.png alt="start" class="icon"></a>' % server[2])
print('<a id="%s" class="stop" title="Stop HAproxy service" onclick = "if (! confirm(\'Stop service?\')) return false;"><img src=/image/pic/stop.png alt="start" class="icon"></a>' % server[2])
print('<a id="%s" class="restart" title="Restart HAproxy service" onclick = "if (! confirm(\'Restart service?\')) return false;"><img src=/image/pic/update.png alt="restart" class="icon"></a>' % server[2])
print('<a href="/cgi-bin/configshow.py?serv=%s&open=open#conf" title="Show config"><img src=/image/pic/show.png alt="show" class="icon"></a>' % server[2])
print('<a href="/cgi-bin/config.py?serv=%s&open=open#conf" title="Edit config"><img src=/image/pic/edit.png alt="edit" class="icon"></a>' % server[2])
print('<a href="/cgi-bin/diff.py?serv=%s&open=open#diff" title="Compare config"><img src=/image/pic/compare.png alt="compare" class="icon"></a>' % server[2])

Binary file not shown.

Before

Width:  |  Height:  |  Size: 276 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 225 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 865 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 499 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 472 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 265 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 420 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 597 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 329 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 286 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 289 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 265 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 426 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 270 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 335 KiB

BIN
image/haproxy-wi-logs.jpeg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 453 KiB

BIN
image/haproxy-wi-map.jpeg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 290 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 483 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 551 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 888 KiB

View File

@ -269,7 +269,7 @@ $( function() {
if( data == 'Bad config, check please ' ) {
alert(data);
} else {
showOverview();
setTimeout(showOverview, 2000)
}
},
error: function(){