cgi error

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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: cgi error

Post by abrist »

Are you sure you finished compiling? Not all cgis were built. Do you have the nagios core install.log?
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.
veenm
Posts: 148
Joined: Tue Jun 18, 2013 5:58 am

Re: cgi error

Post by veenm »

i will provide you the log , mean time could you please let me know what might the problem for this error as i am sure that compilation was done successfully.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: cgi error

Post by abrist »

The cgi does not exist, though the c file does. This leads me to believe that not all the cgis were built, and subsequently the compile did not finish error free if at all.
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.
veenm
Posts: 148
Joined: Tue Jun 18, 2013 5:58 am

Re: cgi error

Post by veenm »

Your observation is rite. i have attached the /var/log/messgae file.
Attachments
messages-20130922.zip
(164.32 KiB) Downloaded 122 times
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: cgi error

Post by slansing »

What andy said could be quite true, and you would need to re-compile and send us a log of your installation, also have you tried disabling selinux? There are a lot of audit messages having to do with it:

http://www.crypt.gen.nz/selinux/disable_selinux.html
veenm
Posts: 148
Joined: Tue Jun 18, 2013 5:58 am

Re: cgi error

Post by veenm »

SELINUX is already disabled , I have already recompiled , but did not see the cgi file, any specific command to compile .c file.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: cgi error

Post by abrist »

How are you installing core? (repos, source, etc)
Could you post the install.log from the compile?
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.
veenm
Posts: 148
Joined: Tue Jun 18, 2013 5:58 am

Re: cgi error

Post by veenm »

Hi Abrist,

I am installing the core from source.

I recompiled the nagios bundle again , i followed the below steps . But after compiling also i did not see the statusmap.cgi .

./configure --with-gd-lib=/usr/lib/ --with-gd-inc=/usr/include
make cgis

when i checked in /nagios/cgi/ path there was no cgi file generated after the compilation

-rw-rw-r-- 1 root root 191670 Aug 31 01:46 avail.c
-rwxr-xr-x 1 root root 898788 Oct 3 10:45 avail.cgi
-rw-rw-r-- 1 root root 19965 Aug 31 01:46 cgiauth.c
-rw-r--r-- 1 root root 44208 Oct 3 10:45 cgiauth.o
-rw-rw-r-- 1 root root 55221 Aug 31 01:46 cgiutils.c
-rw-r--r-- 1 root root 123920 Oct 3 10:45 cgiutils.o
-rw-rw-r-- 1 root root 113597 Aug 31 01:46 cmd.c
-rwxr-xr-x 1 root root 830036 Oct 3 10:45 cmd.cgi
-rw-r--r-- 1 root root 24776 Oct 3 10:45 comments-cgi.o
-rw-rw-r-- 1 root root 89210 Aug 31 01:46 config.c
-rwxr-xr-x 1 root root 797811 Oct 3 10:45 config.cgi
-rw-r--r-- 1 root root 20760 Oct 3 10:45 downtime-cgi.o
-rw-rw-r-- 1 root root 9304 Aug 31 01:46 extcmd_list.c
-rw-r--r-- 1 root root 19080 Oct 3 10:45 extcmd_list.o
-rw-rw-r-- 1 root root 159673 Aug 31 01:46 extinfo.c
-rwxr-xr-x 1 root root 850150 Oct 3 10:45 extinfo.cgi
-rw-rw-r-- 1 root root 14587 Aug 31 01:46 getcgi.c
-rw-r--r-- 1 root root 30560 Oct 3 10:45 getcgi.o
-rw-rw-r-- 1 root root 83513 Aug 31 01:46 histogram.c
-rw-rw-r-- 1 root root 30914 Aug 31 01:46 history.c
-rwxr-xr-x 1 root root 755776 Oct 3 10:45 history.cgi
-rw-r--r-- 1 root root 162968 Oct 3 10:45 macros-cgi.o
-rw-r--r-- 1 root root 6249 Oct 3 10:43 Makefile
-rw-rw-r-- 1 root root 6174 Aug 31 01:46 Makefile.in
-rw-rw-r-- 1 root root 26130 Aug 31 01:46 notifications.c
-rwxr-xr-x 1 root root 752614 Oct 3 10:45 notifications.cgi
-rw-r--r-- 1 root root 160712 Oct 3 10:45 objects-cgi.o
-rw-rw-r-- 1 root root 20610 Aug 31 01:46 outages.c
-rwxr-xr-x 1 root root 747347 Oct 3 10:45 outages.cgi
-rw-rw-r-- 1 root root 16532 Aug 31 01:46 showlog.c
-rwxr-xr-x 1 root root 741252 Oct 3 10:45 showlog.cgi
-rw-r--r-- 1 root root 26384 Oct 3 10:45 skiplist.o
-rw-rw-r-- 1 root root 208817 Aug 31 01:46 status.c
-rwxr-xr-x 1 root root 881432 Oct 3 10:45 status.cgi
-rw-r--r-- 1 root root 24800 Oct 3 10:45 statusdata-cgi.o
-rw-rw-r-- 1 root root 93416 Aug 31 01:46 statusmap.c
-rw-rw-r-- 1 root root 50120 Aug 31 01:46 statuswml.c
-rwxr-xr-x 1 root root 774506 Oct 3 10:45 statuswml.cgi
-rw-rw-r-- 1 root root 36568 Aug 31 01:46 statuswrl.c
-rwxr-xr-x 1 root root 757614 Oct 3 10:45 statuswrl.cgi
-rw-rw-r-- 1 root root 93250 Aug 31 01:46 summary.c
-rwxr-xr-x 1 root root 807951 Oct 3 10:45 summary.cgi
-rw-rw-r-- 1 root root 59389 Aug 31 01:46 tac.c
-rwxr-xr-x 1 root root 773443 Oct 3 10:45 tac.cgi
-rw-rw-r-- 1 root root 98060 Aug 31 01:46 trends.c
-rw-r--r-- 1 root root 530920 Oct 3 10:45 xobjects-cgi.o
-rw-r--r-- 1 root root 101368 Oct 3 10:45 xstatusdata-cgi.o
Attachments
install.log
(71.56 KiB) Downloaded 272 times
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: cgi error

Post by abrist »

All the required packages installed successfully. Do you have a log from the configure and make?
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.
veenm
Posts: 148
Joined: Tue Jun 18, 2013 5:58 am

Re: cgi error

Post by veenm »

Even though package installed successfully , i cannot see the statusmap.cgi file in "/nagios/cgi/" path. I dont have the log file .
Locked