Login

Hi,

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.

Thanks.

(I’m using Nagios 3.03 with Ubuntu server 8.0.4)

have you tried to set “use_authentication” to 0 ? (don’t forget to read the 10 lines before this option, as it’s a warning :))

Thanks for your reply.

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.

ok :slight_smile:

maybe you can check in your httpd.conf file (config file for your apache).
in the nagios install doc, they tell you to use these definitions:

[code]ScriptAlias /nagios/cgi-bin /usr/local/nagios/sbin

<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).

Thanks for your help!