I've been having much success using SIGAR for performance monitoring. Great Job!
I started to dig into the metrics available for network interfaces so I can calculate network interface utilization.
I've been testing on Linux x86 and amd64 platforms. When i use the class NetInterfaceStat and the getSpeed() method I get a return value of -1 from this snippet of code:
NetInterfaceStat netStat = session.getNetInterfaceStat("eth0");
System.err.println("speed = " + netStat.getSpeed());
On an HP-UX platform I get 100 000 000 (100 Mbits). I would like to know how SIGAR gets this attribute from the underlying platform from GNU/Linux kernels 2.6.*. I suspect I must not have something configured correctly.