Page 1 of 5
cgi error
Posted: Fri Sep 20, 2013 2:06 am
by veenm
Hi ,
I recently installed the nagios core and while clicking the map option in GUI am getting below error.
The requested URL /nagios/cgi-bin/trends.cgi was not found on this server.
The requested URL /nagios/cgi-bin/statusmap.cgi was not found on this server.
Please let me know how to resolve this.
Re: cgi error
Posted: Fri Sep 20, 2013 10:23 am
by slansing
Can you run a find on your server for those .cgi files? Once you do show us the output below. Also, what distro and version of core is this? Have you ever had selinux problems? What does:
Output?
Re: cgi error
Posted: Mon Sep 23, 2013 12:37 am
by veenm
Below is the output i got.
[root@CNPUDAS011 etc]# getenforce
Enforcing
[root@CNPUDAS011 etc]# getenforce trends.cgi
Enforcing
[root@CNPUDAS011 etc]# getenforce statusmap.cgi
Enforcing
I am having nagios core 3.5.1 and plugin 1.4X
Re: cgi error
Posted: Mon Sep 23, 2013 9:50 am
by sreinhardt
You should be disabling selinux unless you have enabled the policies specifically for nagios, and set the various file contexts needed. We can dig around for a guide online, but a simple search should bring up many things.
Re: cgi error
Posted: Mon Sep 23, 2013 10:16 am
by veenm
how can i resolve this issue , please let me know. is there any modification i have to do in any .cfg file ?
Re: cgi error
Posted: Mon Sep 23, 2013 10:21 am
by abrist
What distro are you running? If you are running centos or rhel, follow the steps:
http://www.centos.org/docs/5/html/5.2/D ... sable.html
Re: cgi error
Posted: Mon Sep 23, 2013 10:46 am
by veenm
I am using RHEL6 , what does below attached link do . how does it will help me to resolve my issue because in nagios main installation bundle also i did not see the statusmap.cgi file . Only i could see statusmap.c file.
Re: cgi error
Posted: Mon Sep 23, 2013 10:59 am
by sreinhardt
the statusmap.c file is compiled to statusmap.cgi. The link, explains how to disable selinux, as that is what you presently need to do to verify the install.
Re: cgi error
Posted: Mon Sep 23, 2013 8:41 pm
by veenm
I have already disabled the SELINUX but still mine problem is not resolved.
Re: cgi error
Posted: Tue Sep 24, 2013 9:39 am
by abrist
So "getenforce" now reports:
?