Page 1 of 1

Ndoutils mysql socket issue

Posted: Fri May 06, 2011 9:59 am
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

Re: Ndoutils mysql socket issue

Posted: Fri May 06, 2011 11:30 am
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