guohongze / adminset Goto Github PK
View Code? Open in Web Editor NEW自动化运维平台:CMDB、CD、DevOps、资产管理、任务编排、持续交付、系统监控、运维管理、配置管理
Home Page: http://adminset.cn
License: GNU General Public License v2.0
自动化运维平台:CMDB、CD、DevOps、资产管理、任务编排、持续交付、系统监控、运维管理、配置管理
Home Page: http://adminset.cn
License: GNU General Public License v2.0
Install fail! RequestError: socket hang up (req "error"), GET http://registry.npm.taobao.org/socket.io -1 (connected: false, keepalive socket: false, agent status: {"createSocketCount":51,"createSocketErrorCount":0,"closeSocketCount":42,"errorSocketCount":0,"timeoutSocketCount":41,"requestCount":0,"freeSockets":{},"sockets":{"registry.npm.taobao.org:80:":9},"requests":{}})
headers: {}
[root@5a4dd2da36bc server]# ./server_install.sh
./server_install.sh: line 22: getenforce: command not found
docker 中不能用。
[root@test opt]# python adminset_agent.py
Get the hardwave infos from host:
Traceback (most recent call last):
File "adminset_agent.py", line 303, in
asset_info_post()
File "adminset_agent.py", line 179, in asset_info_post
print asset_info()
File "adminset_agent.py", line 166, in asset_info
data_info['sn'] = parser_dmi(get_dmi())['Serial Number']
KeyError: 'Serial Number'
[root@jira opt]# vim adminset_agent.py
[root@jira opt]# python adminset_agent.py
Get the hardwave infos from host:
Traceback (most recent call last):
File "adminset_agent.py", line 303, in
asset_info_post()
File "adminset_agent.py", line 179, in asset_info_post
print asset_info()
File "adminset_agent.py", line 166, in asset_info
data_info['sn'] = parser_dmi(get_dmi())['Serial Number']
KeyError: 'Serial Number'
##############install finished###################
Restarting redis (via systemctl): [ 确定 ]
Redirecting to /bin/systemctl restart mariadb.service
Redirecting to /bin/systemctl restart adminset.service
Redirecting to /bin/systemctl restart celery.service
Redirecting to /bin/systemctl restart beat.service
Redirecting to /bin/systemctl restart mongod.service
Redirecting to /bin/systemctl restart sshd.service
Redirecting to /bin/systemctl restart webssh.service
please access website http://server_ip
you have installed adminset successfully!!!
################################################
[root@SZC-l201872 server]# curl -i http://localhost:80
HTTP/1.1 302 Found
Server: nginx/1.12.2
Date: Mon, 26 Feb 2018 11:00:32 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 0
Connection: keep-alive
X-Frame-Options: SAMEORIGIN
Location: /navi/
客户端探针运行正常,服务器已经分发ssh公钥到各客户机上,ssh登录密码和系统配置-密钥设置-ssh password一致。但是点击资产管理列表的webssh按钮,并没有弹出SSH登录对话框,而是打开了浏览器新窗口地址栏显示http://172.16.100.101:2222/ssh/host/172.16.100.101。请问是否还有什么组件未部署?
我看到其他的issue中提到了webssh 服务,请问这个是adminset自带的模块?安装说明中似乎没有提到如何安装。
项目还是有客户端,后续用ansible,可以结合ansible API,实现客户端,通过ansible推脚本去获取需要的数据。
ansible API比如这个项目https://github.com/lfbear/ansible-api
免密已经配置,ansible shell都没问题,打开webssh显示SSH CONN ERROR: All configured authentication methods failed。客户端和服务端的systemctl webssh status都是active,都是打开的,请问还要检查哪里?
另外一个问题,HOSTS.adminset.cn:2222这个自动跳转的域名的代码是在哪儿,希望作者回复下,感谢。
创建文件夹 重复执行 还是报错
npm http 200 http://registry.cnpmjs.org/cycle
/usr/local/bin/forever -> /usr/local/lib/node_modules/forever/bin/forever
[email protected] /usr/local/lib/node_modules/forever
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected])
sending incremental file list
sent 68421 bytes received 539 bytes 137920.00 bytes/sec
total size is 31514339 speedup is 456.99
adminset/install/server/auto_install.sh: line 63: systemctl: command not found
在centos7上,同步报错
adminset纯种apache协议开源,永久免费,放心使用。此统计信息主要用于adminset的宣传和推广,让更多人了解知道。请按如下格式跟帖:
公司名: 华图教育
设备规模: 1000台
脚本初始化的用户最好在用户管理上面把默认按钮置灰不可点击。
目前需要手动在目标主机中运行client的install,能否在资产页面上显示一个安装脚本地址,在客户端运行这个脚本,就可以建立起目标主机和服务端的联系。
在应用管理中源类型使用git 源地址使用http方式时容易卡住。
原因是在启用认证以后admisnet会将URL进行重组,将关联联的认证用户的用户名密码带入到URL中,如果此时密码存在特殊字符则URL无法识别卡住。
临时解决
方法1:使用ssh方式下载代码。
方法2:在deploy时不使用认证功能,而是将用户名密码直接填写在应用管理的源地址上如下:
http://giuser:[email protected]/adminset.git
在gitpasswd中如果有特殊字符在前边加上转义符号\
192.168.2.34 - - [30/Aug/2017:23:00:07 +0800] "HEAD / HTTP/1.1" 502 0 "-" "curl/7.29.0"
页面一直打不开。
install/client/client_install.sh
修改:
if (echo $os|grep centos) || (echo $os|grep 'Red Hat')
默认是22号端口,如果要单独针对一些主机做一些端口号的修改,应该在哪里改呢?
hi,新建crontab的时候格式 不是分时日月星期么 UI上面写的是分时日月年 这种说法怎么理解
用nginx加上ssl证书反代后,点击资产管理(其他ajax请求需要弹出的对话框)都会有问题,会js console出现报错mix content,应该是https里面嵌入了http的request导致的,没有找到好的解决方法。
出错如下: ModuleNotFoundError: No module named 'ConfigParser'
详细错误:
Collecting django==1.9.8 (from -r requirements.txt (line 1))
Using cached Django-1.9.8-py2.py3-none-any.whl
Collecting sh==1.12.9 (from -r requirements.txt (line 2))
Using cached sh-1.12.9-py2.py3-none-any.whl
Collecting mysql-python==1.2.5 (from -r requirements.txt (line 3))
Using cached MySQL-python-1.2.5.zip
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/private/var/folders/fm/hxx1g7yd7dn1m0rtrgfb218w0000gn/T/pip-build-jvoobcwo/mysql-python/setup.py", line 13, in
from setup_posix import get_config
File "/private/var/folders/fm/hxx1g7yd7dn1m0rtrgfb218w0000gn/T/pip-build-jvoobcwo/mysql-python/setup_posix.py", line 2, in
from ConfigParser import SafeConfigParser
ModuleNotFoundError: No module named 'ConfigParser'
1000多条数据时,分页功能加载就很慢,可否优化下?
install/client/adminset_agent.py
修改:
cpu_cores = {"physical": psutil.cpu_count(logical=False) if psutil.cpu_count(logical=False) else 0, "logical": psutil.cpu_count()}
还是在windows上面开发的? 在centos上安装好了,不好调试代码。
对python3.6的支持不是很理想,我fork了一个版本,做了下python3.6的修改。
另外,我建议出一个docker部署的版本。如果,作者比较忙,没时间,我可以帮忙做docker化。
可以联系我。
用server_install.sh安装的时候, 下了40多个G的内容, 最后磁盘满了才停掉, 不知是怎么回事?
hi 兄弟 权限管理系统url的使用方式 可以举几个例子说明么
正在测试中
进行同步操作时会覆盖原Ansible的hosts文件,建议此操作改成生成一个特有的hosts文件,比如文件名为:adminset_<日期时间>_hosts。这样可以减少因误操作而覆盖原hosts文件。
我在运行安装脚本时遇到报错
...
Verifying : 1:nodejs-6.11.3-1.el7.x86_64 4/4
Installed:
nodejs.x86_64 1:6.11.3-1.el7
Dependency Installed:
http-parser.x86_64 0:2.7.1-5.el7_4 libuv.x86_64 1:1.10.2-1.el7 npm.x86_64 1:3.10.10-1.6.11.3.1.el7
Complete!
npm: relocation error: npm: symbol SSL_set_cert_cb, version libssl.so.10 not defined in file libssl.so.10 with link time reference
然后找到了 node.js安装后的命令手工运行,报了相同的错误
70 /usr/bin/yum install -y nodejs
71 cd $cur_dir/vendor/WebSSH2
72 /usr/bin/npm install -g cnpm --registry=https://registry.npm.taobao.org
73 /usr/bin/cnpm install --production
[root@localhost ~]# find / -type d -name WebSSH2
find: ‘/run/user/1000/gvfs’: Permission denied
/root/adminset/vendor/WebSSH2
[root@localhost ~]# cd /root/adminset/vendor/WebSSH2
[root@localhost WebSSH2]# /usr/bin/npm install -g cnpm --registry=https://registry.npm.taobao.org
npm: relocation error: npm: symbol SSL_set_cert_cb, version libssl.so.10 not defined in file libssl.so.10 with link time reference
[root@localhost WebSSH2]#
我系统的版本
[root@localhost server]# cat /etc/release
CentOS Linux release 7.2.1511 (Core)
Derived from Red Hat Enterprise Linux 7.2 (Source)
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
[root@localhost server]# npm -v
3.10.10
添加的设备添加超过10条以后,翻到第二页,点击删除某一条,没有反应!
18588511446 方便跟您电话聊聊么?
1.windows powershell / bat 支持
2.windows agent 自动上报服务器信息
3.支持saltstack任务
4.windows主机支持RDP协议登录
5.支持SCP协议
请楼主给我一些建议和指导
看你写的是py2.7 django1.9,其他组件的版本能否提供下,打算克隆大神的代码,学习下你的组织架构,谢谢
哈哈能嵌入docker,zabbix,就好了
嗨,您好,
首先就是很高兴能够遇到adminset这么好的项目!
但是在测试过程中发现一个小的问题。那就是磁盘采集信息的问题,采集的不是物理机硬盘的块数,这方面是否想过进行优化呢。
还有就是比较关心的就是,该项目用到了mongodb/redis/MySQL数据库,关于该软件架构文档可以提供吗?
最后,还是非常感谢您能提供这么好的项目!!!!
客户端用docker容器运行
容器内系统是 CentOS Linux release 7.3.1611 (Core)
在adminset_agent.py上修改了 server_ip = '172.17.0.7'
此为容器ip
token
这个是根据服务端上的token进行修改的吗?
运行adminset_agent.py后报错:
Traceback (most recent call last):
File "adminset_agent.py", line 303, in
asset_info_post()
File "adminset_agent.py", line 176, in asset_info_post
osenv = os.environ["LANG"]
File "/usr/lib64/python2.7/UserDict.py", line 23, in getitem
raise KeyError(key)
KeyError: 'LANG'
请问如何解决?
请问这个问题怎么解决,谢谢!
systemctl status webssh.service
● webssh.service - Celery Service
Loaded: loaded (/usr/lib/systemd/system/webssh.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since 一 2018-02-26 16:31:37 CST; 1min 31s ago
Process: 3693 ExecStart=/usr/bin/forever start --minUptime 1000 --spinSleepTime 1000 index.js (code=exited, status=203/EXEC)
Main PID: 3693 (code=exited, status=203/EXEC)
2月 26 16:31:37 SZC-l201872 systemd[1]: Starting Celery Service...
2月 26 16:31:37 SZC-l201872 systemd[1]: webssh.service: main process exited, code=exited, status=203/EXEC
2月 26 16:31:37 SZC-l201872 systemd[1]: Failed to start Celery Service.
2月 26 16:31:37 SZC-l201872 systemd[1]: Unit webssh.service entered failed state.
2月 26 16:31:37 SZC-l201872 systemd[1]: webssh.service failed.
今天下载项目安装了下,感觉非常简洁实用,另外是否能实现如下需求:
1.默认首页是否直接展示后台设置的网站导航呢?
2.能不能增加LDAP统一账号认证;
3.暂时还未正式使用,希望后面熟悉后一起加入到开发队伍。。。
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.