$OpenBSD: README-main,v 1.2 2013/11/07 10:31:38 rpe Exp $

+-----------------------------------------------------------------------
| Running nagios-4.0.1-chroot on OpenBSD
+-----------------------------------------------------------------------

Getting Started
===============

The main documentation for Nagios is provided online at
http://nagios.sourceforge.net/docs/nagioscore/4/en/.

The included sample configuration carries out some simple checks
on the local machine; these should work as-is.

You may check your configuration file format before starting Nagios:

   $ sudo -u _nagios /usr/local/sbin/nagios -v /etc/nagios/nagios.cfg

This will parse all configuration files and warn about any problems
which have been identified.

To enable automatic startup on boot for nagios, add it to pkg_scripts
in /etc/rc.conf.local, for example:

   pkg_scripts="${pkg_scripts} nagios"

To start nagios, reboot or start it manually:

   $ sudo /etc/rc.d/nagios start


Web User-Interface
==================

To enable nagios-web, link the provided httpd.conf snippet:

      $ sudo ln -s /var/www/conf/modules.sample/nagios.conf \
         /var/www/conf/modules

You may wish to modify this file.  By default it uses HTTP basic
authentication; you can create the password file as follows:

      $ sudo touch /etc/nagios/htpasswd.users
      $ sudo htpasswd /etc/nagios/htpasswd.users <username>

When done, restart the web server:

      $ sudo /etc/rc.d/httpd restart

You should then be able to access the web interface at
http://localhost/nagios/
