Modification of Nagios Documentation

sean finney seanius at seanius.net
Wed Nov 23 22:28:49 CET 2005


On Wed, Nov 23, 2005 at 04:27:17PM -0500, sean finney wrote:
> attached is how we do it in debian, if anyone finds this helpful.

err... attached this time, eheh...


	sean

-------------- next part --------------
# BEGIN FOR NAGIOS

# nagios is ScriptAlias'd to answer both as /cgi-bin/nagios and
# /nagios/cgi-bin, which should make things work in both standard
# and "virtualhost" style installs.
ScriptAlias /cgi-bin/nagios /usr/lib/cgi-bin/nagios
ScriptAlias /nagios/cgi-bin /usr/lib/cgi-bin/nagios
# the following are from the heady days of netsaint.  if you have
# users who refuse to update their bookmarks, uncomment the next two
# lines.
#ScriptAlias /cgi-bin/netsaint /usr/lib/cgi-bin/nagios
#ScriptAlias /netsaint/cgi-bin /usr/lib/cgi-bin/nagios

<DirectoryMatch /usr/lib/cgi-bin/nagios>
	Options ExecCGI

	AllowOverride AuthConfig
	Order Allow,Deny
	Allow From All

	AuthName "Nagios Access"
	AuthType Basic
	AuthUserFile /etc/nagios/htpasswd.users
	require valid-user
</DirectoryMatch>

# Where the stylesheets (config files) reside
Alias /nagios/stylesheets /etc/nagios/stylesheets

# Enable this ScriptAlias if you want to enable the grouplist patch.
# See http://apan.sourceforge.net/download.html for more info
# It allows you to see a clickable list of all hostgroups in the
# left pane of the Nagios web interface
#ScriptAlias /nagios/side.html /usr/lib/cgi-bin/nagios/grouplist.cgi

# Where the HTML pages live
Alias /nagios /usr/share/nagios/htdocs
<DirectoryMatch /usr/share/nagios/htdocs>
	Options FollowSymLinks

	AllowOverride AuthConfig
	Order Allow,Deny
	Allow From All

	AuthName "Nagios Access"
	AuthType Basic
	AuthUserFile /etc/nagios/htpasswd.users
	require valid-user
</DirectoryMatch>
# END FOR NAGIOS
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20051123/8e6ef7dc/attachment.sig>


More information about the Developers mailing list