failed. errno is 1: Operation not permitted
Posted: Wed Jun 30, 2021 9:07 pm
Fresh Install
Red Hat Enterprise Linux release 8.4 (Ootpa)
Nagios Core 4.4.6
Plugins 2.3.3
NIST 800-171 CUI security profile
Followed: https://support.nagios.com/kb/article/n ... .html#RHEL
All works well (with some tweaks because of security profile), except it appears none on the plugins are working
(No output on stdout) stderr: execvp(/usr/local/nagios/libexec/check_ping, ...) failed. errno is 1: Operation not permitted
Logs: No real errors
[1625104330] Unable to send check for host 'localhost' to worker (ret=-2)
[1625104363] Unable to run check for service 'Root Partition' on host 'localhost'
[1625104368] Unable to run check for service 'Total Processes' on host 'localhost'
[1625104480] Unable to run check for service 'HTTP' on host 'localhost'
[1625104489] Unable to run check for service 'Current Load' on host 'localhost'
[1625104498] Unable to run check for service 'SSH' on host 'localhost'
[1625104499] Unable to run check for service 'PING' on host 'localhost'
[1625104510] Unable to run check for service 'Swap Usage' on host 'localhost'
[1625104527] Unable to run check for service 'Current Users' on host 'localhost'
CHECKED|TRIED:
Plugins in right location
Plugins default permissions and user looks correct
SELINUX is disabled
[Tried] changing the permissions to 777 for plugins, no success
[Tried] Making nagios user Sudoer
[Tried]
su - nagios -s /bin/bash
cd /usr/local/nagios/libexec/
./check_ping -H 127.0.0.1 -w 10,2% -c 20,5%
bash: ./check_ping: Operation not permitted
-BUT-
sudo ./check_ping -H localhost -w 10,2% -c 20,5%
PING OK - Packet loss = 0%, RTA = 0.10 ms|rta=0.098000ms;10.000000;20.000000;0.000000 pl=0%;2;5;0
Leaves me to believe it is a permissions issue, but I do not know how to fix it.
Any suggestions?
Red Hat Enterprise Linux release 8.4 (Ootpa)
Nagios Core 4.4.6
Plugins 2.3.3
NIST 800-171 CUI security profile
Followed: https://support.nagios.com/kb/article/n ... .html#RHEL
All works well (with some tweaks because of security profile), except it appears none on the plugins are working
(No output on stdout) stderr: execvp(/usr/local/nagios/libexec/check_ping, ...) failed. errno is 1: Operation not permitted
Logs: No real errors
[1625104330] Unable to send check for host 'localhost' to worker (ret=-2)
[1625104363] Unable to run check for service 'Root Partition' on host 'localhost'
[1625104368] Unable to run check for service 'Total Processes' on host 'localhost'
[1625104480] Unable to run check for service 'HTTP' on host 'localhost'
[1625104489] Unable to run check for service 'Current Load' on host 'localhost'
[1625104498] Unable to run check for service 'SSH' on host 'localhost'
[1625104499] Unable to run check for service 'PING' on host 'localhost'
[1625104510] Unable to run check for service 'Swap Usage' on host 'localhost'
[1625104527] Unable to run check for service 'Current Users' on host 'localhost'
CHECKED|TRIED:
Plugins in right location
Plugins default permissions and user looks correct
SELINUX is disabled
[Tried] changing the permissions to 777 for plugins, no success
[Tried] Making nagios user Sudoer
[Tried]
su - nagios -s /bin/bash
cd /usr/local/nagios/libexec/
./check_ping -H 127.0.0.1 -w 10,2% -c 20,5%
bash: ./check_ping: Operation not permitted
-BUT-
sudo ./check_ping -H localhost -w 10,2% -c 20,5%
PING OK - Packet loss = 0%, RTA = 0.10 ms|rta=0.098000ms;10.000000;20.000000;0.000000 pl=0%;2;5;0
Leaves me to believe it is a permissions issue, but I do not know how to fix it.
Any suggestions?