[Nagiosplug-help] Install Nagios Plugins 1.4.5
Eelco Driel
ed at databasement.eu
Fri Dec 8 15:18:40 CET 2006
Dear Sir, Madam,
I’m trying to install Nagios Plugins version 1.4.5 on version 2.6 of Nagios. However, I’m constantly are getting a few errors:
First I trying to configure it with the following line (as described in your README): ./configure --prefix=/usr/local/nagios --with-nagios-user=nagios --with-nagios-group=nagios --with-cgiurl=/nagios/cgi-bin. This gives the following error: configure: error: --with-nagios-user is a deprecated option. This is also with the --with-nagios-group. Without these 2 options it configured right.
Howver, when I do make, I’m getting the error:
check_mysql.c:51:19: error: mysql.h: No such file or directory
check_mysql.c:52:20: error: 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: expected ‘;’ 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: expected ‘;’ 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 argument 1 of ‘strlen’ makes pointer from integer without a cast
check_mysql.c:112: warning: passing argument 2 of ‘__builtin___memcpy_chk’ makes pointer from integer without a cast
check_mysql.c:112: warning: passing argument 2 of ‘__memcpy_ichk’ makes pointer from integer without a cast
check_mysql.c:112: warning: passing argument 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 argument 1 of ‘strlen’ makes pointer from integer without a cast
check_mysql.c:127: warning: passing argument 2 of ‘__builtin___memcpy_chk’ makes pointer from integer without a cast
check_mysql.c:127: warning: passing argument 2 of ‘__memcpy_ichk’ makes pointer from integer without a cast
check_mysql.c:127: warning: passing argument 1 of ‘__strdup’ makes pointer from integer without a cast
check_mysql.c:134: warning: passing argument 1 of ‘strlen’ makes pointer from integer without a cast
check_mysql.c:134: warning: passing argument 2 of ‘__builtin___memcpy_chk’ makes pointer from integer without a cast
check_mysql.c:134: warning: passing argument 2 of ‘__memcpy_ichk’ makes pointer from integer without a cast
check_mysql.c:134: warning: passing argument 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 argument 1 of ‘strlen’ makes pointer from integer without a cast
check_mysql.c:147: warning: passing argument 2 of ‘__builtin___memcpy_chk’ makes pointer from integer without a cast
check_mysql.c:147: warning: passing argument 2 of ‘__memcpy_ichk’ makes pointer from integer without a cast
check_mysql.c:147: warning: passing argument 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)
make[2]: *** [check_mysql-check_mysql.o] Error 1
make[2]: Leaving directory `/install/nagios-plugins-1.4.5/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/install/nagios-plugins-1.4.5'
make: *** [all] Error 2
Could you help me with this?
Regards,
Eelco Driel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20061208/e0e03456/attachment.html>
More information about the Help
mailing list