fix(gather_asset_users): 修复收集资产用户日志中用户名显示不完整的问题

pull/4330/head
Bai 2020-07-15 16:07:47 +08:00 committed by 老广
parent 061592fa6b
commit eef942c155
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ GATHER_ASSET_USERS_TASKS = [
"action": {
"module": "shell",
"args": "users=$(getent passwd | grep -v 'nologin' | "
"grep -v 'shudown' | awk -F: '{ print $1 }');for i in $users;do last -F $i -1 | "
"grep -v 'shudown' | awk -F: '{ print $1 }');for i in $users;do last -w -F $i -1 | "
"head -1 | grep -v '^$' | awk '{ print $1\"@\"$3\"@\"$5,$6,$7,$8 }';done"
}
}