Web interface Error:Could not read object configuration data

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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Web interface Error:Could not read object configuration

Post by abrist »

Is selinux enabled on the remote system?

Code: Select all

getenforce
Is your home directory encrypted?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
zander_2
Posts: 17
Joined: Mon Jul 29, 2013 3:55 pm

Re: Web interface Error:Could not read object configuration

Post by zander_2 »

abrist wrote:Is selinux enabled on the remote system?

Code: Select all

getenforce
Is your home directory encrypted?
No and no.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Web interface Error:Could not read object configuration

Post by abrist »

Do you have any restrictions on the nagios account on the remote host?

Code: Select all

grep nagios /etc/shadow
I ask because I have often seen "nologin" configured on the nagios user in /etc/shadow.,
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
zander_2
Posts: 17
Joined: Mon Jul 29, 2013 3:55 pm

Re: Web interface Error:Could not read object configuration

Post by zander_2 »

abrist wrote:Do you have any restrictions on the nagios account on the remote host?

Code: Select all

grep nagios /etc/shadow
I ask because I have often seen "nologin" configured on the nagios user in /etc/shadow.,

Code: Select all

grep nagios /etc/shadow
nagios::15931:0:99999:7:::
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Web interface Error:Could not read object configuration

Post by sreinhardt »

That looks good, lets just be 100% and check /etc/passwd.

Code: Select all

grep nagios /etc/passwd
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
zander_2
Posts: 17
Joined: Mon Jul 29, 2013 3:55 pm

Re: Web interface Error:Could not read object configuration

Post by zander_2 »

sreinhardt wrote:That looks good, lets just be 100% and check /etc/passwd.

Code: Select all

grep nagios /etc/passwd

Code: Select all

nagios:x:502:505::/home/nagios:/bin/bash
Hm...

So, I'm pretty sure that there's just some seriously messed up stuff going on with ssh on the remote host, because I successfully SSH'd from the Nagios server to another machine that I know works, but could not SSH from a known working machine to the remote host without a password. I have a feeling that just wiping the machine and starting over would make it work (what DOESN'T that make work, right?) but I have people using that box for a bunch of other important services, so that's not going to happen. I'd like to reinstall sshd, too, but those services use it as well.

Anyway, for people that come across this thread in the future, I'd advise you to check your /etc/ssh/sshd_config file and make sure PermitEmptyPasswords is set to yes, that might help.

Either way, I'll never fix this problem because in about two hours I will be done with this job and will no longer have access to any of these VMs. Sorry to leave any future readers hanging, feel free to post on this thread if you have the same problem. That'll be it for me, though. Thanks to the few guys who responded and did what they could.
Last edited by slansing on Wed Aug 21, 2013 2:08 pm, edited 1 time in total.
Reason: Please edit your previous post to add information/questions if you are the last poster.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Web interface Error:Could not read object configuration

Post by slansing »

Thank you for the information, definately sounds like an issue on that server specifically, we will lock this thread up but will keep it as a reference, let us know if you come back to this in the future!
Locked