I created an account called "usertest"
Code: Select all
htpasswd /etc/nagios3/htpasswd.users usertestCode: Select all
define contact{
contact_name usertest
alias usertest
service_notification_period 24x7
host_notification_period 24x7
service_notification_options w,u,c,r
host_notification_options d,u,r
service_notification_commands notify-service-by-sms
host_notification_commands notify-host-by-email
email [email protected]
pager 123455678
}
http://192.168.2.250/nagios3
If I access nagios from Internet, I can log in only with nagiosadmin!
http://<mypublicip>/nagios3
I can't figure out the reason.
This is apache config:
Code: Select all
grep -v '#' /etc/apache2/conf.d/nagios3.conf | less
ScriptAlias /cgi-bin/nagios3 /usr/lib/cgi-bin/nagios3
ScriptAlias /nagios3/cgi-bin /usr/lib/cgi-bin/nagios3
Alias /nagios3/stylesheets /etc/nagios3/stylesheets
Alias /nagios3 /usr/share/nagios3/htdocs
<DirectoryMatch (/usr/share/nagios3/htdocs|/usr/lib/cgi-bin/nagios3)>
Options FollowSymLinks
DirectoryIndex index.html
AllowOverride AuthConfig
Order Allow,Deny
Allow From All
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /etc/nagios3/htpasswd.users
require valid-user
</DirectoryMatch>Is there any log I can look at?