Page 2 of 3

Re: New Centos install The requested URL /nagios/status.cgi

Posted: Mon Mar 21, 2016 11:30 am
by borrierulez
user nagios was already in it, added appache, restarted httpd, same result

Re: New Centos install The requested URL /nagios/status.cgi

Posted: Mon Mar 21, 2016 3:23 pm
by hsmith
Is SELinux enforcing?

Re: New Centos install The requested URL /nagios/status.cgi

Posted: Tue Mar 22, 2016 2:56 am
by borrierulez
nope :)

Re: New Centos install The requested URL /nagios/status.cgi

Posted: Tue Mar 22, 2016 3:38 am
by rhassing
What do you see in the httpd error log.

Code: Select all

/var/log/httpd/error.log

Re: New Centos install The requested URL /nagios/status.cgi

Posted: Tue Mar 22, 2016 4:42 am
by borrierulez
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 :)

Re: New Centos install The requested URL /nagios/status.cgi

Posted: Tue Mar 22, 2016 7:30 am
by rhassing
Could you please post your /etc/httpd/conf.d/nagios.conf file?
There could be a wrong directive for the cgi-bin

Re: New Centos install The requested URL /nagios/status.cgi

Posted: Tue Mar 22, 2016 7:34 am
by borrierulez
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>
"

Re: New Centos install The requested URL /nagios/status.cgi

Posted: Tue Mar 22, 2016 7:54 am
by rhassing
Sorry I missed that :oops:

Is none of the cgi scripts working, or is it just the status.cgi?

Re: New Centos install The requested URL /nagios/status.cgi

Posted: Tue Mar 22, 2016 2:03 pm
by tmcdonald
Going for another MVP, Rob? :)

@borrierulez keep us posted!

Re: New Centos install The requested URL /nagios/status.cgi

Posted: Tue Mar 22, 2016 2:07 pm
by lgroschen
Can you verify the following:

Code: Select all

yum list installed gd gd-devel zlib zlib-devel
You're sure that when youcompiled nagios you ran it with the --with-command-group=nagcmd flag?