Header Shadow Image

Nagios: Error: Could not read object configuration data!

Are you getting the following after installing Nagios?

Nagios:  Error: Could not read object configuration data!

Then check the following:

1) /var/log/nagios, owned by nagios:nagios , both folder and log files.

2) /etc/nagios owned by nagios:nagios , both folder and files within this folder.

3) SELinux: Either disable it or check the /var/log/audit/audit.log for any denied messages.  If you have anything simlar to this:

type=AVC msg=audit(1552361910.706:4892): avc:  denied  { execute_no_trans } for  pid=31322 comm="nagios" path="/usr/sbin/nagios" dev="dm-0" ino=691069 scontext=unconfined_u:system_r:nagios_t:s0 tcontext=system_u:object_r:nagios_exec_t:s0 tclass=file permissive=0

4) Issue the following command to allow the denied entries (You may need to run these a few times):

# grep AVC /var/log/audit/audit.log* | audit2allow -M systemd-allow; semodule -i systemd-allow.pp

5) Eventually you will be greeted with Daemon running with PID 433 message.  Meaning that you've taken care of the last SELinux blocker.


Leave a Reply

You must be logged in to post a comment.

  Copyright © 2003 - 2013 Tom Kacperski (microdevsys.com). All rights reserved.

Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 Unported License