OK.

I posted a while back that I'd like to have a native ganlia Java implementation. Your message before says that this is in XDR spec but I can't find a decent implementation for Java. That and I'm not looking forward to reading it ;). I had some time today to hack around with gmetric to see what I could get working.

I started ethereal with the filter "port 8649" and then ran:

gmetric --name=foo --value=100 --type=uint32

Which produces a packet with the following data:

00000000  00 00 00 00 00 00 00 07  75 69 6e 74 33 32 00 00  |........uint32..|

00000010  00 00 00 04 66 6f 6f 00  00 00 00 04 31 30 30 00  |....foo.....100.|

00000020  00 00 00 01 00 00 00 00  00 00 00 03 00 00 00 3c  |...............<|

00000030  00 00 00 00                                       |....|

00000034

If I replay this packet and change the uint32, foo, and 100 values to custom but use the rest of the data as a template will I be ok? Seems straight forward enough but I don't want to get bitten by any fun ganglia bugs in my cluster ;)

I was thinking of providing a higher level API do this data and you'd just give it a port and IP to broadcast on and then the name, value, and type of your gmetric and you'd be good to go...

This way they're would be a java implementation.

Kevin

--

Use Rojo (RSS/Atom aggregator). Visit http://rojo.com. Ask me for an invite! Also see irc.freenode.net #rojo if you want to chat.

Rojo is Hiring! - http://www.rojonetworks.com/JobsAtRojo.html

If you're interested in RSS, Weblogs, Social Networking, etc... then you should work for Rojo! If you recommend someone and we hire them you'll get a free iPod! Kevin A. Burton, Location - San Francisco, CA
      AIM/YIM - sfburtonator,  Web - http://peerfear.org/
GPG fingerprint: 5FB2 F3E2 760E 70A8 6174 D393 E84D 8D04 99F1 4412


Reply via email to