2014-01-25 00:24:53 +01:00
|
|
|
**********************************************************************
|
|
|
|
|
|
|
|
Enable Nagios in /etc/rc.conf with the following line:
|
|
|
|
|
|
|
|
nagios_enable="YES"
|
|
|
|
|
2014-05-07 14:56:30 +02:00
|
|
|
Configuration templates are available in %%ETCDIR%% as
|
2014-01-25 00:24:53 +01:00
|
|
|
*.cfg-sample files. Copy them to *.cfg files where required and
|
|
|
|
edit to suit your needs. Documentation is available in HTML form
|
2014-05-07 14:56:30 +02:00
|
|
|
in %%NAGIOSWWWDIR%%/docs.
|
2014-01-25 00:24:53 +01:00
|
|
|
|
|
|
|
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):
|
|
|
|
|
2014-05-07 14:56:30 +02:00
|
|
|
<Directory %%NAGIOSWWWDIR%%>
|
2014-01-25 00:24:53 +01:00
|
|
|
Order deny,allow
|
|
|
|
Deny from all
|
|
|
|
Allow from 127.0.0.1
|
|
|
|
php_flag engine on
|
2014-05-07 14:56:30 +02:00
|
|
|
php_admin_value open_basedir %%NAGIOSWWWDIR%%/:%%NAGIOSDIR%%/
|
2014-01-25 00:24:53 +01:00
|
|
|
</Directory>
|
|
|
|
|
2014-05-07 14:56:30 +02:00
|
|
|
<Directory %%NAGIOSWWWDIR%%/cgi-bin>
|
2014-01-25 00:24:53 +01:00
|
|
|
Options ExecCGI
|
|
|
|
</Directory>
|
|
|
|
|
2014-05-07 14:56:30 +02:00
|
|
|
ScriptAlias %%NAGIOSCGIURL%%/ %%NAGIOSWWWDIR%%/cgi-bin/
|
|
|
|
Alias %%NAGIOSHTMURL%%/ %%NAGIOSWWWDIR%%/
|
2014-01-25 00:24:53 +01:00
|
|
|
|
|
|
|
**********************************************************************
|