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

bkmonitorbeat指定用户执行script采集权限不足 #685

Open
abbhb opened this issue Jan 15, 2025 · 1 comment
Open

bkmonitorbeat指定用户执行script采集权限不足 #685

abbhb opened this issue Jan 15, 2025 · 1 comment

Comments

@abbhb
Copy link
Contributor

abbhb commented Jan 15, 2025

``操作系统信息:
Centos7 5.4.277-1.el7.elrepo.x86_64 GNU/Linux
版本信息:
12f6d29

问题描述:
当指定的执行用户是小权限用户例如mqm用户

Image

bkmonitorbeat会以mqm用户执行xxx/cw_ibmmq_script/./start.sh

Image

但该文件下发默认未对mqm用户授权,会报权限不足,下面是详细日志:

2025-01-15 18:10:25.117 ERROR   script/gather.go:63     execute command (/usr/local/gse_monitor/external_plugins/sub_800_host_409/cw_ibmmq_script/./start.sh) failed, out=(), err: fork/exec /usr/local/gse_monitor/external_plugins/sub_800_host_409/cw_ibmmq_script/./start.sh: permission denied
@jacky15
Copy link

jacky15 commented Jan 15, 2025

  1. 从问题描述看,bkmonitorbeat运行身份非root,但也不是mqm,请问这是什么使用场景?
  2. 如果需要支持,可能需要节点管理一起配合支持,制作插件时提供文件x位

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

No branches or pull requests

2 participants