Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Anyway, after doing all of this, I got to the web interface and logged in successfully. However, whenever I click on any of the menu items, my browser wants to download the cgi files, not run them.
# SAMPLE CONFIG SNIPPETS FOR APACHE WEB SERVER
#
# This file contains examples of entries that need
# to be incorporated into your Apache web server
# configuration file. Customize the paths, etc. as
# needed to fit your system.
ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"
<Directory "/usr/local/nagios/sbin">
# SSLRequireSSL
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</Directory>
Alias /nagios "/usr/local/nagios/share"
<Directory "/usr/local/nagios/share">
# SSLRequireSSL
Options None
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</Directory>
I would appreciate any support that someone can provide. Thanks.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
# SAMPLE CONFIG SNIPPETS FOR APACHE WEB SERVER
#
# This file contains examples of entries that need
# to be incorporated into your Apache web server
# configuration file. Customize the paths, etc. as
# needed to fit your system.
ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"
<Directory "/usr/local/nagios/sbin">
# SSLRequireSSL
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</Directory>
Alias /nagios "/usr/local/nagios/share"
<Directory "/usr/local/nagios/share">
# SSLRequireSSL
Options None
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</Directory>
I would appreciate any support that someone can provide. Thanks.
Is this you httpd.conf or your nagios.conf ? It should be your nagios.conf in the /etc/httpd/conf.d directory
secondly, in your /etc/httpd/conf/http.conf make sure you have the following line
I went ahead and edit that file (/etc/httpd/conf.d/nagios.d/httpd.conf) and inserted the line that you indicated. After restarting Apache, I logged into the web interface. Same problem. CGI's still won't execute. Thus, I reversed my change to the file, going back to the way it was.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
When I run the command that you indicate, I get the following:
No command 'httpd' found, di you mean:
Command 'http' from package 'httpie' (Universe)
Command 'xttpd' from package 'xtide' (Universe)
Command 'https' from package 'httpie' (universe)
httpd: command not found
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
> apache2 -M | grep cgi
[Thu May 01 16:15:36.026090 2014] [core:warn] [pid 8344] AH00111: Config variable ${APACHE_LOCK_DIR} is not defined
[Thu May 01 16:15:36.026183 2014] [core:warn] [pid 8344] AH00111: Config variable ${APACHE_PID_FILE} is not defined
[Thu May 01 16:15:36.026195 2014] [core:warn] [pid 8344] AH00111: Config variable ${APACHE_RUN_USER} is not defined
[Thu May 01 16:15:36.026198 2014] [core:warn] [pid 8344] AH00111: Config variable ${APACHE_RUN_GROUP} is not defined
[Thu May 01 16:15:36.026212 2014] [core:warn] [pid 8344] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[Thu May 01 16:15:36.034413 2014] [core:warn] [pid 8344] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[Thu May 01 16:15:36.034692 2014] [core:warn] [pid 8344] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[Thu May 01 16:15:36.034711 2014] [core:warn] [pid 8344] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
AH00526: Syntax error on line 74 of /etc/apache2/apache2.conf:
Invalid Mutex directory in argument file:${APACHE_LOCK_DIR}