├── __init__.py ├── zktree ├── __init__.py ├── urls.py ├── templates │ └── zktree │ │ ├── error.html │ │ └── index.html ├── views.py └── models.py ├── zkadmin ├── __init__.py ├── urls.py ├── views.py ├── templates │ └── zkadmin │ │ ├── index.html │ │ └── detail.html └── models.py ├── .gitignore ├── css ├── zookeeper_dashboard.css └── blueprint │ ├── print.css │ ├── ie.css │ └── screen.css ├── lib.linux-i686-2.6 ├── zookeeper.so └── libzookeeper_mt.so.2 ├── manage.py ├── urls.py ├── settings.py ├── README.textile └── LICENSE.txt /__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /zktree/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /zkadmin/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.py[co] 2 | cli_log.txt 3 | -------------------------------------------------------------------------------- /css/zookeeper_dashboard.css: -------------------------------------------------------------------------------- 1 | tr.oddrow { background-color: #E0E0E0; color: black; } 2 | -------------------------------------------------------------------------------- /lib.linux-i686-2.6/zookeeper.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phunt/zookeeper_dashboard/HEAD/lib.linux-i686-2.6/zookeeper.so -------------------------------------------------------------------------------- /lib.linux-i686-2.6/libzookeeper_mt.so.2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phunt/zookeeper_dashboard/HEAD/lib.linux-i686-2.6/libzookeeper_mt.so.2 -------------------------------------------------------------------------------- /zktree/urls.py: -------------------------------------------------------------------------------- 1 | from django.conf.urls.defaults import * 2 | 3 | urlpatterns = patterns('zookeeper_dashboard.zktree.views', 4 | (r'^(?P.*)/$','index'), 5 | (r'^$','index'), 6 | ) 7 | -------------------------------------------------------------------------------- /zkadmin/urls.py: -------------------------------------------------------------------------------- 1 | from django.conf.urls.defaults import * 2 | 3 | urlpatterns = patterns('zookeeper_dashboard.zkadmin.views', 4 | (r'^server/(?P\d+)/$','detail'), 5 | (r'^$','index'), 6 | ) 7 | -------------------------------------------------------------------------------- /manage.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/python 2 | from django.core.management import execute_manager 3 | try: 4 | import settings # Assumed to be in the same directory. 5 | except ImportError: 6 | import sys 7 | sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to run django-admin.py, passing it your settings module.\n(If the file settings.py does indeed exist, it's causing an ImportError somehow.)\n" % __file__) 8 | sys.exit(1) 9 | 10 | if __name__ == "__main__": 11 | execute_manager(settings) 12 | -------------------------------------------------------------------------------- /zktree/templates/zktree/error.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | Error Accessing ZooKeeper Cluster 11 | 12 | 13 | 14 |
15 |

Error Accessing ZooKeeper Cluster

16 | 17 | Failed due to '{{error}}' 18 |
19 | 20 | -------------------------------------------------------------------------------- /zkadmin/views.py: -------------------------------------------------------------------------------- 1 | from django.shortcuts import render_to_response 2 | from django.conf import settings 3 | 4 | from zookeeper_dashboard.zkadmin.models import ZKServer 5 | 6 | ZOOKEEPER_SERVERS = getattr(settings,'ZOOKEEPER_SERVERS').split(',') 7 | 8 | def index(request): 9 | server_data = [] 10 | for i, server in enumerate(ZOOKEEPER_SERVERS): 11 | zkserver = ZKServer(server) 12 | zkserver.id = i 13 | server_data.append(zkserver) 14 | 15 | return render_to_response('zkadmin/index.html', 16 | {'ZOOKEEPER_SERVERS':ZOOKEEPER_SERVERS, 17 | 'server_data':server_data}) 18 | 19 | def detail(request, server_id): 20 | server_data = ZKServer(ZOOKEEPER_SERVERS[int(server_id)]) 21 | server_data.id = server_id 22 | return render_to_response('zkadmin/detail.html', 23 | {'server_data':server_data}) 24 | -------------------------------------------------------------------------------- /urls.py: -------------------------------------------------------------------------------- 1 | from django.conf.urls.defaults import * 2 | from django.conf import settings 3 | 4 | # Uncomment the next two lines to enable the admin: 5 | # from django.contrib import admin 6 | # admin.autodiscover() 7 | 8 | urlpatterns = patterns('zookeeper_dashboard', 9 | (r'^cluster/', include('zookeeper_dashboard.zkadmin.urls')), 10 | (r'^tree/', include('zookeeper_dashboard.zktree.urls')), 11 | 12 | # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 13 | # to INSTALLED_APPS to enable admin documentation: 14 | # (r'^admin/doc/', include('django.contrib.admindocs.urls')), 15 | 16 | # Uncomment the next line to enable the admin: 17 | # (r'^admin/(.*)', admin.site.root), 18 | 19 | (r'^$', include('zookeeper_dashboard.zkadmin.urls')), 20 | ) 21 | 22 | if settings.DEBUG: 23 | urlpatterns += patterns('', 24 | (r'^css/(?P.*)$', 'django.views.static.serve', {'document_root': './css'}), 25 | ) 26 | -------------------------------------------------------------------------------- /zktree/views.py: -------------------------------------------------------------------------------- 1 | from django.shortcuts import render_to_response 2 | import string 3 | 4 | from zookeeper_dashboard.zktree.models import ZNode 5 | 6 | def istext(s, text_chars="".join(map(chr, range(32, 127))) + "\n\r\t\b"): 7 | if "\0" in s: return False 8 | if not s: return True 9 | t = s.translate(string.maketrans("", ""), text_chars) 10 | return len(t) == 0 11 | 12 | def index(request, path=""): 13 | print(path) 14 | path = "/" + path 15 | try: 16 | znode = ZNode(path) 17 | znode.children.sort() 18 | if not istext(znode.data): 19 | znode.data = "0x" + "".join(["%d" % (ord(d)) for d in znode.data]) 20 | znode.datatype = "bin" 21 | else: 22 | znode.datatype = "str" 23 | 24 | return render_to_response('zktree/index.html', 25 | {'znode':znode}) 26 | except Exception as err: 27 | return render_to_response('zktree/error.html', 28 | {'error':str(err)}) 29 | -------------------------------------------------------------------------------- /css/blueprint/print.css: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------------- 2 | 3 | 4 | Blueprint CSS Framework 0.9 5 | http://blueprintcss.org 6 | 7 | * Copyright (c) 2007-Present. See LICENSE for more info. 8 | * See README for instructions on how to use Blueprint. 9 | * For credits and origins, see AUTHORS. 10 | * This is a compressed file. See the sources in the 'src' directory. 11 | 12 | ----------------------------------------------------------------------- */ 13 | 14 | /* print.css */ 15 | body {line-height:1.5;font-family:"Helvetica Neue", Arial, Helvetica, sans-serif;color:#000;background:none;font-size:10pt;} 16 | .container {background:none;} 17 | hr {background:#ccc;color:#ccc;width:100%;height:2px;margin:2em 0;padding:0;border:none;} 18 | hr.space {background:#fff;color:#fff;visibility:hidden;} 19 | h1, h2, h3, h4, h5, h6 {font-family:"Helvetica Neue", Arial, "Lucida Grande", sans-serif;} 20 | code {font:.9em "Courier New", Monaco, Courier, monospace;} 21 | a img {border:none;} 22 | p img.top {margin-top:0;} 23 | blockquote {margin:1.5em;padding:1em;font-style:italic;font-size:.9em;} 24 | .small {font-size:.9em;} 25 | .large {font-size:1.1em;} 26 | .quiet {color:#999;} 27 | .hide {display:none;} 28 | a:link, a:visited {background:transparent;font-weight:700;text-decoration:underline;} 29 | a:link:after, a:visited:after {content:" (" attr(href) ")";font-size:90%;} -------------------------------------------------------------------------------- /zkadmin/templates/zkadmin/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | ZooKeeper Dashboard 11 | 12 | 13 | 14 |
15 |

ZooKeeper Dashboard

16 |
17 |
18 |

Cluster Information

19 | 20 | 21 | 22 | {% for sd in server_data %} 23 | 24 | {% endfor %} 25 |
servermode#connversion
{{ sd.host }}:{{ sd.port }} {% ifequal sd.mode "leader" %}{% endifequal %} {{sd.mode|capfirst}} {% ifequal sd.mode "leader" %}{% endifequal %} {{ sd.sessions|length }} {{ sd.version }}
26 |

27 |

28 | 29 |
30 | 31 |
32 |

ZNode Tree

33 | 34 | Root ZNode of the cluster 35 |

36 |

37 |
38 |
39 |

Quota Definition

40 | 41 | Information on the current quota configuration 42 | 43 | Quota 44 |

45 |

46 |
47 |
48 |
49 | zookeeper_dashboard was created by 50 | Patrick Hunt and is hosted at GitHub 51 |
52 |
53 |
54 | 55 | 56 | -------------------------------------------------------------------------------- /css/blueprint/ie.css: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------------- 2 | 3 | 4 | Blueprint CSS Framework 0.9 5 | http://blueprintcss.org 6 | 7 | * Copyright (c) 2007-Present. See LICENSE for more info. 8 | * See README for instructions on how to use Blueprint. 9 | * For credits and origins, see AUTHORS. 10 | * This is a compressed file. See the sources in the 'src' directory. 11 | 12 | ----------------------------------------------------------------------- */ 13 | 14 | /* ie.css */ 15 | body {text-align:center;} 16 | .container {text-align:left;} 17 | * html .column, * html div.span-1, * html div.span-2, * html div.span-3, * html div.span-4, * html div.span-5, * html div.span-6, * html div.span-7, * html div.span-8, * html div.span-9, * html div.span-10, * html div.span-11, * html div.span-12, * html div.span-13, * html div.span-14, * html div.span-15, * html div.span-16, * html div.span-17, * html div.span-18, * html div.span-19, * html div.span-20, * html div.span-21, * html div.span-22, * html div.span-23, * html div.span-24 {display:inline;overflow-x:hidden;} 18 | * html legend {margin:0px -8px 16px 0;padding:0;} 19 | sup {vertical-align:text-top;} 20 | sub {vertical-align:text-bottom;} 21 | html>body p code {*white-space:normal;} 22 | hr {margin:-8px auto 11px;} 23 | img {-ms-interpolation-mode:bicubic;} 24 | .clearfix, .container {display:inline-block;} 25 | * html .clearfix, * html .container {height:1%;} 26 | fieldset {padding-top:0;} 27 | textarea {overflow:auto;} 28 | input.text, input.title, textarea {background-color:#fff;border:1px solid #bbb;} 29 | input.text:focus, input.title:focus {border-color:#666;} 30 | input.text, input.title, textarea, select {margin:0.5em 0;} 31 | input.checkbox, input.radio {position:relative;top:.25em;} 32 | form.inline div, form.inline p {vertical-align:middle;} 33 | form.inline label {position:relative;top:-0.25em;} 34 | form.inline input.checkbox, form.inline input.radio, form.inline input.button, form.inline button {margin:0.5em 0;} 35 | button, input.button {position:relative;top:0.25em;} -------------------------------------------------------------------------------- /zkadmin/models.py: -------------------------------------------------------------------------------- 1 | import re 2 | import StringIO 3 | import telnetlib 4 | 5 | OP_READ = 1 6 | OP_WRITE = 4 7 | OP_CONNECT = 8 8 | OP_ACCEPT = 16 9 | 10 | class Session(object): 11 | def __init__(self, session): 12 | m = re.search('/(\d+\.\d+\.\d+\.\d+):(\d+)\[(\d+)\]\((.*)\)', session) 13 | self.host = m.group(1) 14 | self.port = m.group(2) 15 | self.interest_ops = m.group(3) 16 | for d in m.group(4).split(","): 17 | k,v = d.split("=") 18 | self.__dict__[k] = v 19 | 20 | class ZKServer(object): 21 | def __init__(self, server): 22 | self.host, self.port = server.split(':') 23 | try: 24 | stat = self.send_cmd('stat\n') 25 | envi = self.send_cmd('envi\n') 26 | except: 27 | self.mode = "Unavailable" 28 | self.sessions = [] 29 | self.version = "Unknown" 30 | return 31 | 32 | sio = StringIO.StringIO(stat) 33 | line = sio.readline() 34 | m = re.search('.*: (\d+\.\d+\.\d+)-.*', line) 35 | self.version = m.group(1) 36 | sio.readline() 37 | self.sessions = [] 38 | for line in sio: 39 | if not line.strip(): 40 | break 41 | self.sessions.append(Session(line.strip())) 42 | for line in sio: 43 | attr, value = line.split(':') 44 | attr = attr.strip().replace(" ", "_").replace("/", "_").lower() 45 | self.__dict__[attr] = value.strip() 46 | 47 | self.min_latency, self.avg_latency, self.max_latency = self.latency_min_avg_max.split("/") 48 | 49 | self.envi = [] 50 | sio = StringIO.StringIO(envi) 51 | for line in sio: 52 | if not line.strip(): break 53 | attr, equ, value = line.partition("=") 54 | if not equ: continue 55 | self.envi.append((attr, value)) 56 | 57 | def send_cmd(self, cmd): 58 | tn = telnetlib.Telnet(self.host, self.port) 59 | 60 | tn.write(cmd) 61 | 62 | result = tn.read_all() 63 | tn.close() 64 | 65 | return result 66 | -------------------------------------------------------------------------------- /zkadmin/templates/zkadmin/detail.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | ZooKeeper Server {{server_data.id}} 11 | 12 | 13 | 14 |
15 |

ZooKeeper Server {{server_data.host}}:{{server_data.port}}

16 |
17 |
18 |

Summary

19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 |
Host{{server_data.host}}
Client port{{server_data.port}}
Mode{{server_data.mode|capfirst}}
Zxid{{server_data.zxid}}
Node count{{server_data.node_count}}
Connection count{{server_data.sessions|length}}
Received{{server_data.received}}
Sent{{server_data.sent}}
Outstanding{{server_data.outstanding}}
Max Latency{{server_data.max_latency}}
Avg Latency{{server_data.avg_latency}}
Min Latency{{server_data.min_latency}}
34 |
35 |
36 |
37 |

Connections (clients)

38 | 39 | 40 | 41 | {% for s in server_data.sessions %} 42 | 43 | {% endfor %} 44 |
hostportinterest opsqueued#recved#sent#
{{s.host}}{{s.port}}{{s.interest_ops}}{{s.queued}}{{s.recved}}{{s.sent}}
45 |
46 |
47 |
48 |

Environment

49 | 50 | 51 | 52 | {% for e in server_data.envi %} 53 | 54 | {% endfor %} 55 |
AttributeValue
{{e.0}}{{e.1}}
56 |
57 |
58 |
59 | 60 | 61 | -------------------------------------------------------------------------------- /zktree/models.py: -------------------------------------------------------------------------------- 1 | from django.conf import settings 2 | 3 | from datetime import datetime 4 | import threading 5 | import zookeeper 6 | 7 | PERM_READ = 1 8 | PERM_WRITE = 2 9 | PERM_CREATE = 4 10 | PERM_DELETE = 8 11 | PERM_ADMIN = 16 12 | PERM_ALL = PERM_READ | PERM_WRITE | PERM_CREATE | PERM_DELETE | PERM_ADMIN 13 | 14 | zookeeper.set_log_stream(open("cli_log.txt","w")) 15 | 16 | TIMEOUT = 10.0 17 | 18 | class ZKClient(object): 19 | def __init__(self, servers, timeout): 20 | self.connected = False 21 | self.conn_cv = threading.Condition( ) 22 | self.handle = -1 23 | 24 | self.conn_cv.acquire() 25 | print("Connecting to %s" % (servers)) 26 | self.handle = zookeeper.init(servers, self.connection_watcher, 30000) 27 | self.conn_cv.wait(timeout) 28 | self.conn_cv.release() 29 | 30 | if not self.connected: 31 | raise Exception("Unable to connect to %s" % (servers)) 32 | 33 | print("Connected, handle is %d" % (self.handle)) 34 | 35 | def connection_watcher(self, h, type, state, path): 36 | self.handle = h 37 | self.conn_cv.acquire() 38 | self.connected = True 39 | self.conn_cv.notifyAll() 40 | self.conn_cv.release() 41 | 42 | def close(self): 43 | zookeeper.close(self.handle) 44 | 45 | def get(self, path, watcher=None): 46 | return zookeeper.get(self.handle, path, watcher) 47 | 48 | def get_children(self, path, watcher=None): 49 | return zookeeper.get_children(self.handle, path, watcher) 50 | 51 | def get_acls(self, path): 52 | return zookeeper.get_acl(self.handle, path) 53 | 54 | ZOOKEEPER_SERVERS = getattr(settings,'ZOOKEEPER_SERVERS') 55 | 56 | class ZNode(object): 57 | def __init__(self, path="/"): 58 | self.path = path 59 | zk = ZKClient(ZOOKEEPER_SERVERS, TIMEOUT) 60 | try: 61 | self.data, self.stat = zk.get(path) 62 | self.stat['ctime'] = datetime.fromtimestamp(self.stat['ctime']/1000) 63 | self.stat['mtime'] = datetime.fromtimestamp(self.stat['mtime']/1000) 64 | self.children = zk.get_children(path) or [] 65 | self.acls = zk.get_acls(path)[1] or [] 66 | for acl in self.acls: 67 | perms = acl['perms'] 68 | perms_list = [] 69 | if perms & PERM_READ: 70 | perms_list.append("PERM_READ") 71 | if perms & PERM_WRITE: 72 | perms_list.append("PERM_WRITE") 73 | if perms & PERM_CREATE: 74 | perms_list.append("PERM_CREATE") 75 | if perms & PERM_DELETE: 76 | perms_list.append("PERM_DELETE") 77 | if perms & PERM_ADMIN: 78 | perms_list.append("PERM_ADMIN") 79 | if perms & PERM_ALL == PERM_ALL: 80 | perms_list = ["PERM_ALL"] 81 | acl['perm_list'] = perms_list 82 | finally: 83 | zk.close() 84 | -------------------------------------------------------------------------------- /zktree/templates/zktree/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | ZooKeeper ZNode {{znode.path}} 11 | 12 | 13 | 14 |
15 |

ZooKeeper ZNode {{znode.path}}

16 | 17 |
18 |
19 | Path : {{znode.path}} 20 |

21 | 22 | Data({{znode.datatype}}) : {{znode.data}} 23 |

24 | 25 |

26 |
27 |
28 |

Stat Information

29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | {% ifnotequal znode.stat.ephemeralOwner 0 %} 39 | 40 | {% endifnotequal %} 41 | 42 | 43 |
czxid0x{{znode.stat.czxid|stringformat:"x"}}
mzxid0x{{znode.stat.mzxid|stringformat:"x"}}
ctime{{znode.stat.ctime|date}} {{znode.stat.ctime|time}} ({{znode.stat.ctime|timesince}} ago)
mtime{{znode.stat.mtime|date}} {{znode.stat.mtime|time}} ({{znode.stat.mtime|timesince}} ago)
version{{znode.stat.version}}
cversion{{znode.stat.cversion}}
aversion{{znode.stat.aversion}}
ephemeralOwner0x{{znode.stat.ephemeralOwner|stringformat:"x"}}
dataLength{{znode.stat.dataLength}}
pzxid0x{{znode.stat.pzxid|stringformat:"x"}}
44 | Details on Stat fields 45 | 46 |

47 |

48 |
49 |
50 |

ACL Information

51 | 52 | {% if znode.acls %} 53 | ACLs ({{znode.acls|length}}) 54 | 55 | 56 | {% for acl in znode.acls %} 57 | 63 | {% endfor %} 64 |
schemeidperms
{{acl.scheme}}{{acl.id}} 58 | {% for perm in acl.perm_list %} 59 | {% if not forloop.first %}, {% endif %} 60 | {{perm}} 61 | {% endfor %} 62 |
65 | Details on ACLs 66 | {% else %} 67 | No ACLs exist for this znode 68 | {% endif %} 69 | 70 |

71 |

72 |
73 |
74 |

Children ({{znode.stat.numChildren}})

75 | 76 | {% if znode.children %} 77 | 78 | {% for child in znode.children %} 79 | 80 | {% endfor %} 81 |
{{child}}
82 | {% else %} 83 | No Children exist for this znode 84 | {% endif %} 85 |
86 |
87 | 88 | 89 | -------------------------------------------------------------------------------- /settings.py: -------------------------------------------------------------------------------- 1 | # Django settings for zookeeper_dashboard project. 2 | 3 | ### ZooKeeper specific settings 4 | 5 | ZOOKEEPER_SERVERS = "127.0.0.1:2181,127.0.0.1:2182,127.0.0.1:2183" 6 | 7 | ### From here down are Django settings 8 | 9 | DEBUG = True 10 | TEMPLATE_DEBUG = DEBUG 11 | 12 | ADMINS = ( 13 | # ('Your Name', 'your_email@domain.com'), 14 | ) 15 | 16 | MANAGERS = ADMINS 17 | 18 | DATABASE_ENGINE = '' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. 19 | DATABASE_NAME = '' # Or path to database file if using sqlite3. 20 | DATABASE_USER = '' # Not used with sqlite3. 21 | DATABASE_PASSWORD = '' # Not used with sqlite3. 22 | DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3. 23 | DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3. 24 | 25 | # Local time zone for this installation. Choices can be found here: 26 | # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name 27 | # although not all choices may be available on all operating systems. 28 | # If running in a Windows environment this must be set to the same as your 29 | # system time zone. 30 | TIME_ZONE = 'America/Chicago' 31 | 32 | # Language code for this installation. All choices can be found here: 33 | # http://www.i18nguy.com/unicode/language-identifiers.html 34 | LANGUAGE_CODE = 'en-us' 35 | 36 | SITE_ID = 1 37 | 38 | # If you set this to False, Django will make some optimizations so as not 39 | # to load the internationalization machinery. 40 | USE_I18N = True 41 | 42 | # Absolute path to the directory that holds media. 43 | # Example: "/home/media/media.lawrence.com/" 44 | MEDIA_ROOT = '' 45 | 46 | # URL that handles the media served from MEDIA_ROOT. Make sure to use a 47 | # trailing slash if there is a path component (optional in other cases). 48 | # Examples: "http://media.lawrence.com", "http://example.com/media/" 49 | MEDIA_URL = '' 50 | 51 | # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a 52 | # trailing slash. 53 | # Examples: "http://foo.com/media/", "/media/". 54 | ADMIN_MEDIA_PREFIX = '/media/' 55 | 56 | # Make this unique, and don't share it with anybody. 57 | SECRET_KEY = '83kgkm6fbxq$ku&65cyh9ed#1wsav=yywpxp!k@n&_-tfv)=yg' 58 | 59 | # List of callables that know how to import templates from various sources. 60 | TEMPLATE_LOADERS = ( 61 | 'django.template.loaders.filesystem.load_template_source', 62 | 'django.template.loaders.app_directories.load_template_source', 63 | # 'django.template.loaders.eggs.load_template_source', 64 | ) 65 | 66 | MIDDLEWARE_CLASSES = ( 67 | 'django.middleware.common.CommonMiddleware', 68 | 'django.contrib.sessions.middleware.SessionMiddleware', 69 | 'django.contrib.auth.middleware.AuthenticationMiddleware', 70 | ) 71 | 72 | ROOT_URLCONF = 'zookeeper_dashboard.urls' 73 | 74 | TEMPLATE_DIRS = ( 75 | # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". 76 | # Always use forward slashes, even on Windows. 77 | # Don't forget to use absolute paths, not relative paths. 78 | ) 79 | 80 | INSTALLED_APPS = ( 81 | # 'django.contrib.auth', 82 | 'django.contrib.contenttypes', 83 | 'django.contrib.sessions', 84 | 'django.contrib.sites', 85 | 'zookeeper_dashboard.zkadmin', 86 | 'zookeeper_dashboard.zktree', 87 | ) 88 | -------------------------------------------------------------------------------- /README.textile: -------------------------------------------------------------------------------- 1 | h1. ZooKeeper Dashboard 2 | 3 | *Author: "Patrick Hunt":http://people.apache.org/~phunt/* (follow me on "twitter":http://twitter.com/phunt) 4 | 5 | h2. Summary 6 | 7 | "This project":http://github.com/phunt/zookeeper_dashboard uses Django and the zkpython bindings to provide a dashboard for a ZooKeeper ensemble (cluster). 8 | 9 | * Cluster summary 10 | * Individual server detail 11 | * Client connection detail 12 | * Navigate & examine the live znode hierarchy 13 | 14 | This is a work in progress. Want more? Ping me on "twitter":http://twitter.com/phunt or enter an "issue":http://github.com/phunt/zookeeper_dashboard/issues on GitHub. 15 | 16 | h3. What's Apache ZooKeeper? 17 | 18 | From the "official site":http://hadoop.apache.org/zookeeper/: "ZooKeeper is a high-performance coordination service for distributed applications." 19 | 20 | It exposes common services - such as naming, configuration management, synchronization, and group services - in a simple interface so you don't have to write them from scratch. You can use it off-the-shelf to implement consensus, group management, leader election, and presence protocols. 21 | 22 | h2. Overview 23 | 24 | Django and the zkpython bindings are used to provide a dashboard for a ZooKeeper ensemble (cluster). 25 | 26 | h2. License 27 | 28 | This project is licensed under the Apache License Version 2.0 29 | 30 | h2. Requirements 31 | 32 | * Django 1.0+ 33 | 34 | h2. Usage 35 | 36 | Edit settings.py. The top of the file has the ZOOKEEPER specific settings. 37 | 38 | * ZOOKEEPER_SERVERS - host:port(,host:port)* of all servers in your cluster. This is the same information that you provide in your ZooKeeper client configuration. 39 | 40 | then start the django server 41 | 42 | 43 | PYTHONPATH=lib.linux-i686-2.6 LD_LIBRARY_PATH=lib.linux-i686-2.6 ./manage.py runserver 44 | 45 | 46 | Obviously the dashboard needs access to the serving cluster (it queries the server's client port per ZOOKEEPER_SERVERS configuration). 47 | 48 | Finally open a link in your browser to the server: "http://127.0.0.1:8000/":http://127.0.0.1:8000/ 49 | 50 | *Note*: you may need to compile the zookeeper python binding yourself, this project includes only 32bit linux binaries. Additionally, the django - zookeeper bridge relies on some changes to the zkpython binding that are not yet released, so if you do compile yourself you will need to compile zkpython from the Apache "ZooKeeper SVN trunk":http://hadoop.apache.org/zookeeper/version_control.html (this should be addressed as soon as ZooKeeper 3.3.0 is released). 51 | 52 | ZooKeeper client output is written to "cli_log.txt". 53 | 54 | h2. Limitations 55 | 56 | ACLs are not yet fully supported. In particular the django server runs as an un-authenticated user. If nodes are protected by ACLs the server will not be able to access them. 57 | 58 | h2. Screenshots 59 | 60 | h3. Cluster Summary 61 | 62 | dashboard_summary 63 | 64 | h3. Server Summary 65 | 66 | dashboard_server_summary 67 | 68 | h3. ZNode tree 69 | 70 | ACLs and child list not shown 71 | 72 | dashboard_tree_znode 73 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | 2 | Apache License 3 | Version 2.0, January 2004 4 | http://www.apache.org/licenses/ 5 | 6 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 7 | 8 | 1. Definitions. 9 | 10 | "License" shall mean the terms and conditions for use, reproduction, 11 | and distribution as defined by Sections 1 through 9 of this document. 12 | 13 | "Licensor" shall mean the copyright owner or entity authorized by 14 | the copyright owner that is granting the License. 15 | 16 | "Legal Entity" shall mean the union of the acting entity and all 17 | other entities that control, are controlled by, or are under common 18 | control with that entity. For the purposes of this definition, 19 | "control" means (i) the power, direct or indirect, to cause the 20 | direction or management of such entity, whether by contract or 21 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 22 | outstanding shares, or (iii) beneficial ownership of such entity. 23 | 24 | "You" (or "Your") shall mean an individual or Legal Entity 25 | exercising permissions granted by this License. 26 | 27 | "Source" form shall mean the preferred form for making modifications, 28 | including but not limited to software source code, documentation 29 | source, and configuration files. 30 | 31 | "Object" form shall mean any form resulting from mechanical 32 | transformation or translation of a Source form, including but 33 | not limited to compiled object code, generated documentation, 34 | and conversions to other media types. 35 | 36 | "Work" shall mean the work of authorship, whether in Source or 37 | Object form, made available under the License, as indicated by a 38 | copyright notice that is included in or attached to the work 39 | (an example is provided in the Appendix below). 40 | 41 | "Derivative Works" shall mean any work, whether in Source or Object 42 | form, that is based on (or derived from) the Work and for which the 43 | editorial revisions, annotations, elaborations, or other modifications 44 | represent, as a whole, an original work of authorship. For the purposes 45 | of this License, Derivative Works shall not include works that remain 46 | separable from, or merely link (or bind by name) to the interfaces of, 47 | the Work and Derivative Works thereof. 48 | 49 | "Contribution" shall mean any work of authorship, including 50 | the original version of the Work and any modifications or additions 51 | to that Work or Derivative Works thereof, that is intentionally 52 | submitted to Licensor for inclusion in the Work by the copyright owner 53 | or by an individual or Legal Entity authorized to submit on behalf of 54 | the copyright owner. For the purposes of this definition, "submitted" 55 | means any form of electronic, verbal, or written communication sent 56 | to the Licensor or its representatives, including but not limited to 57 | communication on electronic mailing lists, source code control systems, 58 | and issue tracking systems that are managed by, or on behalf of, the 59 | Licensor for the purpose of discussing and improving the Work, but 60 | excluding communication that is conspicuously marked or otherwise 61 | designated in writing by the copyright owner as "Not a Contribution." 62 | 63 | "Contributor" shall mean Licensor and any individual or Legal Entity 64 | on behalf of whom a Contribution has been received by Licensor and 65 | subsequently incorporated within the Work. 66 | 67 | 2. Grant of Copyright License. Subject to the terms and conditions of 68 | this License, each Contributor hereby grants to You a perpetual, 69 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 70 | copyright license to reproduce, prepare Derivative Works of, 71 | publicly display, publicly perform, sublicense, and distribute the 72 | Work and such Derivative Works in Source or Object form. 73 | 74 | 3. Grant of Patent License. Subject to the terms and conditions of 75 | this License, each Contributor hereby grants to You a perpetual, 76 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 77 | (except as stated in this section) patent license to make, have made, 78 | use, offer to sell, sell, import, and otherwise transfer the Work, 79 | where such license applies only to those patent claims licensable 80 | by such Contributor that are necessarily infringed by their 81 | Contribution(s) alone or by combination of their Contribution(s) 82 | with the Work to which such Contribution(s) was submitted. If You 83 | institute patent litigation against any entity (including a 84 | cross-claim or counterclaim in a lawsuit) alleging that the Work 85 | or a Contribution incorporated within the Work constitutes direct 86 | or contributory patent infringement, then any patent licenses 87 | granted to You under this License for that Work shall terminate 88 | as of the date such litigation is filed. 89 | 90 | 4. Redistribution. You may reproduce and distribute copies of the 91 | Work or Derivative Works thereof in any medium, with or without 92 | modifications, and in Source or Object form, provided that You 93 | meet the following conditions: 94 | 95 | (a) You must give any other recipients of the Work or 96 | Derivative Works a copy of this License; and 97 | 98 | (b) You must cause any modified files to carry prominent notices 99 | stating that You changed the files; and 100 | 101 | (c) You must retain, in the Source form of any Derivative Works 102 | that You distribute, all copyright, patent, trademark, and 103 | attribution notices from the Source form of the Work, 104 | excluding those notices that do not pertain to any part of 105 | the Derivative Works; and 106 | 107 | (d) If the Work includes a "NOTICE" text file as part of its 108 | distribution, then any Derivative Works that You distribute must 109 | include a readable copy of the attribution notices contained 110 | within such NOTICE file, excluding those notices that do not 111 | pertain to any part of the Derivative Works, in at least one 112 | of the following places: within a NOTICE text file distributed 113 | as part of the Derivative Works; within the Source form or 114 | documentation, if provided along with the Derivative Works; or, 115 | within a display generated by the Derivative Works, if and 116 | wherever such third-party notices normally appear. The contents 117 | of the NOTICE file are for informational purposes only and 118 | do not modify the License. You may add Your own attribution 119 | notices within Derivative Works that You distribute, alongside 120 | or as an addendum to the NOTICE text from the Work, provided 121 | that such additional attribution notices cannot be construed 122 | as modifying the License. 123 | 124 | You may add Your own copyright statement to Your modifications and 125 | may provide additional or different license terms and conditions 126 | for use, reproduction, or distribution of Your modifications, or 127 | for any such Derivative Works as a whole, provided Your use, 128 | reproduction, and distribution of the Work otherwise complies with 129 | the conditions stated in this License. 130 | 131 | 5. Submission of Contributions. Unless You explicitly state otherwise, 132 | any Contribution intentionally submitted for inclusion in the Work 133 | by You to the Licensor shall be under the terms and conditions of 134 | this License, without any additional terms or conditions. 135 | Notwithstanding the above, nothing herein shall supersede or modify 136 | the terms of any separate license agreement you may have executed 137 | with Licensor regarding such Contributions. 138 | 139 | 6. Trademarks. This License does not grant permission to use the trade 140 | names, trademarks, service marks, or product names of the Licensor, 141 | except as required for reasonable and customary use in describing the 142 | origin of the Work and reproducing the content of the NOTICE file. 143 | 144 | 7. Disclaimer of Warranty. Unless required by applicable law or 145 | agreed to in writing, Licensor provides the Work (and each 146 | Contributor provides its Contributions) on an "AS IS" BASIS, 147 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 148 | implied, including, without limitation, any warranties or conditions 149 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 150 | PARTICULAR PURPOSE. You are solely responsible for determining the 151 | appropriateness of using or redistributing the Work and assume any 152 | risks associated with Your exercise of permissions under this License. 153 | 154 | 8. Limitation of Liability. In no event and under no legal theory, 155 | whether in tort (including negligence), contract, or otherwise, 156 | unless required by applicable law (such as deliberate and grossly 157 | negligent acts) or agreed to in writing, shall any Contributor be 158 | liable to You for damages, including any direct, indirect, special, 159 | incidental, or consequential damages of any character arising as a 160 | result of this License or out of the use or inability to use the 161 | Work (including but not limited to damages for loss of goodwill, 162 | work stoppage, computer failure or malfunction, or any and all 163 | other commercial damages or losses), even if such Contributor 164 | has been advised of the possibility of such damages. 165 | 166 | 9. Accepting Warranty or Additional Liability. While redistributing 167 | the Work or Derivative Works thereof, You may choose to offer, 168 | and charge a fee for, acceptance of support, warranty, indemnity, 169 | or other liability obligations and/or rights consistent with this 170 | License. However, in accepting such obligations, You may act only 171 | on Your own behalf and on Your sole responsibility, not on behalf 172 | of any other Contributor, and only if You agree to indemnify, 173 | defend, and hold each Contributor harmless for any liability 174 | incurred by, or claims asserted against, such Contributor by reason 175 | of your accepting any such warranty or additional liability. 176 | 177 | END OF TERMS AND CONDITIONS 178 | 179 | APPENDIX: How to apply the Apache License to your work. 180 | 181 | To apply the Apache License to your work, attach the following 182 | boilerplate notice, with the fields enclosed by brackets "[]" 183 | replaced with your own identifying information. (Don't include 184 | the brackets!) The text should be enclosed in the appropriate 185 | comment syntax for the file format. We also recommend that a 186 | file or class name and description of purpose be included on the 187 | same "printed page" as the copyright notice for easier 188 | identification within third-party archives. 189 | 190 | Copyright [yyyy] [name of copyright owner] 191 | 192 | Licensed under the Apache License, Version 2.0 (the "License"); 193 | you may not use this file except in compliance with the License. 194 | You may obtain a copy of the License at 195 | 196 | http://www.apache.org/licenses/LICENSE-2.0 197 | 198 | Unless required by applicable law or agreed to in writing, software 199 | distributed under the License is distributed on an "AS IS" BASIS, 200 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 201 | See the License for the specific language governing permissions and 202 | limitations under the License. 203 | -------------------------------------------------------------------------------- /css/blueprint/screen.css: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------------- 2 | 3 | 4 | Blueprint CSS Framework 0.9 5 | http://blueprintcss.org 6 | 7 | * Copyright (c) 2007-Present. See LICENSE for more info. 8 | * See README for instructions on how to use Blueprint. 9 | * For credits and origins, see AUTHORS. 10 | * This is a compressed file. See the sources in the 'src' directory. 11 | 12 | ----------------------------------------------------------------------- */ 13 | 14 | /* reset.css */ 15 | html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, code, del, dfn, em, img, q, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {margin:0;padding:0;border:0;font-weight:inherit;font-style:inherit;font-size:100%;font-family:inherit;vertical-align:baseline;} 16 | body {line-height:1.5;} 17 | table {border-collapse:separate;border-spacing:0;} 18 | caption, th, td {text-align:left;font-weight:normal;} 19 | table, td, th {vertical-align:middle;} 20 | blockquote:before, blockquote:after, q:before, q:after {content:"";} 21 | blockquote, q {quotes:"" "";} 22 | a img {border:none;} 23 | 24 | /* typography.css */ 25 | html {font-size:100.01%;} 26 | body {font-size:75%;color:#222;background:#fff;font-family:"Helvetica Neue", Arial, Helvetica, sans-serif;} 27 | h1, h2, h3, h4, h5, h6 {font-weight:normal;color:#111;} 28 | h1 {font-size:3em;line-height:1;margin-bottom:0.5em;} 29 | h2 {font-size:2em;margin-bottom:0.75em;} 30 | h3 {font-size:1.5em;line-height:1;margin-bottom:1em;} 31 | h4 {font-size:1.2em;line-height:1.25;margin-bottom:1.25em;} 32 | h5 {font-size:1em;font-weight:bold;margin-bottom:1.5em;} 33 | h6 {font-size:1em;font-weight:bold;} 34 | h1 img, h2 img, h3 img, h4 img, h5 img, h6 img {margin:0;} 35 | p {margin:0 0 1.5em;} 36 | p img.left {float:left;margin:1.5em 1.5em 1.5em 0;padding:0;} 37 | p img.right {float:right;margin:1.5em 0 1.5em 1.5em;} 38 | a:focus, a:hover {color:#000;} 39 | a {color:#009;text-decoration:underline;} 40 | blockquote {margin:1.5em;color:#666;font-style:italic;} 41 | strong {font-weight:bold;} 42 | em, dfn {font-style:italic;} 43 | dfn {font-weight:bold;} 44 | sup, sub {line-height:0;} 45 | abbr, acronym {border-bottom:1px dotted #666;} 46 | address {margin:0 0 1.5em;font-style:italic;} 47 | del {color:#666;} 48 | pre {margin:1.5em 0;white-space:pre;} 49 | pre, code, tt {font:1em 'andale mono', 'lucida console', monospace;line-height:1.5;} 50 | li ul, li ol {margin:0;} 51 | ul, ol {margin:0 1.5em 1.5em 0;padding-left:3.333em;} 52 | ul {list-style-type:disc;} 53 | ol {list-style-type:decimal;} 54 | dl {margin:0 0 1.5em 0;} 55 | dl dt {font-weight:bold;} 56 | dd {margin-left:1.5em;} 57 | table {margin-bottom:1.4em;width:100%;} 58 | th {font-weight:bold;} 59 | thead th {background:#c3d9ff;} 60 | th, td, caption {padding:4px 10px 4px 5px;} 61 | tr.even td {background:#e5ecf9;} 62 | tfoot {font-style:italic;} 63 | caption {background:#eee;} 64 | .small {font-size:.8em;margin-bottom:1.875em;line-height:1.875em;} 65 | .large {font-size:1.2em;line-height:2.5em;margin-bottom:1.25em;} 66 | .hide {display:none;} 67 | .quiet {color:#666;} 68 | .loud {color:#000;} 69 | .highlight {background:#ff0;} 70 | .added {background:#060;color:#fff;} 71 | .removed {background:#900;color:#fff;} 72 | .first {margin-left:0;padding-left:0;} 73 | .last {margin-right:0;padding-right:0;} 74 | .top {margin-top:0;padding-top:0;} 75 | .bottom {margin-bottom:0;padding-bottom:0;} 76 | 77 | /* forms.css */ 78 | label {font-weight:bold;} 79 | fieldset {padding:1.4em;margin:0 0 1.5em 0;border:1px solid #ccc;} 80 | legend {font-weight:bold;font-size:1.2em;} 81 | input[type=text], input[type=password], input.text, input.title, textarea, select {background-color:#fff;border:1px solid #bbb;} 82 | input[type=text]:focus, input[type=password]:focus, input.text:focus, input.title:focus, textarea:focus, select:focus {border-color:#666;} 83 | input[type=text], input[type=password], input.text, input.title, textarea, select {margin:0.5em 0;} 84 | input.text, input.title {width:300px;padding:5px;} 85 | input.title {font-size:1.5em;} 86 | textarea {width:390px;height:250px;padding:5px;} 87 | input[type=checkbox], input[type=radio], input.checkbox, input.radio {position:relative;top:.25em;} 88 | form.inline {line-height:3;} 89 | form.inline p {margin-bottom:0;} 90 | .error, .notice, .success {padding:.8em;margin-bottom:1em;border:2px solid #ddd;} 91 | .error {background:#FBE3E4;color:#8a1f11;border-color:#FBC2C4;} 92 | .notice {background:#FFF6BF;color:#514721;border-color:#FFD324;} 93 | .success {background:#E6EFC2;color:#264409;border-color:#C6D880;} 94 | .error a {color:#8a1f11;} 95 | .notice a {color:#514721;} 96 | .success a {color:#264409;} 97 | 98 | /* grid.css */ 99 | .container {width:950px;margin:0 auto;} 100 | .showgrid {background:url(src/grid.png);} 101 | .column, div.span-1, div.span-2, div.span-3, div.span-4, div.span-5, div.span-6, div.span-7, div.span-8, div.span-9, div.span-10, div.span-11, div.span-12, div.span-13, div.span-14, div.span-15, div.span-16, div.span-17, div.span-18, div.span-19, div.span-20, div.span-21, div.span-22, div.span-23, div.span-24 {float:left;margin-right:10px;} 102 | .last, div.last {margin-right:0;} 103 | .span-1 {width:30px;} 104 | .span-2 {width:70px;} 105 | .span-3 {width:110px;} 106 | .span-4 {width:150px;} 107 | .span-5 {width:190px;} 108 | .span-6 {width:230px;} 109 | .span-7 {width:270px;} 110 | .span-8 {width:310px;} 111 | .span-9 {width:350px;} 112 | .span-10 {width:390px;} 113 | .span-11 {width:430px;} 114 | .span-12 {width:470px;} 115 | .span-13 {width:510px;} 116 | .span-14 {width:550px;} 117 | .span-15 {width:590px;} 118 | .span-16 {width:630px;} 119 | .span-17 {width:670px;} 120 | .span-18 {width:710px;} 121 | .span-19 {width:750px;} 122 | .span-20 {width:790px;} 123 | .span-21 {width:830px;} 124 | .span-22 {width:870px;} 125 | .span-23 {width:910px;} 126 | .span-24, div.span-24 {width:950px;margin-right:0;} 127 | input.span-1, textarea.span-1, input.span-2, textarea.span-2, input.span-3, textarea.span-3, input.span-4, textarea.span-4, input.span-5, textarea.span-5, input.span-6, textarea.span-6, input.span-7, textarea.span-7, input.span-8, textarea.span-8, input.span-9, textarea.span-9, input.span-10, textarea.span-10, input.span-11, textarea.span-11, input.span-12, textarea.span-12, input.span-13, textarea.span-13, input.span-14, textarea.span-14, input.span-15, textarea.span-15, input.span-16, textarea.span-16, input.span-17, textarea.span-17, input.span-18, textarea.span-18, input.span-19, textarea.span-19, input.span-20, textarea.span-20, input.span-21, textarea.span-21, input.span-22, textarea.span-22, input.span-23, textarea.span-23, input.span-24, textarea.span-24 {border-left-width:1px!important;border-right-width:1px!important;padding-left:5px!important;padding-right:5px!important;} 128 | input.span-1, textarea.span-1 {width:18px!important;} 129 | input.span-2, textarea.span-2 {width:58px!important;} 130 | input.span-3, textarea.span-3 {width:98px!important;} 131 | input.span-4, textarea.span-4 {width:138px!important;} 132 | input.span-5, textarea.span-5 {width:178px!important;} 133 | input.span-6, textarea.span-6 {width:218px!important;} 134 | input.span-7, textarea.span-7 {width:258px!important;} 135 | input.span-8, textarea.span-8 {width:298px!important;} 136 | input.span-9, textarea.span-9 {width:338px!important;} 137 | input.span-10, textarea.span-10 {width:378px!important;} 138 | input.span-11, textarea.span-11 {width:418px!important;} 139 | input.span-12, textarea.span-12 {width:458px!important;} 140 | input.span-13, textarea.span-13 {width:498px!important;} 141 | input.span-14, textarea.span-14 {width:538px!important;} 142 | input.span-15, textarea.span-15 {width:578px!important;} 143 | input.span-16, textarea.span-16 {width:618px!important;} 144 | input.span-17, textarea.span-17 {width:658px!important;} 145 | input.span-18, textarea.span-18 {width:698px!important;} 146 | input.span-19, textarea.span-19 {width:738px!important;} 147 | input.span-20, textarea.span-20 {width:778px!important;} 148 | input.span-21, textarea.span-21 {width:818px!important;} 149 | input.span-22, textarea.span-22 {width:858px!important;} 150 | input.span-23, textarea.span-23 {width:898px!important;} 151 | input.span-24, textarea.span-24 {width:938px!important;} 152 | .append-1 {padding-right:40px;} 153 | .append-2 {padding-right:80px;} 154 | .append-3 {padding-right:120px;} 155 | .append-4 {padding-right:160px;} 156 | .append-5 {padding-right:200px;} 157 | .append-6 {padding-right:240px;} 158 | .append-7 {padding-right:280px;} 159 | .append-8 {padding-right:320px;} 160 | .append-9 {padding-right:360px;} 161 | .append-10 {padding-right:400px;} 162 | .append-11 {padding-right:440px;} 163 | .append-12 {padding-right:480px;} 164 | .append-13 {padding-right:520px;} 165 | .append-14 {padding-right:560px;} 166 | .append-15 {padding-right:600px;} 167 | .append-16 {padding-right:640px;} 168 | .append-17 {padding-right:680px;} 169 | .append-18 {padding-right:720px;} 170 | .append-19 {padding-right:760px;} 171 | .append-20 {padding-right:800px;} 172 | .append-21 {padding-right:840px;} 173 | .append-22 {padding-right:880px;} 174 | .append-23 {padding-right:920px;} 175 | .prepend-1 {padding-left:40px;} 176 | .prepend-2 {padding-left:80px;} 177 | .prepend-3 {padding-left:120px;} 178 | .prepend-4 {padding-left:160px;} 179 | .prepend-5 {padding-left:200px;} 180 | .prepend-6 {padding-left:240px;} 181 | .prepend-7 {padding-left:280px;} 182 | .prepend-8 {padding-left:320px;} 183 | .prepend-9 {padding-left:360px;} 184 | .prepend-10 {padding-left:400px;} 185 | .prepend-11 {padding-left:440px;} 186 | .prepend-12 {padding-left:480px;} 187 | .prepend-13 {padding-left:520px;} 188 | .prepend-14 {padding-left:560px;} 189 | .prepend-15 {padding-left:600px;} 190 | .prepend-16 {padding-left:640px;} 191 | .prepend-17 {padding-left:680px;} 192 | .prepend-18 {padding-left:720px;} 193 | .prepend-19 {padding-left:760px;} 194 | .prepend-20 {padding-left:800px;} 195 | .prepend-21 {padding-left:840px;} 196 | .prepend-22 {padding-left:880px;} 197 | .prepend-23 {padding-left:920px;} 198 | div.border {padding-right:4px;margin-right:5px;border-right:1px solid #eee;} 199 | div.colborder {padding-right:24px;margin-right:25px;border-right:1px solid #eee;} 200 | .pull-1 {margin-left:-40px;} 201 | .pull-2 {margin-left:-80px;} 202 | .pull-3 {margin-left:-120px;} 203 | .pull-4 {margin-left:-160px;} 204 | .pull-5 {margin-left:-200px;} 205 | .pull-6 {margin-left:-240px;} 206 | .pull-7 {margin-left:-280px;} 207 | .pull-8 {margin-left:-320px;} 208 | .pull-9 {margin-left:-360px;} 209 | .pull-10 {margin-left:-400px;} 210 | .pull-11 {margin-left:-440px;} 211 | .pull-12 {margin-left:-480px;} 212 | .pull-13 {margin-left:-520px;} 213 | .pull-14 {margin-left:-560px;} 214 | .pull-15 {margin-left:-600px;} 215 | .pull-16 {margin-left:-640px;} 216 | .pull-17 {margin-left:-680px;} 217 | .pull-18 {margin-left:-720px;} 218 | .pull-19 {margin-left:-760px;} 219 | .pull-20 {margin-left:-800px;} 220 | .pull-21 {margin-left:-840px;} 221 | .pull-22 {margin-left:-880px;} 222 | .pull-23 {margin-left:-920px;} 223 | .pull-24 {margin-left:-960px;} 224 | .pull-1, .pull-2, .pull-3, .pull-4, .pull-5, .pull-6, .pull-7, .pull-8, .pull-9, .pull-10, .pull-11, .pull-12, .pull-13, .pull-14, .pull-15, .pull-16, .pull-17, .pull-18, .pull-19, .pull-20, .pull-21, .pull-22, .pull-23, .pull-24 {float:left;position:relative;} 225 | .push-1 {margin:0 -40px 1.5em 40px;} 226 | .push-2 {margin:0 -80px 1.5em 80px;} 227 | .push-3 {margin:0 -120px 1.5em 120px;} 228 | .push-4 {margin:0 -160px 1.5em 160px;} 229 | .push-5 {margin:0 -200px 1.5em 200px;} 230 | .push-6 {margin:0 -240px 1.5em 240px;} 231 | .push-7 {margin:0 -280px 1.5em 280px;} 232 | .push-8 {margin:0 -320px 1.5em 320px;} 233 | .push-9 {margin:0 -360px 1.5em 360px;} 234 | .push-10 {margin:0 -400px 1.5em 400px;} 235 | .push-11 {margin:0 -440px 1.5em 440px;} 236 | .push-12 {margin:0 -480px 1.5em 480px;} 237 | .push-13 {margin:0 -520px 1.5em 520px;} 238 | .push-14 {margin:0 -560px 1.5em 560px;} 239 | .push-15 {margin:0 -600px 1.5em 600px;} 240 | .push-16 {margin:0 -640px 1.5em 640px;} 241 | .push-17 {margin:0 -680px 1.5em 680px;} 242 | .push-18 {margin:0 -720px 1.5em 720px;} 243 | .push-19 {margin:0 -760px 1.5em 760px;} 244 | .push-20 {margin:0 -800px 1.5em 800px;} 245 | .push-21 {margin:0 -840px 1.5em 840px;} 246 | .push-22 {margin:0 -880px 1.5em 880px;} 247 | .push-23 {margin:0 -920px 1.5em 920px;} 248 | .push-24 {margin:0 -960px 1.5em 960px;} 249 | .push-1, .push-2, .push-3, .push-4, .push-5, .push-6, .push-7, .push-8, .push-9, .push-10, .push-11, .push-12, .push-13, .push-14, .push-15, .push-16, .push-17, .push-18, .push-19, .push-20, .push-21, .push-22, .push-23, .push-24 {float:right;position:relative;} 250 | .prepend-top {margin-top:1.5em;} 251 | .append-bottom {margin-bottom:1.5em;} 252 | .box {padding:1.5em;margin-bottom:1.5em;background:#E5ECF9;} 253 | hr {background:#ddd;color:#ddd;clear:both;float:none;width:100%;height:.1em;margin:0 0 1.45em;border:none;} 254 | hr.space {background:#fff;color:#fff;visibility:hidden;} 255 | .clearfix:after, .container:after {content:"\0020";display:block;height:0;clear:both;visibility:hidden;overflow:hidden;} 256 | .clearfix, .container {display:block;} 257 | .clear {clear:both;} --------------------------------------------------------------------------------