Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[help wanted]: oneagent咨询 #640

Open
manchesxia opened this issue Nov 15, 2024 · 6 comments
Open

[help wanted]: oneagent咨询 #640

manchesxia opened this issue Nov 15, 2024 · 6 comments
Assignees

Comments

@manchesxia
Copy link

Contact Details

No response

What is your question?

cmdb、onemaster、oneagent装在一台机器上,IPAM里下了扫描任务分给master
image
按照手册配了key、secret,并且把discover放到了plugins/cmdb_agent/下,但查看master日志显示plugin:false
想问下如何排错~?
image

Version

newest

@manchesxia
Copy link
Author

image

@pycook
Copy link
Collaborator

pycook commented Dec 6, 2024

重新申请最新版本的oneagent,才支持IPAM的扫描

@manchesxia
Copy link
Author

重新申请最新版本的oneagent,才支持IPAM的扫描

您好,已安装最新onemaster和oneagent,发现onemaster的active时间一直在变化,master日志如下
image
image

@manchesxia
Copy link
Author

discover已经放在了/data/oneagent-linux-amd64/packages/plugins/cmdb_agent目录下
image
master配置如下:

version: 1.0.1

id: 0x0000
name: onemaster

childrenMask: 0

debug: false

licenceBindIp: "172.16.X.X"

log:
path: /var/log/oneagent/onemaster.log
level: INFO
maxSize: 500 # megabytes
maxBackups: 3
maxAge: 7
compress: false

server

server:
isOpened: true
port: 7788
async: false
multicore: false

plugins:
cmdb:
url: "http://172.16.1.X.X/api/v0.1"
# apiKey: the apiKey of user in acl, please choose user cmdb_agent
apiKey: 'e02a2c5XXXXX'
# apiSecret: the apiSecret of user in acl, please choose user cmdb_agent
apiSecret: 'nePJFKXXXXX'
pluginPath: '/data/oneagent-linux-amd64/packages/plugins/cmdb_agent'

@nick814
Copy link

nick814 commented Dec 23, 2024

你的

discover已经放在了/data/oneagent-linux-amd64/packages/plugins/cmdb_agent目录下 image master配置如下:

version: 1.0.1

id: 0x0000 name: onemaster

childrenMask: 0

debug: false

licenceBindIp: "172.16.X.X"

log: path: /var/log/oneagent/onemaster.log level: INFO maxSize: 500 # megabytes maxBackups: 3 maxAge: 7 compress: false

server

server: isOpened: true port: 7788 async: false multicore: false

plugins: cmdb: url: "http://172.16.1.X.X/api/v0.1" # apiKey: the apiKey of user in acl, please choose user cmdb_agent apiKey: 'e02a2c5XXXXX' # apiSecret: the apiSecret of user in acl, please choose user cmdb_agent apiSecret: 'nePJFKXXXXX' pluginPath: '/data/oneagent-linux-amd64/packages/plugins/cmdb_agent'

你的日志 起码他认到你放进去的discover了 我的报错他就是认不到discover 我也是莫名了 问了都没人回答的

@nick814
Copy link

nick814 commented Dec 23, 2024

又看了遍 我起码master一直active 你连active都不行 一直重启 我就discover一直false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants