Is it possible to automatically login with “nagiosadmin”, or disable authentication so everyone is admin?
I don’t want to see the login prompt but I can’t find a way to disable it.
I already tried setting “default_user_name=” to “nagiosadmin” in cgi.cfg but that didn’t work as I expected.
I tried that one too, forgot to tell you in my first post, sorry,
It does not remove the login prompt when viewing the nagios site, only the cgi’s are available without logging in.
My nagios server is not accessible from the internet so security doesn’t matter.
<Directory “/usr/local/nagios/sbin”>
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
** AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user**
Alias /nagios /usr/local/nagios/share
<Directory “/usr/local/nagios/share”>
Options None
AllowOverride None
Order allow,deny
Allow from all
** AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user**
[/code]
I “think” that by removing the lines in bold (edit: ok, bold does not work inside a code balise …), that should work (I’m not really sure, and you may have to twick a little bit these lines, but you got the idea^^)
I found the text you posted, but it wasn’t in httpd.conf.
Nagios created a file named nagios.conf in /etc/apache2/conf.d/.
I put a # in front of the lines you tried to make bold :P.
Now I don’t have to login anymore, also I can still make comments and check services/hosts (probably the default_user_name and use_authentication setting in cgi.cfg).