lighttpd+nagios3を試してみた
- インストール
- CGI設定 /etc/lighttpd/lighttpd.conf
- /etc/nagios3/nagios.cfg
- パーミッション
apt-get install nagios3
alias.url += (
"/nagios3/stylesheets" => "/etc/nagios3/stylesheets" ,
"/cgi-bin/nagios3" => "/usr/lib/cgi-bin/nagios3",
"/nagios3/cgi-bin" => "/usr/lib/cgi-bin/nagios3",
"/nagios3" => "/usr/share/nagios3/htdocs"
)
$HTTP["url"] =~ "^/nagios3/cgi-bin|^/cgi-bin/nagios3" {
cgi.assign = ( "" => "" )
auth.require = (
"" =>
(
"method" => "basic",
"realm" => "nagios",
"require" => "user=nagiosadmin"
)
)
}
check_external_commands=1
# dpkg-statoverride --update --add nagios www-data 2710 /var/lib/nagios3/rw
# dpkg-statoverride --update --add nagios nagios 751 /var/lib/nagios3
参考リンク
http://d.hatena.ne.jp/rx7/20070319/p3
http://d.hatena.ne.jp/turutosiya/20090403/p2
http://d.hatena.ne.jp/ksaito11/20090311/1236725318