Web interface access

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
olliecampbell
Posts: 7
Joined: Mon Dec 12, 2011 6:48 am

Web interface access

Post by olliecampbell »

Hello,

First post and a 'can it be done' question! I'm running 3.3.1 on Fedora which currently requires a username and password to access the web interface.

What I'd like to do is allow read only access to the web interface without entering a username or password on the default internal URL (http://nagios). Then using another URL (e.g. http://nagios/admin), get Apache to prompt for a username/password to allow for editable access.

I've got the readonly user account working and have tried playing about with the Apache config but can't seem to get it right! Should I be able to do it?

Thanks in advance.

Ollie
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: Web interface access

Post by jsmurphy »

This is more of a "I think it can be done this way" as I've never actually tried to do this for anything:

Create 2 alias's one for nagios/admin another for nagios/user and do the normal authentication stuff for the admin login. For the user login I believe there is User and Group config options in apache to explicitly specify the login User and Group, just set that.

http://httpd.apache.org/docs/2.0/mod/mp ... .html#user
Locked