I just did a test, if I make the data from the MXBean just be a single instance of the class then it works, but it does not work if it is an array...
Any help on that ? Thanks. Joe > -----Original Message----- > From: [email protected] [mailto:collectd- > [email protected]] On Behalf Of Joe Armstrong > Sent: Thursday, October 14, 2010 9:52 AM > To: 'matthew sporleder' > Cc: [email protected] > Subject: Re: [collectd] Using GenericJMX to consume array's of objects > ? > > > > > -----Original Message----- > > From: matthew sporleder [mailto:[email protected]] > > Sent: Thursday, October 14, 2010 4:19 AM > > To: Joe Armstrong > > Cc: [email protected] > > Subject: Re: [collectd] Using GenericJMX to consume array's of > objects > > ? > > > > On Wed, Oct 13, 2010 at 5:17 PM, Joe Armstrong > > <[email protected]> wrote: > > > Hi Guys, > > > > > > > > > > > > I have a webservice that is instrumented with JMX (MXBean) that > > produces an > > > array of objects, I can't seem to figure out what the collectd.conf > > should > > > look like to consume this information. > > > > > > > [deleted the detailed stuff] > > > > > > Jconsole can view the data with no problems. > > > > > > > > > > > > The error I get from collectd depends on what collectd.conf > contains > > - I > > > have tried a lot of different versions so I won't waste your time > by > > giving > > > you all of the versions that don't work. But basically the error > > always > > > complains that the <Value> Attribute member can't be queried (ex. > > Querying > > > attribute bytesSent failed). > > > > > > > collectd will do a recursive loop through an MBean with multiple > > attributes, but I think they need to be a special type like > > javax.management.openmbean.CompositeData. > > The MBean server does transform my user-defined type (ConnectData) to > an array of CompositeData (I can verify this using jconsole). > > Joe > > _______________________________________________ > collectd mailing list > [email protected] > http://mailman.verplant.org/listinfo/collectd _______________________________________________ collectd mailing list [email protected] http://mailman.verplant.org/listinfo/collectd
