Lines 1-36
Link Here
|
1 |
********************************************************************** |
1 |
********************************************************************** |
2 |
|
2 |
|
3 |
Enable nagios in /etc/rc.conf with the following line: |
3 |
Enable Nagios in /etc/rc.conf with the following line: |
4 |
|
4 |
|
5 |
nagios_enable="YES" |
5 |
nagios_enable="YES" |
6 |
|
6 |
|
7 |
Configuration templates are available in %%PREFIX%%/etc/nagios as |
7 |
Configuration templates are available in %%PREFIX%%/etc/nagios as |
8 |
*.cfg-sample files. Copy then to *.cfg files where required and |
8 |
*.cfg-sample files. Copy them to *.cfg files where required and |
9 |
edit to suit your needs. Documentation is available in HTML form |
9 |
edit to suit your needs. Documentation is available in HTML form |
10 |
in %%PREFIX%%/%%NAGIOSWWWDIR%%/docs. |
10 |
in %%PREFIX%%/%%NAGIOSWWWDIR%%/docs. |
11 |
|
11 |
|
12 |
If you don't already have a web server running, you will need to |
12 |
If you don't already have a web server running, you will need to |
13 |
install and configure one to finish off your nagios installation. |
13 |
install and configure one to finish off your Nagios installation. |
14 |
When used with Apache, the following should be sufficient to publish |
14 |
When used with Apache, the following should be sufficient to publish |
15 |
the web component of nagios (modification of allow list encouraged): |
15 |
the web component of Nagios (modify the allow list to suit): |
16 |
|
16 |
|
17 |
<Directory %%PREFIX%%/%%NAGIOSWWWDIR%%> |
17 |
<Directory %%PREFIX%%/%%NAGIOSWWWDIR%%> |
18 |
Order allow,deny |
18 |
Order deny,allow |
19 |
Allow from all |
19 |
Deny from all |
|
|
20 |
Allow from 127.0.0.1 |
20 |
</Directory> |
21 |
</Directory> |
21 |
|
22 |
|
22 |
<Directory %%PREFIX%%/%%NAGIOSWWWDIR%%/cgi-bin> |
23 |
<Directory %%PREFIX%%/%%NAGIOSWWWDIR%%/cgi-bin> |
23 |
Options ExecCGI |
24 |
Options ExecCGI |
24 |
</Directory> |
25 |
</Directory> |
25 |
|
26 |
|
26 |
ScriptAlias %%NAGIOSCGIURL%%/ %%PREFIX%%/%%NAGIOSWWWDIR%%/cgi-bin/ |
27 |
ScriptAlias %%NAGIOSCGIURL%%/ %%PREFIX%%/%%NAGIOSWWWDIR%%/cgi-bin/ |
27 |
Alias %%NAGIOSHTMURL%%/ %%PREFIX%%/%%NAGIOSWWWDIR%%/ |
28 |
Alias %%NAGIOSHTMURL%%/ %%PREFIX%%/%%NAGIOSWWWDIR%%/ |
28 |
|
|
|
29 |
********************************************************************** |
30 |
|
31 |
Users experiencing troubles with logos used in the Status Map CGI |
32 |
should first check the value of the physical_html_path variable |
33 |
defined in %%PREFIX%%/etc/nagios/cgi.cfg. Refer to the example in |
34 |
%%PREFIX%%/etc/nagios/cgi.cfg-sample for the correct value. |
35 |
|
29 |
|
36 |
********************************************************************** |
30 |
********************************************************************** |