New Centos install The requested URL /nagios/status.cgi was
-
borrierulez
- Posts: 24
- Joined: Wed Mar 16, 2016 4:59 am
Re: New Centos install The requested URL /nagios/status.cgi
user nagios was already in it, added appache, restarted httpd, same result
Re: New Centos install The requested URL /nagios/status.cgi
Is SELinux enforcing?
Former Nagios Employee.
me.
me.
-
borrierulez
- Posts: 24
- Joined: Wed Mar 16, 2016 4:59 am
Re: New Centos install The requested URL /nagios/status.cgi
What do you see in the httpd error log.
Code: Select all
/var/log/httpd/error.logRob Hassing


-
borrierulez
- Posts: 24
- Joined: Wed Mar 16, 2016 4:59 am
Re: New Centos install The requested URL /nagios/status.cgi
nothing in the error log, i have this in the access log: nagiosadmin [22/Mar/2016:10:38:57 +0100] "GET /nagios/status.cgi?host=undefined HTTP/1.1" 404 215 "http://ipaddress/nagios/map.html?host=all" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36"
Ow yeah, i've installed nagvis, working ok but if i have 2 parents only on is shown by automap AAAAAAAARGH
Ow yeah, i've installed nagvis, working ok but if i have 2 parents only on is shown by automap AAAAAAAARGH
Re: New Centos install The requested URL /nagios/status.cgi
Could you please post your /etc/httpd/conf.d/nagios.conf file?
There could be a wrong directive for the cgi-bin
There could be a wrong directive for the cgi-bin
Rob Hassing


-
borrierulez
- Posts: 24
- Joined: Wed Mar 16, 2016 4:59 am
Re: New Centos install The requested URL /nagios/status.cgi
I posted it already on page one 
Here you go:
ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"
<Directory "/usr/local/nagios/sbin">
# SSLRequireSSL
Options ExecCGI
AllowOverride None
<IfVersion >= 2.3>
<RequireAll>
Require all granted
# Require host 127.0.0.1
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</RequireAll>
"
Here you go:
ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"
<Directory "/usr/local/nagios/sbin">
# SSLRequireSSL
Options ExecCGI
AllowOverride None
<IfVersion >= 2.3>
<RequireAll>
Require all granted
# Require host 127.0.0.1
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</RequireAll>
"
Re: New Centos install The requested URL /nagios/status.cgi
Sorry I missed that
Is none of the cgi scripts working, or is it just the status.cgi?
Is none of the cgi scripts working, or is it just the status.cgi?
Rob Hassing


Re: New Centos install The requested URL /nagios/status.cgi
Former Nagios employee
Re: New Centos install The requested URL /nagios/status.cgi
Can you verify the following:
You're sure that when youcompiled nagios you ran it with the --with-command-group=nagcmd flag?
Code: Select all
yum list installed gd gd-devel zlib zlib-devel/Luke