check_snmp
Melanie Pfefer
melanie_pfefer at yahoo.co.uk
Fri Aug 17 18:55:04 CEST 2007
Hi,
indeed that solved the configuration step. But the
make step ends with the below errors and I appreciate
if you can help.
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: `MYSQL_PORT' undeclared here (not in
a function)
check_mysql.c: In function `main':
check_mysql.c:73: `MYSQL' undeclared (first use in
this function)
check_mysql.c:73: (Each undeclared identifier is
reported only once
check_mysql.c:73: for each function it appears in.)
check_mysql.c:73: syntax error before "mysql"
check_mysql.c:74: `MYSQL_RES' undeclared (first use in
this function)
check_mysql.c:74: `res' undeclared (first use in this
function)
check_mysql.c:75: `MYSQL_ROW' undeclared (first use in
this function)
check_mysql.c:75: syntax error before "row"
check_mysql.c:91: `mysql' undeclared (first use in
this function)
check_mysql.c:93: `MYSQL_READ_DEFAULT_GROUP'
undeclared (first use in this function)
check_mysql.c:97: `CR_UNKNOWN_HOST' undeclared (first
use in this function)
check_mysql.c:99: `CR_VERSION_ERROR' undeclared (first
use in this function)
check_mysql.c:101: `CR_OUT_OF_MEMORY' undeclared
(first use in this function)
check_mysql.c:103: `CR_IPSOCK_ERROR' undeclared (first
use in this function)
check_mysql.c:105: `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: `CR_SERVER_GONE_ERROR' undeclared
(first use in this function)
check_mysql.c:118: `CR_SERVER_LOST' undeclared (first
use in this function)
check_mysql.c:120: `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: `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: `MYSQL_FIELD' undeclared (first use
in this function)
check_mysql.c:165: `fields' undeclared (first use in
this function)
check_mysql.c: In function `print_help':
check_mysql.c:367: `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.5/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/root/nagios-plugins-1.4.5'
make: *** [all] Error 2
--- Marc Powell <marc at ena.com> wrote:
>
>
> > -----Original Message-----
> > From: Melanie Pfefer
> [mailto:melanie_pfefer at yahoo.co.uk]
> > Sent: Friday, August 10, 2007 10:38 AM
> > To: Marc Powell;
> nagios-users at lists.sourceforge.net
> > Subject: Re: [Nagios-users] check_snmp
> >
> > Thanks. that worked fine.
> > I also saw this in the ./configure output:
> >
> > checking for mysql_config... no
> > configure: WARNING: Skipping mysql plugin
> > configure: WARNING: install mysql client libs to
> > compile this plugin (see REQUIREMENTS).
> >
> > I am using LAMPP (integrated apache/mysql/php) and
> > used --with-mysql in ./configure:
> >
> > ./configure --with-mysql=/opt/lampp/lib/mysql/
> >
> > Could you please advise?
>
> Try with --with-mysql=/opt/lampp. You might need to
> install the
> mysql-dev(el) rpms but I'm not familiar with lampp.
>
> --
> marc
>
>
-------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?
> Stop.
> Now Search log events and configuration files using
> AJAX and a browser.
> Download your FREE copy of Splunk now >>
> http://get.splunk.com/
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
>
https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version
> (-v) and OS when reporting any issue.
> ::: Messages without supporting info will risk being
> sent to /dev/null
>
___________________________________________________________
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list