cgi error
cgi error
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.
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.
-
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: cgi error
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?
Code: Select all
getenforce
Re: cgi error
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
[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
-
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: cgi error
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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Re: cgi error
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
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
http://www.centos.org/docs/5/html/5.2/D ... sable.html
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: cgi error
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.
-
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: cgi error
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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Re: cgi error
I have already disabled the SELINUX but still mine problem is not resolved.
Re: cgi error
So "getenforce" now reports:
?
Code: Select all
Disabled
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.