Adding a cgi file to nagios
Posted: Fri Mar 08, 2013 6:50 am
Hello,
I want to add a cgi file to Nagios. I wrote a C program referring the other programs I found inside /cgi folder and kept it in the same location. I modified Makefile.in (added lines for my cgi file) and then configured and compiled using make all (according to nagios installation guides). But I am getting the following error.
(jobs.c is my file)
[root@localhost nagios-3.2.3]# make all
cd ./base && make
make[1]: Entering directory `/root/downloads/nagios-3.2.3/base'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/downloads/nagios-3.2.3/base'
cd ./cgi && make
make[1]: Entering directory `/root/downloads/nagios-3.2.3/cgi'
make[1]: *** No rule to make target `gcc', needed by `jobs.cgi'. Stop.
make[1]: Leaving directory `/root/downloads/nagios-3.2.3/cgi'
make: *** [all] Error 2
Do I need to make changes elsewhere? Please help.
I want to add a cgi file to Nagios. I wrote a C program referring the other programs I found inside /cgi folder and kept it in the same location. I modified Makefile.in (added lines for my cgi file) and then configured and compiled using make all (according to nagios installation guides). But I am getting the following error.
(jobs.c is my file)
[root@localhost nagios-3.2.3]# make all
cd ./base && make
make[1]: Entering directory `/root/downloads/nagios-3.2.3/base'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/downloads/nagios-3.2.3/base'
cd ./cgi && make
make[1]: Entering directory `/root/downloads/nagios-3.2.3/cgi'
make[1]: *** No rule to make target `gcc', needed by `jobs.cgi'. Stop.
make[1]: Leaving directory `/root/downloads/nagios-3.2.3/cgi'
make: *** [all] Error 2
Do I need to make changes elsewhere? Please help.