Ano-Tech Computers
Enter keyword:

Apache directives needed to use the NAGIOS CGI interface
Problem:
The manual is quite unclear on exactly what is needed when you want to use the NAGIOS CGI interface.
 
Solution:
Add the following to your httpd.conf file:

# Added for NAGIOS
ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/
/usr/local/nagios/sbin/">
AllowOverride AuthConfig
Options ExecCGI
Order allow,deny
Allow from all


Alias /nagios/ /usr/local/nagios/share/


AllowOverride AuthConfig
order allow,deny
allow from all

# End of NAGIOS

In addition you may have to edit your access.conf file, and we recommend you add a strict .htaccess file. Here is our
/usr/local/nagios/sbin/.htaccess file:

AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
require valid-user

The htpasswd file is created with the htpasswd utility as usual.
 
Discuss this solution
Did this article solve your problem? Yes No Did not apply

We welcome anyone who is willing to contribute to this public knowledge base, contact siteadmin@atc.no if you have information you would like to share. The idea is not to replace the commercial support sites, but to publish those hard-to-find solutions you've found yourself looking for over and over again.

Show all articles