Ndoutils mysql socket issue

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
mazzystr
Posts: 2
Joined: Fri May 06, 2011 9:48 am

Ndoutils mysql socket issue

Post by mazzystr »

I am using OMD 0.46 and Nagios 3.2.3 along with Ndoutils 1.4b9. Things are sucessfully working with this setup however there is some strangeness that I'm not happy with.

Ndoutils seem to be hard linked to the hosts mysql /var/lib/mysql/mysql.sock socket. Is there any way to change that?

I have three Nagios instances running on one system - Prod, Test, QA.

Thanks,
/Chris C
mazzystr
Posts: 2
Joined: Fri May 06, 2011 9:48 am

Re: Ndoutils mysql socket issue

Post by mazzystr »

The plot thickens. The problem seems to come directly from the mysql_version.h header. I compiled ndoutils against /usr/lib64/mysq. Those libraries are using the headers in /usr/include/mysql. Mysql_version.h contains this variable...
#define MYSQL_UNIX_ADDR "/var/lib/mysql/mysql.sock"

Ug. It's going to be tough to get ndoutils to compile to use /omd/sites/$site/tmp/run/mysqld/mysqld.sock

Any suggestions?

Thanks,
/Chris C
Locked