Hi All,
I thought that I would post this solution for those who may get such an error on Amazon Linux EC2 instances (which is like CentOS/RHEL).
I installed nagios 3.5.1 on Amazon Linux EC2, from their latest RPM package using yum. Upon trying to use the web interface menu items at the left of the home page (https://myserver.com/nagios), I would get the "Error: Could not read object configuration data!" message for any status link clicked.
I was using Apache 2.2.29 (Amazon's latest) and setup the auth as requested, which worked fine. The /etc/nagios/passwd file had the proper permissions already, that is uid=root,gid=apache and mode 640.
The problem turned out to be the permissions on the /etc/nagios config directory. The default permissions set by the install RPM was uid=root, gid=root and mode 775. I changed that directory to permission of uid=root, gid=apache (the webserver uid) and the mode to 755. I suppose for extra security set the directory mode to 750.
Then everything worked as expected.
So on Amazon EC2 Linux, their RPM is not quite right for permissions.
PS: I had tried everything else that I found online but nothing worked. So I hope this helps.
Error: Could not read object configuration data! Amazon EC2
-
sabalaskey
- Posts: 1
- Joined: Thu May 14, 2015 4:37 pm
Re: Error: Could not read object configuration data! Amazon
Thank you for posting your solution, I'm sure future visitors will appreciate it as well!
I'm going to be locking the topic, feel free to create another if you find any more.
I'm going to be locking the topic, feel free to create another if you find any more.