首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >nrpe[xxxxx]:警告:无法设置有效的GID

nrpe[xxxxx]:警告:无法设置有效的GID
EN

Stack Overflow用户
提问于 2022-04-10 19:12:19
回答 1查看 623关注 0票数 0

我无法得到在/var/log/ messages中收到的警告消息的原因:

代码语言:javascript
复制
Apr 10 03:41:23 lsv-vm203 nrpe[85287]: Warning: Could not set effective GID=994
Apr 10 03:41:23 lsv-vm203 nrpe[85287]: Warning: Unable to change supplementary groups using initgroups()
Apr 10 03:41:23 lsv-vm203 nrpe[85287]: Warning: Could not set UID=997

下面是我的配置:

代码语言:javascript
复制
# grep -E "nagios|nrpe" /etc/passwd
nagios:x:997:994::/var/spool/nagios:/bin/bash
nrpe:x:515:515:NRPE user for the NRPE service:/var/run/nrpe:/sbin/nologin
# grep -E "nagios|nrpe" /etc/group
nagios:x:994:apache,nrpe
nrpe:x:515:
# cat /etc/systemd/system/nrpe.service.d/override.conf
[Service]
User=nrpe
Group=nrpe
# ps auxw | grep -E "^nrpe"
nrpe      37083  0.0  0.0  57776  2920 ?        Ss   Feb23   2:13 /usr/sbin/nrpe -c /etc/nagios/nrpe.cfg -f

我不知道为什么nrpe试图将UID:GID设置为997:994 (这是nagios用户的UID:GID )。

我正在运行Centos 7.9.2009

虽然它不影响任何事情(至少我看不到任何问题),但我不喜欢这样。非常感谢围绕着它的任何想法。

EN

回答 1

Stack Overflow用户

发布于 2022-04-11 18:51:20

nrpe对systemd和nrpe.conf中有不同的UID:GUI配置:

代码语言:javascript
复制
#cat nrpe.cfg
log_facility=daemon
pid_file=/var/run/nrpe/nrpe.pid
command_prefix=/usr/bin/time -p 2>&1
server_port=5666
nrpe_user=nagios
nrpe_group=nagios
debug=0
command_timeout=600
connection_timeout=300
include_dir=/etc/nagios/nrpe.d
dont_blame_nrpe=1

所以它发生了碰撞

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71819773

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档