View FAQ

[ Return To FAQ Index | Search The FAQs ]


FAQ Database : Nagios : Web Interface

Title:The statusmap, trends and histogram CGIs exist but produce an error when accessed -- Part 2
FAQ ID:F0377
Submitted By:Jon Vandegrift 
Last Updated:03/14/2007

Description:according to install document URL... http://nagios.sourceforge.net/docs/2_0/installweb.html The Apache config file httpd.conf should look like this for the Nagios CGI dir... ScriptAlias /nagios/cgi-bin /usr/local/nagios/sbin Options ExecCGI AllowOverride None Order allow,deny Allow from all AuthName "Nagios Access" AuthType Basic AuthUserFile /usr/local/nagios/etc/htpasswd.users Require valid-user However, if you use Apache v2.2.2 the LD_LIBRARY_PATH is not passed by default to the CGI modules.  

Solution:Add the "passenv" to the Apache directory definition -- like so... ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin/" Options ExecCGI AllowOverride None Order allow,deny Allow from all AuthName "Nagios Access" AuthType Basic AuthUserFile /usr/local/nagios/etc/htpasswd.users Require valid-user passenv LD_LIBRARY_PATH  

Keywords:statusmap trends histogram CGI Apache LD_LIBRARY_PATH