Nagios Core - permissions

Found something amiss in NEMS? Confirm first that you are running the latest version, and then post your bug report here.
Post Reply
User avatar
kd4pyr
Junior Member
Posts: 28
Joined: Wed Jul 05, 2017 4:56 pm

Nagios Core - permissions

Post 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
Attachments
Capture.JPG
Rick
User avatar
Robbie Ferguson
Posting Freak
Posts: 835
Joined: Wed Mar 07, 2012 3:23 pm
Location: Ontario, Canada
Contact:

RE: Nagios Core - permissions

Post 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!
Robbie Ferguson // The Bald Nerd

Did I help you out? Appreciate what I do? Please consider saying thanks:
User avatar
Robbie Ferguson
Posting Freak
Posts: 835
Joined: Wed Mar 07, 2012 3:23 pm
Location: Ontario, Canada
Contact:

RE: Nagios Core - permissions

Post by Robbie Ferguson »

Further: is it possible you initialized NEMS before restoring your migrator data with a different username?
Robbie Ferguson // The Bald Nerd

Did I help you out? Appreciate what I do? Please consider saying thanks:
User avatar
kd4pyr
Junior Member
Posts: 28
Joined: Wed Jul 05, 2017 4:56 pm

RE: Nagios Core - permissions

Post 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.
Rick
User avatar
Robbie Ferguson
Posting Freak
Posts: 835
Joined: Wed Mar 07, 2012 3:23 pm
Location: Ontario, Canada
Contact:

RE: Nagios Core - permissions

Post 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?
Robbie Ferguson // The Bald Nerd

Did I help you out? Appreciate what I do? Please consider saying thanks:
User avatar
kd4pyr
Junior Member
Posts: 28
Joined: Wed Jul 05, 2017 4:56 pm

RE: Nagios Core - permissions

Post 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.
Rick
User avatar
Robbie Ferguson
Posting Freak
Posts: 835
Joined: Wed Mar 07, 2012 3:23 pm
Location: Ontario, Canada
Contact:

RE: Nagios Core - permissions

Post 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
Robbie Ferguson // The Bald Nerd

Did I help you out? Appreciate what I do? Please consider saying thanks:
Kuesco
Junior Member
Posts: 8
Joined: Fri Nov 10, 2017 6:56 am

RE: Nagios Core - permissions

Post by Kuesco »

Hi guys, ive done what you say, Nagios Core has reverted to normal, but then...
NconfError.jpg
Any ideas?

Thank you.
User avatar
Robbie Ferguson
Posting Freak
Posts: 835
Joined: Wed Mar 07, 2012 3:23 pm
Location: Ontario, Canada
Contact:

RE: Nagios Core - permissions

Post 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
Robbie Ferguson // The Bald Nerd

Did I help you out? Appreciate what I do? Please consider saying thanks:
Post Reply