nrpe services failed to start

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
purpleturtle99
Posts: 3
Joined: Wed Sep 02, 2015 9:36 am

nrpe services failed to start

Post by purpleturtle99 »

Install Nagios core on a Centos 7 server and the client also Centos 7. On the client I can't seem to start the NRPE services
error message from journalctl -xe:
The result is failed.
Aug 12 08:40:39 localhost.localdomain systemd[1]: Unit nrpe.service entered failed state.
Aug 12 08:40:39 localhost.localdomain systemd[1]: nrpe.service failed.
Aug 12 08:40:39 localhost.localdomain dbus-daemon[700]: dbus[700]: [system] Activating service name='org.fedorap
Aug 12 08:40:39 localhost.localdomain dbus[700]: [system] Activating service name='org.fedoraproject.Setroublesh
Aug 12 08:40:40 localhost.localdomain dbus[700]: [system] Successfully activated service 'org.fedoraproject.Setr
Aug 12 08:40:40 localhost.localdomain dbus-daemon[700]: dbus[700]: [system] Successfully activated service 'org.
Aug 12 08:40:40 localhost.localdomain polkitd[15514]: Unregistered Authentication Agent for unix-process:20833:6
Aug 12 08:40:40 localhost.localdomain dbus-daemon[700]: 'list' object has no attribute 'split'
Aug 12 08:40:40 localhost.localdomain setroubleshoot[20852]: Plugin Exception restorecon_source
Aug 12 08:40:40 localhost.localdomain setroubleshoot[20852]: SELinux is preventing /usr/sbin/nrpe from open access on the file /etc/nagios/nrpe.cfg[/color]
Aug 12 08:40:40 localhost.localdomain python[20852]: SELinux is preventing /usr/sbin/nrpe from open access on th

***** Plugin restorecon (99.5 confidence) suggests *****

If you want to fix the label.
/etc/nagios/nrpe.cfg default label should be nrpe_etc_t.
Then you can run restorecon.
Do
# /sbin/restorecon -v /etc/nagios/nrpe.cfg

***** Plugin catchall (1.49 confidence) suggests *******

If you believe that nrpe should be allowed open access on t
Then you should report this as a bug.
You can generate a local policy module to allow this access
Do
allow this access for now by executing:
# grep nrpe /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

All help appreciated
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: nrpe services failed to start

Post by lmiltchev »

Is disabling SELinux or at least putting it in "permissive" mode an option for you? The reason I am asking this is because this is going to be the easiest way to fix your issue. FYI, SELinux configuration is out of the scope of Nagios support. What is the output of the following command?

Code: Select all

getenforce
Be sure to check out our Knowledgebase for helpful articles and solutions!
purpleturtle99
Posts: 3
Joined: Wed Sep 02, 2015 9:36 am

Re: nrpe services failed to start

Post by purpleturtle99 »

I had to flatten it in the end and start from scratch. And now I don't seem to get this error message no more
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: nrpe services failed to start

Post by rkennedy »

Are we good to mark this thread as resolved then?
Former Nagios Employee
Locked