Connecting to Mysql database from plugins
Andreas Ericsson
ae at op5.se
Wed Jan 5 17:00:50 CET 2005
Lawrence, Lynne wrote:
> Jaya,
>
> - Did you install MySQL-devel-4.1.7-0.i386.rpm?
> - On my system, mysql.h is installed in /usr/include/mysql - check that your
> file is there, if not, query the rpm and find out where it put it.
Good advice.
> - Make sure that the directory containing mysql.h is listed in
> /etc/ld.so.conf.
>
Bad advice. /etc/ld.so.conf controls the dynamic link loader, so adding
the directory in which mysql.h resides won't help a single bit. Adding
the directory where libmysqlclient.so.* resides would, however.
More advice to the original poster in the original message.
> Hope this helps,
>
> Lynne Lawrenc
> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net
> [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of
> Jlnarayanan00 at aol.com
> Sent: Wednesday, January 05, 2005 6:06 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Connecting to Mysql database from plugins
>
>
> Hi ,
> Our application is such that our plugin needs to connect to Mysql
> database to get the data.In the root directory of the linux server on which
> nagios is being installed we have the following files,
> MySQL-client-4.1.7-0.i386.rpm
> MySQL-devel-4.1.7-0.i386.rpm
> MySQL-server-4.1.7-0.i386.rpm
> MySQL-shared-compat-4.1.7-0.i386.rpm
> In the new plugin we tried, we have given the statement #include "mysql.h"
> (header file that contains the prototypes and variables required for MySQL).
>
> But while giving the "make all" command for the plugins we are getting an
> error as
> "mysql.h: No such file or directory".
>
> what are the steps we need to do to overcome this. Can any body help us in
> this issue.
>
> Regards,
>
> Jaya
>
>
>
>
> -------------------------------------------------------
> The SF.Net email is sponsored by: Beat the post-holiday blues
> Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
> It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
> _______________________________________________
> 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
>
--
Andreas Ericsson andreas.ericsson at op5.se
OP5 AB www.op5.se
Lead Developer
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
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