Hello There, Guest!  
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Nagios Core - permissions

#1
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


Attached Files Thumbnail(s)
   
Rick
 Reply
#2
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:
 Reply
#3
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:
 Reply
#4
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
 Reply
#5
It wasn't you - it was me  :p

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

Please run:
Code:
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:
 Reply
#6
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
 Reply
#7
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:
 Reply
#8
Hi guys, ive done what you say, Nagios Core has reverted to normal, but then...

   

Any ideas?

Thank you.
 Reply
#9
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:
sudo systemctl status mysqld


If it says anything other than "active (running) type:
Code:
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:
 Reply
 
 
Forum Jump:

Users browsing this thread: 1 Guest(s)