[Nagiosplug-help] plugin problem
RaghuRajReddy B
raghurajreddy.buchannagari at navayuga.co.in
Tue Oct 24 11:20:16 CEST 2006
hi
i have some problem in installing plugin in linux
i did following procedure .i followed reademe txt file in source directory of plugin
cd to /root/plugi-1.4.4
./configure --prefix=/usr/local/nagios
after executing above command i executed make and make install command it is giving some mysql errors.in my system already mysql is been installed
check_mysql.c:97: error: `CR_UNKNOWN_HOST' undeclared (first use in this function)
check_mysql.c:99: error: `CR_VERSION_ERROR' undeclared (first use in this function)
check_mysql.c:101: error: `CR_OUT_OF_MEMORY' undeclared (first use in this function)
check_mysql.c:103: error: `CR_IPSOCK_ERROR' undeclared (first use in this function)
check_mysql.c:105: error: `CR_SOCKET_CREATE_ERROR' undeclared (first use in this function)
check_mysql.c:112: warning: passing arg 1 of `strlen' makes pointer from integer without a cast
check_mysql.c:112: warning: passing arg 2 of `memcpy' makes pointer from integer without a cast
check_mysql.c:112: warning: passing arg 1 of `__strdup' makes pointer from integer without a cast
check_mysql.c:116: error: `CR_SERVER_GONE_ERROR' undeclared (first use in this function)
check_mysql.c:118: error: `CR_SERVER_LOST' undeclared (first use in this function)
check_mysql.c:120: error: `CR_UNKNOWN_ERROR' undeclared (first use in this function)
check_mysql.c:127: warning: passing arg 1 of `strlen' makes pointer from integer without a cast
check_mysql.c:127: warning: passing arg 2 of `memcpy' makes pointer from integer without a cast
check_mysql.c:127: warning: passing arg 1 of `__strdup' makes pointer from integer without a cast
check_mysql.c:134: warning: passing arg 1 of `strlen' makes pointer from integer without a cast
check_mysql.c:134: warning: passing arg 2 of `memcpy' makes pointer from integer without a cast
check_mysql.c:134: warning: passing arg 1 of `__strdup' makes pointer from integer without a cast
check_mysql.c:146: error: `row' undeclared (first use in this function)
check_mysql.c:147: warning: passing arg 1 of `strlen' makes pointer from integer without a cast
check_mysql.c:147: warning: passing arg 2 of `memcpy' makes pointer from integer without a cast
check_mysql.c:147: warning: passing arg 1 of `__strdup' makes pointer from integer without a cast
check_mysql.c:165: error: `MYSQL_FIELD' undeclared (first use in this function)
check_mysql.c:165: error: `fields' undeclared (first use in this function)
check_mysql.c: In function `print_help':
check_mysql.c:367: error: `MYSQL_PORT' undeclared (first use in this function)
make[2]: *** [check_mysql-check_mysql.o] Error 1
make[2]: Leaving directory `/root/nagios-plugins-1.4.4/plugins'
make[1]: *** [all-recursive] Error 1
then mv -f ".deps/check_mysql-check_mysql.Tpo" ".deps/check_mysql-check_mysql.Po"; else rm -f ".deps/check_mysql-check_mysql.Tpo"; exit 1; fi
check_mysql.c:51:19: mysql.h: No such file or directory
check_mysql.c:52:20: errmsg.h: No such file or directory
check_mysql.c:58: error: `MYSQL_PORT' undeclared here (not in a function)
check_mysql.c: In function `main':
check_mysql.c:73: error: `MYSQL' undeclared (first use in this function)
check_mysql.c:73: error: (Each undeclared identifier is reported only once
check_mysql.c:73: error: for each function it appears in.)
check_mysql.c:73: error: syntax error before "mysql"
check_mysql.c:74: error: `MYSQL_RES' undeclared (first use in this function)
check_mysql.c:74: error: `res' undeclared (first use in this function)
check_mysql.c:75: error: `MYSQL_ROW' undeclared (first use in this function)
check_mysql.c:75: error: syntax error before "row"
check_mysql.c:91: error: `mysql' undeclared (first use in this function)
check_mysql.c:93: error: `MYSQL_READ_DEFAULT_GROUP' undeclared (first use in this function)
check_mysql.c:97: error: `CR_UNKNOWN_HOST' undeclared (first use in this function)
check_mysql.c:99: error: `CR_VERSION_ERROR' undeclared (first use in this function)
check_mysql.c:101: error: `CR_OUT_OF_MEMORY' undeclared (first use in this function)
check_mysql.c:103: error: `CR_IPSOCK_ERROR' undeclared (first use in this function)
check_mysql.c:105: error: `CR_SOCKET_CREATE_ERROR' undeclared (first use in this function)
check_mysql.c:112: warning: passing arg 1 of `strlen' makes pointer from integer without a cast
check_mysql.c:112: warning: passing arg 2 of `memcpy' makes pointer from integer without a cast
check_mysql.c:112: warning: passing arg 1 of `__strdup' makes pointer from integer without a cast
check_mysql.c:116: error: `CR_SERVER_GONE_ERROR' undeclared (first use in this function)
check_mysql.c:118: error: `CR_SERVER_LOST' undeclared (first use in this function)
check_mysql.c:120: error: `CR_UNKNOWN_ERROR' undeclared (first use in this function)
check_mysql.c:127: warning: passing arg 1 of `strlen' makes pointer from integer without a cast
check_mysql.c:127: warning: passing arg 2 of `memcpy' makes pointer from integer without a cast
check_mysql.c:127: warning: passing arg 1 of `__strdup' makes pointer from integer without a cast
check_mysql.c:134: warning: passing arg 1 of `strlen' makes pointer from integer without a cast
check_mysql.c:134: warning: passing arg 2 of `memcpy' makes pointer from integer without a cast
check_mysql.c:134: warning: passing arg 1 of `__strdup' makes pointer from integer without a cast
check_mysql.c:146: error: `row' undeclared (first use in this function)
check_mysql.c:147: warning: passing arg 1 of `strlen' makes pointer from integer without a cast
check_mysql.c:147: warning: passing arg 2 of `memcpy' makes pointer from integer without a cast
check_mysql.c:147: warning: passing arg 1 of `__strdup' makes pointer from integer without a cast
check_mysql.c:165: error: `MYSQL_FIELD' undeclared (first use in this function)
check_mysql.c:165: error: `fields' undeclared (first use in this function)
check_mysql.c: In function `print_help':
check_mysql.c:367: error: `MYSQL_PORT' undeclared (first use in this function)
make[2]: *** [check_mysql-check_mysql.o] Error 1
make[2]: Leaving directory `/root/nagios-plugins-1.4.4/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/nagios-plugins-1.4.4'
make: *** [all] Error 2
[root at nit36 nagios-plugins-1.4.4]# make install
Making install in lib
make[1]: Entering directory `/root/nagios-plugins-1.4.4/lib'
make install-recursive
make[2]: Entering directory `/root/nagios-plugins-1.4.4/lib'
Making install in tests
make[3]: Entering directory `/root/nagios-plugins-1.4.4/lib/tests'
make[4]: Entering directory `/root/nagios-plugins-1.4.4/lib/tests'
make[4]: Nothing to be done for `install-exec-am'.
make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory `/root/nagios-plugins-1.4.4/lib/tests'
make[3]: Leaving directory `/root/nagios-plugins-1.4.4/lib/tests'
make[3]: Entering directory `/root/nagios-plugins-1.4.4/lib'
make[4]: Entering directory `/root/nagios-plugins-1.4.4/lib'
make[4]: Nothing to be done for `install-exec-am'.
make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory `/root/nagios-plugins-1.4.4/lib'
make[3]: Leaving directory `/root/nagios-plugins-1.4.4/lib'
make[2]: Leaving directory `/root/nagios-plugins-1.4.4/lib'
make[1]: Leaving directory `/root/nagios-plugins-1.4.4/lib'
Making install in plugins
make[1]: Entering directory `/root/nagios-plugins-1.4.4/plugins'
if gcc -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../intl -I/usr/include/ldap -I/usr/include -I/usr/local/mysql/include/mysql -I/usr/local/mysql/include/mysql -g -O2 -MT check_mysql-check_mysql.o -MD -MP -MF ".deps/check_mysql-check_mysql.Tpo" -c -o check_mysql-check_mysql.o `test -f 'check_mysql.c' || echo './'`check_mysql.c; \
then mv -f ".deps/check_mysql-check_mysql.Tpo" ".deps/check_mysql-check_mysql.Po"; else rm -f ".deps/check_mysql-check_mysql.Tpo"; exit 1; fi
check_mysql.c:51:19: mysql.h: No such file or directory
check_mysql.c:52:20: errmsg.h: No such file or directory
check_mysql.c:58: error: `MYSQL_PORT' undeclared here (not in a function)
check_mysql.c: In function `main':
check_mysql.c:73: error: `MYSQL' undeclared (first use in this function)
check_mysql.c:73: error: (Each undeclared identifier is reported only once
check_mysql.c:73: error: for each function it appears in.)
check_mysql.c:73: error: syntax error before "mysql"
check_mysql.c:74: error: `MYSQL_RES' undeclared (first use in this function)
check_mysql.c:74: error: `res' undeclared (first use in this function)
check_mysql.c:75: error: `MYSQL_ROW' undeclared (first use in this function)
check_mysql.c:75: error: syntax error before "row"
check_mysql.c:91: error: `mysql' undeclared (first use in this function)
check_mysql.c:93: error: `MYSQL_READ_DEFAULT_GROUP' undeclared (first use in this function)
check_mysql.c:97: error: `CR_UNKNOWN_HOST' undeclared (first use in this function)
check_mysql.c:99: error: `CR_VERSION_ERROR' undeclared (first use in this function)
check_mysql.c:101: error: `CR_OUT_OF_MEMORY' undeclared (first use in this function)
check_mysql.c:103: error: `CR_IPSOCK_ERROR' undeclared (first use in this function)
check_mysql.c:105: error: `CR_SOCKET_CREATE_ERROR' undeclared (first use in this function)
check_mysql.c:112: warning: passing arg 1 of `strlen' makes pointer from integer without a cast
check_mysql.c:112: warning: passing arg 2 of `memcpy' makes pointer from integer without a cast
check_mysql.c:112: warning: passing arg 1 of `__strdup' makes pointer from integer without a cast
check_mysql.c:116: error: `CR_SERVER_GONE_ERROR' undeclared (first use in this function)
check_mysql.c:118: error: `CR_SERVER_LOST' undeclared (first use in this function)
check_mysql.c:120: error: `CR_UNKNOWN_ERROR' undeclared (first use in this function)
check_mysql.c:127: warning: passing arg 1 of `strlen' makes pointer from integer without a cast
check_mysql.c:127: warning: passing arg 2 of `memcpy' makes pointer from integer without a cast
check_mysql.c:127: warning: passing arg 1 of `__strdup' makes pointer from integer without a cast
check_mysql.c:134: warning: passing arg 1 of `strlen' makes pointer from integer without a cast
check_mysql.c:134: warning: passing arg 2 of `memcpy' makes pointer from integer without a cast
check_mysql.c:134: warning: passing arg 1 of `__strdup' makes pointer from integer without a cast
check_mysql.c:146: error: `row' undeclared (first use in this function)
check_mysql.c:147: warning: passing arg 1 of `strlen' makes pointer from integer without a cast
check_mysql.c:147: warning: passing arg 2 of `memcpy' makes pointer from integer without a cast
check_mysql.c:147: warning: passing arg 1 of `__strdup' makes pointer from integer without a cast
check_mysql.c:165: error: `MYSQL_FIELD' undeclared (first use in this function)
check_mysql.c:165: error: `fields' undeclared (first use in this function)
check_mysql.c: In function `print_help':
check_mysql.c:367: error: `MYSQL_PORT' undeclared (first use in this function)
make[1]: *** [check_mysql-check_mysql.o] Error 1
make[1]: Leaving directory `/root/nagios-plugins-1.4.4/plugins'
make: *** [install-recursive] Error 1
[root at nit36 nagios-plugins-1.4.4]#
then it is not creating libexec directory or it is not installing any files into /usr/local/nagios it just creating some files into /root/nagios-plugin-1.4.4
please advice me .
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20061024/e4d8cb58/attachment.html>
More information about the Help
mailing list