New Centos install The requested URL /nagios/status.cgi was

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.
borrierulez
Posts: 24
Joined: Wed Mar 16, 2016 4:59 am

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

Post by borrierulez »

user nagios was already in it, added appache, restarted httpd, same result
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

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

Post by hsmith »

Is SELinux enforcing?
Former Nagios Employee.
me.
borrierulez
Posts: 24
Joined: Wed Mar 16, 2016 4:59 am

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

Post by borrierulez »

nope :)
User avatar
rhassing
Posts: 416
Joined: Sat Oct 05, 2013 10:29 pm
Location: Netherlands

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

Post by rhassing »

What do you see in the httpd error log.

Code: Select all

/var/log/httpd/error.log
Rob Hassing
Image
borrierulez
Posts: 24
Joined: Wed Mar 16, 2016 4:59 am

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

Post 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 :)
User avatar
rhassing
Posts: 416
Joined: Sat Oct 05, 2013 10:29 pm
Location: Netherlands

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

Post by rhassing »

Could you please post your /etc/httpd/conf.d/nagios.conf file?
There could be a wrong directive for the cgi-bin
Rob Hassing
Image
borrierulez
Posts: 24
Joined: Wed Mar 16, 2016 4:59 am

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

Post 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>
"
User avatar
rhassing
Posts: 416
Joined: Sat Oct 05, 2013 10:29 pm
Location: Netherlands

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

Post by rhassing »

Sorry I missed that :oops:

Is none of the cgi scripts working, or is it just the status.cgi?
Rob Hassing
Image
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

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

Post by tmcdonald »

Going for another MVP, Rob? :)

@borrierulez keep us posted!
Former Nagios employee
User avatar
lgroschen
Posts: 384
Joined: Wed Nov 27, 2013 1:17 pm

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

Post 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?
/Luke
Locked