nagios

FreeBSD

Enable Nagios in /etc/rc.conf with the following line:

  nagios_enable="YES"

Configuration templates are available in /usr/local/etc/nagios as
*.cfg-sample files.  Copy them to *.cfg files where required and
edit to suit your needs.  Documentation is available in HTML form
in /usr/local/www/nagios/docs.

If you don't already have a web server running, you will need to
install and configure one to finish off your Nagios installation.
When used with Apache, the following should be sufficient to publish
the web component of Nagios (modify the allow list to suit):

  <Directory /usr/local/www/nagios>
    Order deny,allow
    Deny from all
    Allow from 127.0.0.1
    php_flag engine on
    php_admin_value open_basedir /usr/local/www/nagios/:/var/spool/nagios/
  </Directory>

  <Directory /usr/local/www/nagios/cgi-bin>
    Options ExecCGI
  </Directory>

  ScriptAlias /nagios/cgi-bin/ /usr/local/www/nagios/cgi-bin/
  Alias /nagios/ /usr/local/www/nagios/

ほげ

icinga

nagiosの後継、というかfork。

apt-get install icinga
apt-get install apache2 build-essential libgd2-xpm-dev
apt-get install libjpeg62 libjpeg62-dev libpng12-0 libpng12-dev
/etc/apache2/conf.d/icinga.confが作られる。

AuthUserFile /etc/icinga/htpasswd.usersがあるので、
sudo htpasswd -c  /etc/icinga/htpasswd.users icingaadmin
sudo htpasswd -c  /etc/icinga/htpasswd.users kanai

すでに、/icingaでアクセス可能。

sudo update-rc.d icinga defaults
> boot時に起動

apt-get install mysql-server libdbd-mysql mysql-client
apt-get install icinga icinga-cgi icinga-core icinga-doc icinga-idoutils
apt-get install php5 php5-cli php-pear php5-xmlrpc php5-xsl php5-gd php5-ldap php5-mysql
apt-get install icinga-web

https://wiki.icinga.org/display/howtos/Setting+up+Icinga+with+IDOUtils+on+Debian
https://wiki.icinga.org/display/howtos/Setting+up+Icinga+Web+on+Debian
> IDOUtilsいれてからじゃないとこれはいかない

less /usr/share/doc/icinga-web/README.Debian

/icinga-webで入れる

config

/etc/icinga/objects

にあるkk