From: JeanDagenais2 <sig...@hy...> - 2010-05-13 22:52:02
|
Hello, We have deployed a new agent on Solaris 9, and I am seeing an exception with the ifconfig command of sigar. The problem happen with this method invocation: /** Extract metrics from sigar interface */ String[] ifNames= sigar.getNetInterfaceList(); which cause this exception: org.hyperic.sigar.SigarFileNotFoundException: No such file or directory at org.hyperic.sigar.Sigar.getNetInterfaceList(Native Method) at com.performance.agent.AppEnvironmentMonitor.sampleNetwork(AppEnvironmentMonitor.java:1454) at com.performance.agent.AppEnvironmentMonitor.start(AppEnvironmentMonitor.java:349) at com.performance.agent.AppEnvironmentMonitor.main(AppEnvironmentMonitor.java:142) 5/10/10 06:27:52 PM PDT [ERROR] [com.performance.agent.AppEnvironmentMonitor] Exception when getting metrics from SIGAR When I run the SIGAR program, this is what I get: ******** WORK OK with 32 bit JVM bash-2.03$ /apps/qosmon/qosmon/jre/jre1.6.0_20_solaris_sparc_64/bin/java -jar sigar.jar sigar> ifconfig lo0 Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MULTICAST MTU:8232 Metric:1 RX packets:5830 errors:-1 dropped:-1 overruns:-1 frame:-1 TX packets:5830 errors:-1 dropped:-1 overruns:-1 carrier:-1 collisions:-1 RX bytes:-1 (-) TX bytes:-1 (-) ce0 Link encap:Ethernet HWaddr 00:03:BA:56:DC:C5 inet addr:10.45.18.3 Bcast:10.45.18.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1033913 errors:0 dropped:0 overruns:0 frame:0 TX packets:164514 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 RX bytes:233953280 (223M) TX bytes:32044637 ( 31M) sigar> version Sigar version.......java=1.6.3.82, native=1.6.4.114 Build date..........java=07/09/2009 04:06 AM, native=04/28/2010 04:20 AM SCM rev.............java=80016c6, native=b40013d Archlib.............libsigar-sparc-solaris.so Current fqdn........mogera1.wellsfargo.com Current user........dagenaij OS description......Solaris 9 OS name.............Solaris OS arch.............sparc OS machine..........sun4u OS version..........5.9 OS patch level......unknown OS vendor...........Sun Microsystems OS vendor version...9 OS code name........ OS data model.......32 OS cpu endian.......big Java vm version.....16.3-b01 Java vm vendor......Sun Microsystems Inc. Java home.........../apps/qosmon/qosmon/jre/jre1.6.0_20_solaris_sparc_64 sigar> exit Goodbye. ******** PROBLEM with 64bit JVM, enabled with the -d64 flag bash-2.03$ /apps/qosmon/qosmon/jre/jre1.6.0_20_solaris_sparc_64/bin/java -d64 -jar sigar.jar sigar> ifconfig No such file or directory sigar> version Sigar version.......java=1.6.3.82, native=1.6.4.124 Build date..........java=07/09/2009 04:06 AM, native=04/28/2010 04:12 AM SCM rev.............java=80016c6, native=b40013d Archlib.............libsigar-sparc64-solaris.so Current fqdn........mogera1.wellsfargo.com Current user........dagenaij OS description......Solaris 9 OS name.............Solaris OS arch.............sparc OS machine..........sun4u OS version..........5.9 OS patch level......unknown OS vendor...........Sun Microsystems OS vendor version...9 OS code name........ OS data model.......64 OS cpu endian.......big Java vm version.....16.3-b01 Java vm vendor......Sun Microsystems Inc. Java home.........../apps/qosmon/qosmon/jre/jre1.6.0_20_solaris_sparc_64 These are the information on the servers: bash-2.03$ uname -a SunOS mogera1 5.9 Generic_122300-02 sun4u sparc SUNW,Sun-Fire-V440 MACHTYPE=sparc-sun-solaris Thank you very much for your help, Jean |