This repository has been archived by the owner on Feb 11, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 583
主机信息中 userlist 会缺失部分 user #45
Comments
nologin的用户不会被记录吧。 |
我对比时发现不会记录 nologin 用户, 但缺的几个用户都是 /bin/bash 的. |
agent/collect/user_linux.go第17到20行
不太理解这个逻辑,这里为什么要在小于2行时,直接返回,也不取最后两行 |
nologin用户是不会被监控到的,将如下代码
改为
即可,否则会漏掉一个user用户 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
你好, 我新建用户后发现 userlist 中看不到新用户.
reload agent 过了一段时间后仍看不到, 但同时该主机的 crontab/listening/process 信息能正确更新.
我对比了另外一台机器的 /etc/passwd 和web界面中的 userlist, 发现 userlist 少了3个用户.
The text was updated successfully, but these errors were encountered: