From ArchWiki
Revision as of 03:28, 5 October 2012 by GutenYe (talk | contribs) (Created page with " == Headline text == Category:Daemons and system services Category:Networking {{Article summary start}} {{Article summary text|A short installation and configuration g...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Headline text

Template:Article summary start

Template:Article summary text Template:Article summary end

Icinga is an open source host, service and network monitoring program. It monitors specified hosts and services, alerting you to any developing issues, errors or improvements. This article describes the installation and configuration of Icinga.


> Follow Install Web Application Package

Install icinga from the AUR.

Users may also want to install nagios-plugins.

Icinga Configuration

Copy the sample config files as root:

 # cd /etc/icinga
 # cp cgi.cfg.sample cgi.cfg
 # cp resource.cfg.sample resource.cfg
 # cp icinga.cfg.sample icinga.cfg
 # cp objects/commands.cfg.sample objects/commands.cfg
 # cp objects/contacts.cfg.sample objects/contacts.cfg
 # cp objects/localhost.cfg.sample objects/localhost.cfg
 # cp objects/templates.cfg.sample objects/templates.cfg
 # cp objects/timeperiods.cfg.sample objects/timeperiods.cfg

Edit /etc/icinga/resource.cfg


Webserver Configuration

Create htpasswd.users file with a username and password.

 # htpasswd -c /etc/icinga/htpasswd.users icingaadmin

If you define another user foo, you need grant access permission to that user. Edit /etc/icinga/cgi.cfg


Additional Nginx Configuration

Configure Authentication

 location /icinga/ {
   auth_basic              "Restricted";
   auth_basic_user_file    /etc/icinga/htpasswd.users;

Configure CGI

   location ~ \.cgi$ {
     fastcgi_pass    unix:/var/run/fcgiwrap.sock;
     include        fastcgi.conf;
     fastcgi_param  AUTH_USER          $remote_user;
     fastcgi_param  REMOTE_USER        $remote_user;

See also