Hi,
I've been struggling with this but can't get it to work.
I've added nagios4 and it's running fine.
Since pihole is already using lighttpd I thought I want to use lighttpd as well for the Nagios page.
However, somehow I can't get it work.
I've added the following to /etc/lighttpd/conf-enabled/10-nagios4.conf:
# Nagios4
alias.url += (
"/cgi-bin/nagios" => "/usr/lib/cgi-bin/nagios4",
"/nagios/cgi-bin" => "/usr/lib/cgi-bin/nagios4",
"/nagios" => "/usr/share/nagios4",
"/pnp4nagios" => "/opt/pnp4nagios/share"
)
$HTTP["url"] =~ "^/nagios/cgi-bin" {
cgi.assign = ( "" => "" )
}
$HTTP["url"] =~ "nagios" {
auth.backend = "htpasswd"
auth.backend.htpasswd.userfile = "/etc/nagios4/htpasswd.users"
auth.require = ("" => (
"method" => "basic",
"realm" => "nagios",
"require" => "valid-user"
)
)
}
THe syntax is ok but when I go to http://iphole/nagios it will redirect always to the 'Did you mean to go to the admin panel?'-page.
Could someone tell me please how to make this work?
Thanks in advance.