[collectd] [5.1] Multiple mysql instances?

Jacek Osiecki vjosh at silvercube.pl
Tue Mar 19 20:19:57 CET 2013


Wiadomość napisana przez Sebastian Harl w dniu 18 mar 2013, o godz. 21:29:

> Hi,
> 
> On Mon, Mar 18, 2013 at 11:12:24AM +0100, Fabien Wernli wrote:
>> On Mon, Mar 18, 2013 at 09:37:22AM +0100, Jacek Osiecki wrote:
>>> LoadPlugin mysql
>>> <Plugin mysql>
>>> 	<Database "sqlone">
>>> 		User "backup"
>>> 		Password "xxxx"
>>> 		Host "192.168.0.21"
>>> 		Database "mysql"
>>> 		#Socket "/var/lib/mysql/sc-sqlcrit/mysql.sock"
>>> 	</Database>
>> I think the 'Database' directive *in* the block overrides the name in the 'Database'
>> *definition*. This means that in your example, `sqlone` and `sqltwo` are
>> both being overridden by `mysql`, thus yielding the error message. I
>> remember banging my head on a hard surface too when trying to achieve the
>> same goal.
> 
> This issue should have been fixed in 5.1.1. The name of the <Database>
> definition is now used when registering the callback. The above
> configuration is perfectly fine in that case.

Does that mean, that I need to upgrade to 5.1.1 in order to have multiple mysql instances handled (now I have 5.1.0)?

I'm really confused...

Greetings,
-- 
Jacek


More information about the collectd mailing list