changing user level with default_user_name set?

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.
Locked
jobst
Posts: 16
Joined: Mon Jul 22, 2013 6:33 pm

changing user level with default_user_name set?

Post by jobst »

Hi

If I set the default user in the cgi.cfg file to

default_user_name=blah

and protect the directory by some other means, e.g

AuthType Digest
require valid-user
AuthUserFile /path/somepasswordfile

then once the user is logged in though apache login mechanism the user can see the services as configured in the cgi.cfg file.

Now if I would like to SWAP the user to the admin user because I want to see files/services/stuff the "blah" user cannot see how do I do that?
Is there a login page for nagios that I do not know about?
How can I do that with some apache/php/whatever means?

Jobst
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: changing user level with default_user_name set?

Post by slansing »

If I am reading this correctly, you would only need to change to add the user's name to the "authorized_for_all_*" lines in the cgi.cfg file. Once this is saved, give Nagios and Apache a restart for good measure, and this user should be able to see the sections you have added them to now.
Locked