Connecting to Mysql database from plugins

Lawrence, Lynne LLawrence at osc.uscg.mil
Wed Jan 5 14:24:04 CET 2005


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.
- Make sure that the directory containing mysql.h is listed in
/etc/ld.so.conf.

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





More information about the Users mailing list