Page 3 of 5
Re: cgi error
Posted: Mon Sep 30, 2013 9:29 am
by abrist
Are you sure you finished compiling? Not all cgis were built. Do you have the nagios core install.log?
Re: cgi error
Posted: Mon Sep 30, 2013 10:42 am
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.
Re: cgi error
Posted: Mon Sep 30, 2013 10:45 am
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.
Re: cgi error
Posted: Mon Sep 30, 2013 11:02 pm
by veenm
Your observation is rite. i have attached the /var/log/messgae file.
Re: cgi error
Posted: Wed Oct 02, 2013 8:20 am
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
Re: cgi error
Posted: Wed Oct 02, 2013 9:05 am
by veenm
SELINUX is already disabled , I have already recompiled , but did not see the cgi file, any specific command to compile .c file.
Re: cgi error
Posted: Wed Oct 02, 2013 9:38 am
by abrist
How are you installing core? (repos, source, etc)
Could you post the install.log from the compile?
Re: cgi error
Posted: Wed Oct 02, 2013 10:06 pm
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
Re: cgi error
Posted: Thu Oct 03, 2013 10:54 am
by abrist
All the required packages installed successfully. Do you have a log from the configure and make?
Re: cgi error
Posted: Sun Oct 06, 2013 9:26 pm
by veenm
Even though package installed successfully , i cannot see the statusmap.cgi file in "/nagios/cgi/" path. I dont have the log file .