luxiaok / saltadmin Goto Github PK
View Code? Open in Web Editor NEW基于SaltStack的自动化运维平台
Home Page: http://github.com/luxiaok/SaltAdmin
License: GNU General Public License v2.0
基于SaltStack的自动化运维平台
Home Page: http://github.com/luxiaok/SaltAdmin
License: GNU General Public License v2.0
但是日志里面显示登录成功192.168.132.1:58000 - - [22/Jan/2018 17:27:56] "HTTP/1.1 POST /login" - 200 OK
my ENVs as below. Please help me. Thanks!
python-2.7.5-18.el7_1.1.x86_64
web.py 0.37
Mako 1.0.1
psutil 3.1.1
python-dmidecode-3.10.13-11.el7.x86_64
The error trace stack as below
x.x.x.x:1941 - - [24/Aug/2015 15:39:36] "HTTP/1.1 GET /" - 500 Internal Server Error
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/web.py-0.37-py2.7.egg/web/application.py", line 239, in process
return self.handle()
File "/usr/lib/python2.7/site-packages/web.py-0.37-py2.7.egg/web/application.py", line 230, in handle
return self._delegate(fn, self.fvars, args)
File "/usr/lib/python2.7/site-packages/web.py-0.37-py2.7.egg/web/application.py", line 401, in _delegate
raise web.notfound()
File "/data/SaltAdmin/view/main.py", line 63, in notfound
return web.notfound(render.login())
File "/usr/lib/python2.7/site-packages/web.py-0.37-py2.7.egg/web/contrib/template.py", line 113, in getattr
t = self._lookup.get_template(path)
File "/usr/lib/python2.7/site-packages/Mako-1.0.1-py2.7.egg/mako/lookup.py", line 248, in get_template
"Cant locate template for uri %r" % uri)
TopLevelLookupException: Cant locate template for uri 'login.html'
如果是用zabbix 那调用zabbix api接口集成到saltadmin平台这样是否更好?
运行127.0.0.0.1:8080 页面报错:
<type 'exceptions.TypeError'> at /
genSession() takes exactly 9 arguments (8 given)
view/index.py 147行 传入8个参数
genSession(uid,Username,ShowName,LastIP,LastDate,token,Lstat,kpl='yes')
genSession方法定义了9个参数
def genSession(SID,Username,ShowName,LastIP,LastLocation,LastDate,Token,Lstat,kpl):
少传入LastLocaltion值
试用了功能不多但非常好看。
web.py没有django那么广泛。如果使用的django就好了。
[30/May/2019 15:28:22] "HTTP/1.1 GET /dashboard" - 200 OK
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/web/application.py", line 239, in process
return self.handle()
File "/usr/local/lib/python2.7/dist-packages/web/application.py", line 230, in handle
return self._delegate(fn, self.fvars, args)
File "/usr/local/lib/python2.7/dist-packages/web/application.py", line 462, in _delegate
return handle_class(cls)
File "/usr/local/lib/python2.7/dist-packages/web/application.py", line 438, in handle_class
return tocall(*args)
File "/usr/local/saltadmin/view/main.py", line 27, in inner
return func(*args)
File "/usr/local/saltadmin/view/adminCenter.py", line 195, in GET
rt_data.update(self.salt_minions())
File "/usr/local/saltadmin/view/adminCenter.py", line 187, in salt_minions
rt = local.cmd('*','test.ping',timeout=1)
File "/usr/lib/python2.7/dist-packages/salt/client/__init__.py", line 703, in cmd
**kwargs)
File "/usr/lib/python2.7/dist-packages/salt/client/__init__.py", line 341, in run_job
'The salt master could not be contacted. Is master running?'
SaltClientError: The salt master could not be contacted. Is master running?
172.17.0.1:57908 - - [30/May/2019 15:28:22] "HTTP/1.1 GET /dashboard/IndexData" - 500 Internal Server Error
为何这个不基于Django呢
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.