Page 1 of 1

Nagios Core - permissions

Posted: Tue Dec 05, 2017 9:25 am
by kd4pyr
I have version 1.3 up and running and migrated a version 1.2.3 config and have found what I think may be an issue.  In Nagios Core the following links return an error message of “it appears you do not have permission to view…”.
A screen shot is attached.

The following links seem to be involved:
1)Network Outages
2) Process Info
3) Scheduling Queue – This is the one I use most often
4) Notifications
5) Even Log
6) View Config

RE: Nagios Core - permissions

Posted: Tue Dec 05, 2017 1:00 pm
by Robbie Ferguson
Thanks for letting me know. Can you please email a copy of your backup.nems file to [email protected] and I'll confirm and patch the bug?

Thanks!

RE: Nagios Core - permissions

Posted: Tue Dec 05, 2017 1:05 pm
by Robbie Ferguson
Further: is it possible you initialized NEMS before restoring your migrator data with a different username?

RE: Nagios Core - permissions

Posted: Tue Dec 05, 2017 3:57 pm
by kd4pyr
I don't think so.  Ran the nems-init and created the user account.
Rebooted.
logged in using the created account.
Then ran the nems-restore.

RE: Nagios Core - permissions

Posted: Tue Dec 05, 2017 4:12 pm
by Robbie Ferguson
It wasn't you - it was me  :p

You found a nasty wee bug that broke this for everyone - thanks man!

Please run:

Code: Select all

sudo nems-quickfix
And then try Nagios Core again. Work?

RE: Nagios Core - permissions

Posted: Tue Dec 05, 2017 9:17 pm
by kd4pyr
There is joy in Mudville, the might Robbie hit a home run...

OK wrong season for baseball analogies.  The quickfix is not quick, but it does the job.  All is well with the permissions in Nagios Core.

As always, thanks.

RE: Nagios Core - permissions

Posted: Tue Dec 05, 2017 9:31 pm
by Robbie Ferguson
Great!

Yes, I'm pretty sure that the manual warns that nems-quickfix is not quick  :p  hahaha!

Quick as in, you don't have to do much, and it fixes stuff.

Glad it worked! Thanks for pointing out the bug! If we had a point system, you'd be up at least 3 points for this, and about a million points for everything else  :p

RE: Nagios Core - permissions

Posted: Thu Dec 07, 2017 9:29 am
by Kuesco
Hi guys, ive done what you say, Nagios Core has reverted to normal, but then...
NconfError.jpg
Any ideas?

Thank you.

RE: Nagios Core - permissions

Posted: Thu Dec 07, 2017 10:15 am
by Robbie Ferguson
Oh dear! This does not look like a related issue, though nems-quickfix may have pulled an update to nems-nconf that may have caused this. Are you on NEMS 1.3?

That said, I have not pushed any updates to nems-nconf which would cause this... so I wonder if it's simply your MariaDB service failed to restart correctly during the nems-quickfix (is there any chance you pushed CTRL-C before nems-quickfix was done?)

Just to be sure, can you please do this?

Code: Select all

sudo systemctl status mysqld
If it says anything other than "active (running) type:

Code: Select all

sudo systemctl restart mysqld
And then try nConf again.

If that isn't it, can you please create a new backup.nems migrator backup and send it to [email protected]? Hoping it'll shed some light on what happened and I'll try to have a fix ready within a day or two.

Cheers,
Robbie