我无法得到在/var/log/ messages中收到的警告消息的原因:
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下面是我的配置:
# 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
虽然它不影响任何事情(至少我看不到任何问题),但我不喜欢这样。非常感谢围绕着它的任何想法。
发布于 2022-04-11 18:51:20
nrpe对systemd和nrpe.conf中有不同的UID:GUI配置:
#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所以它发生了碰撞
https://stackoverflow.com/questions/71819773
复制相似问题