Regarding enforcing selinux on nagios
Posted: Mon Oct 17, 2016 1:21 am
Hello,
I have a system Centos Release 6.8, installed NRPE on it. and monitoring through nagios server.
to monitor one of the service status on my client machine, I have used check_service.sh plugin which you can find on this link.
https://github.com/jonschipp/nagios-plu ... service.sh
but its giving error on nagios dashboard. attached it the snapshot.
I have added sudo permissions to the user and with selinux disabled or permissive it works fine on other environments.
I just don't understand what selinux context this plugin should have.
currently it has
-rwxr-xr-x root root unconfined_u:object_r:lib_t:s0 check_service.sh
Thanks for your help in advance.
I have a system Centos Release 6.8, installed NRPE on it. and monitoring through nagios server.
to monitor one of the service status on my client machine, I have used check_service.sh plugin which you can find on this link.
https://github.com/jonschipp/nagios-plu ... service.sh
but its giving error on nagios dashboard. attached it the snapshot.
I have added sudo permissions to the user and with selinux disabled or permissive it works fine on other environments.
I just don't understand what selinux context this plugin should have.
currently it has
-rwxr-xr-x root root unconfined_u:object_r:lib_t:s0 check_service.sh
Thanks for your help in advance.