lighttpd+nagios3



 lighttpd+nagios3を試してみた

  1. インストール
  2. apt-get install nagios3
  3. CGI設定
  4. /etc/lighttpd/lighttpd.conf
      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"
    )

    )
    }
  5. /etc/nagios3/nagios.cfg

  6. check_external_commands=1
  7. パーミッション

  8. # 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