Not Found
The requested URL /nagios/< was not found on this server.
Apache/2.2.3 (Red Hat) Server at localhost Port 80
Still getting the above when visiting
http://localhost/nagios/index.php
with httpd and nagios up and nagios properly installed as far as I can see.
Nagios 3.2.2 & Plugins 1.4.15 question
-
- Posts: 35
- Joined: Sat Sep 25, 2010 12:53 pm
Re: Nagios 3.2.2 & Plugins 1.4.15 question
My apologies if I wasn't clear. Can I see the actual contents of the nagios.conf file.
Can you paste your output from that?
Code: Select all
less /etc/httpd/conf.d/nagios.conf
-
- Posts: 35
- Joined: Sat Sep 25, 2010 12:53 pm
Re: Nagios 3.2.2 & Plugins 1.4.15 question
[root@localhost ~]# less /etc/httpd/conf.d/nagios.conf
/etc/httpd/conf.d/nagios.conf: No such file or directory
[root@localhost ~]# ls -l /etc/httpd/conf.d/nagios.conf
ls: /etc/httpd/conf.d/nagios.conf: No such file or directory
[root@localhost ~]# ls -l /etc/httpd/conf.d
total 48
-rw-r--r-- 1 root root 1044 Sep 26 13:38 nagios.conf.nada
-rw-r--r-- 1 root root 999 Sep 27 23:38 nagios.conf.old
-rw-r--r-- 1 root root 1010 Sep 26 14:09 nagios.conf.original
-rw-r--r-- 1 root root 566 Aug 19 08:20 proxy_ajp.conf
-rw-r--r-- 1 root root 392 Aug 19 08:20 README
-rw-r--r-- 1 root root 299 Aug 19 08:20 welcome.conf
[root@localhost ~]# less /etc/httpd/conf.d/nagios.conf.old
[root@localhost ~]# cat /etc/httpd/conf.d/nagios.conf.old
# SAMPLE CONFIG SNIPPETS FOR APACHE WEB SERVER
# Last Modified: 11-26-2005
#
# 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.
# BEGIN FOR NAGIOS
ScriptAlias /nagios/cgi-bin /usr/local/nagios/sbin
<Directory "/usr/local/nagios/sbin">
Options ExecCGI
AllowOverride AuthConfig
Order Allow,Deny
Allow From All
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/nagios.users
require valid-user
</Directory>
# Where the HTML pages live
Alias /nagios /usr/local/nagios/share
<Directory /usr/local/nagios/share>
Options FollowSymLinks
AllowOverride AuthConfig
Order Allow,Deny
Allow From All
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/nagios.users
require valid-user
</Directory>
[root@localhost ~]#
/etc/httpd/conf.d/nagios.conf: No such file or directory
[root@localhost ~]# ls -l /etc/httpd/conf.d/nagios.conf
ls: /etc/httpd/conf.d/nagios.conf: No such file or directory
[root@localhost ~]# ls -l /etc/httpd/conf.d
total 48
-rw-r--r-- 1 root root 1044 Sep 26 13:38 nagios.conf.nada
-rw-r--r-- 1 root root 999 Sep 27 23:38 nagios.conf.old
-rw-r--r-- 1 root root 1010 Sep 26 14:09 nagios.conf.original
-rw-r--r-- 1 root root 566 Aug 19 08:20 proxy_ajp.conf
-rw-r--r-- 1 root root 392 Aug 19 08:20 README
-rw-r--r-- 1 root root 299 Aug 19 08:20 welcome.conf
[root@localhost ~]# less /etc/httpd/conf.d/nagios.conf.old
[root@localhost ~]# cat /etc/httpd/conf.d/nagios.conf.old
# SAMPLE CONFIG SNIPPETS FOR APACHE WEB SERVER
# Last Modified: 11-26-2005
#
# 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.
# BEGIN FOR NAGIOS
ScriptAlias /nagios/cgi-bin /usr/local/nagios/sbin
<Directory "/usr/local/nagios/sbin">
Options ExecCGI
AllowOverride AuthConfig
Order Allow,Deny
Allow From All
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/nagios.users
require valid-user
</Directory>
# Where the HTML pages live
Alias /nagios /usr/local/nagios/share
<Directory /usr/local/nagios/share>
Options FollowSymLinks
AllowOverride AuthConfig
Order Allow,Deny
Allow From All
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/nagios.users
require valid-user
</Directory>
[root@localhost ~]#
-
- Posts: 35
- Joined: Sat Sep 25, 2010 12:53 pm
Re: Nagios 3.2.2 & Plugins 1.4.15 question
Hello.
Here are the contents of the most recent nagios.conf.
I renamed it to nagios.conf.old since the related material is in httpd.conf instead.
If anyone has a *working* nagios.conf and httpd.conf that can be used for a proof-of-concept,
please kindly forward it.
--Stuart
[root@localhost conf.d]# cat nagios.conf.old
# SAMPLE CONFIG SNIPPETS FOR APACHE WEB SERVER
# Last Modified: 11-26-2005
#
# 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.
# BEGIN FOR NAGIOS
ScriptAlias /nagios/cgi-bin /usr/local/nagios/sbin
<Directory "/usr/local/nagios/sbin">
Options ExecCGI
AllowOverride AuthConfig
Order Allow,Deny
Allow From All
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/nagios.users
require valid-user
</Directory>
# Where the HTML pages live
Alias /nagios /usr/local/nagios/share
<Directory /usr/local/nagios/share>
Options FollowSymLinks
AllowOverride AuthConfig
Order Allow,Deny
Allow From All
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/nagios.users
require valid-user
</Directory>
Here are the contents of the most recent nagios.conf.
I renamed it to nagios.conf.old since the related material is in httpd.conf instead.
If anyone has a *working* nagios.conf and httpd.conf that can be used for a proof-of-concept,
please kindly forward it.
--Stuart
[root@localhost conf.d]# cat nagios.conf.old
# SAMPLE CONFIG SNIPPETS FOR APACHE WEB SERVER
# Last Modified: 11-26-2005
#
# 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.
# BEGIN FOR NAGIOS
ScriptAlias /nagios/cgi-bin /usr/local/nagios/sbin
<Directory "/usr/local/nagios/sbin">
Options ExecCGI
AllowOverride AuthConfig
Order Allow,Deny
Allow From All
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/nagios.users
require valid-user
</Directory>
# Where the HTML pages live
Alias /nagios /usr/local/nagios/share
<Directory /usr/local/nagios/share>
Options FollowSymLinks
AllowOverride AuthConfig
Order Allow,Deny
Allow From All
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/nagios.users
require valid-user
</Directory>