[Nagiosplug-help] Plugins from CVS help

Tong Young Tong at keen.com
Fri Jan 31 11:41:06 CET 2003


How do I recompile the new plugins from the cvs?  Maybe I'm doing it
wrong.

So I copied the text from the check_http.c from the CVS and put it in a
file of the same name in the plugins directory. This is the untarred
nagios plugin directory.

I then ran ./configure, then make.  But I get an error on the make.

Here is my error:

gcc  -g -O2 -L. -L/usr/lib -o check_dummy  check_dummy.o utils.o -lutil 
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. -I/usr/include
-g -O2 -c check_http.c
check_http.c: In function `process_arguments':
check_http.c:338: `PROGNAME' undeclared (first use in this function)
check_http.c:338: (Each undeclared identifier is reported only once
check_http.c:338: for each function it appears in.)
check_http.c:345: warning: passing arg 1 of `print_revision' discards
qualifiers from pointer target type
check_http.c:477: parse error before `else'
check_http.c: In function `print_help':
check_http.c:1085: warning: passing arg 1 of `print_revision' discards
qualifiers from pointer target type
make[1]: *** [check_http.o] Error 1
make[1]: Leaving directory `/tmp/nagios-plugins-1.3.0-beta2/plugins'
make: *** [all-recursive] Error 1




More information about the Help mailing list