Page 1 of 1

WARNING: my_system() seteuid(0): Operation not permitted

Posted: Thu Jul 04, 2019 5:03 am
by f8dax
Hi from France,

I use nagios core 432 with nrpe nrpe-3.2.1 and it seems that the nagios plugin through nrpe is not working correctly.

I look at the log on the cento 7 host and get the message below.

sudo tail -f /usr/local/nagios/var/nrpe.log

[1562234294] Running command: /usr/lib64/nagios/plugins/check_uptime -u days -w 70 -c 90
[1562234294] WARNING: my_system() seteuid(0): Operation not permitted
[1562234294] Warning: Could not set effective GID=992
[1562234294] Warning: Unable to change supplementary groups using initgroups()
[1562234294] Warning: Could not set UID=994

Do you know how to fix the problem or what to do (my_system() seteuid(0): Operation not permitted) ?

Thank you in advance.

Christophe

Re: WARNING: my_system() seteuid(0): Operation not permitted

Posted: Tue Jul 09, 2019 9:37 am
by scottwilkerson
Can you run the following (or similar based on your nrpe.cfg path)

Code: Select all

grep nrpe_group /usr/local/nagios/etc/nrpe.cfg
Is the group consistent with the group set in your nrpe.service systemd file?

Also, how did you install nrpe? RPM or source install?