sebix

Icinga on Lighttpd and Wheezy

2014-01-02, 17:46

As I haven’t found any work­ing ex­am­ple con­fig­u­ra­tion for run­ning icin­ga on a sub do­main with lighttpd, I will here pre­sent my work­ing so­lu­tion.
First of all, we need to in­stall the soft­ware it­self:

  $ apt-get install icinga icinga-doc

We cre­ate the file /etc/lighttpd/conf-available/50-icinga.conf to have a con­fig­u­ra­tion which is easy en- and dis­able:


$HTTP[“host”] =~ “icinga.example.org” { auth.backend = “htdigest” auth.backend.htdigest.userfile = “/etc/lighttpd/icinga.htdigest” auth.require = ( “/” => ( “method” => “digest”, “realm” => “icinga”, “require” => “valid-user” ) )
server.document-root = “/usr/share/icinga/htdocs” alias.url += ( “/cgi-bin/icinga” => “/usr/lib/cgi-bin/icinga”, “/icinga/stylesheets” => “/etc/icinga/stylesheets/”, “/icinga” => “/usr/share/icinga/htdocs”, “/stylesheets” => “/etc/icinga/stylesheets/”, ) $HTTP[“url”] =~ “^/cgi-bin/” { dir-listing.activate = “disable” cgi.assign = ( “.pl” => “/usr/bin/perl”, “.cgi” => “” ) } }

Now continue

hosted by github
powered by acrylamid
Creative Commons Attribution 3.0 Unported License