Quantcast
Channel: VMware Communities : Popular Discussions - Hyperic User Forums
Viewing all articles
Browse latest Browse all 52618

SIGAR not working: org.hyperic.sigar.test.TestPTQL............FAILED

$
0
0
Hi Everybody,

I've got an issue with the Agent.

After trying to add Bind, I got this Error:

Failed to invoke getProcCpu[State.Name.eq=named]: Query did not match any processes: State.Name.eq=named

After a few hours spent on narrowing down the issue, I got stuck at SIGAR.
The only non-standard in my enviroment is that the nodes run in Virtuozzo (Parallels).

Any help would be appreciated.

Error-message:

ns1.somedomain.com lib # pwd     
/opt/hyperic-hq-agent-3.2.2/pdk/lib
ns1.somedomain.com lib # ../../jre/bin/java -jar sigar.jar
sigar> test
Sigar version.......java=1.5.0.1, native=1.5.0.1
Build date..........java=01/31/2008 09:43 PM, native=01/31/2008 10:10 PM
Archlib.............libsigar-amd64-linux.so
Current fqdn........ns1.somedomain.com
Current user........root

OS description......CentOS 5
OS name.............Linux
OS arch.............x86_64
OS machine..........x86_64
OS version..........2.6.9-023stab046.2-smp
OS patch level......unknown
OS vendor...........CentOS
OS vendor version...5
OS code name........Final
OS data model.......64
OS cpu endian.......little
Java vm version.....1.5.0_12-b04
Java vm vendor......Sun Microsystems Inc.
Java home.........../opt/hyperic-hq-agent-3.2.2/jre

org.hyperic.sigar.test.TestLog.............ok
org.hyperic.sigar.test.TestInvoker.........ok
org.hyperic.sigar.test.TestPTQL............FAILED
org.hyperic.sigar.test.TestCpu.............ok
org.hyperic.sigar.test.TestCpuInfo.........ok
org.hyperic.sigar.test.TestFileInfo........ok
org.hyperic.sigar.test.TestFileSystem......ok
org.hyperic.sigar.test.TestFQDN............ok
org.hyperic.sigar.test.TestLoadAverage.....ok
org.hyperic.sigar.test.TestMem.............ok
org.hyperic.sigar.test.TestNetIf...........FAILED
org.hyperic.sigar.test.TestNetInfo.........ERROR
org.hyperic.sigar.test.TestNetRoute........ok
org.hyperic.sigar.test.TestNetStat.........ok
org.hyperic.sigar.test.TestNetStatPort.....ERROR
org.hyperic.sigar.test.TestTcpStat.........ok
org.hyperic.sigar.test.TestNfsClientV2.....ok
org.hyperic.sigar.test.TestNfsServerV2.....ok
org.hyperic.sigar.test.TestNfsClientV3.....ok
org.hyperic.sigar.test.TestNfsServerV3.....ok
org.hyperic.sigar.test.TestProcArgs........ok
org.hyperic.sigar.test.TestProcEnv.........ok
org.hyperic.sigar.test.TestProcExe.........ok
org.hyperic.sigar.test.TestProcModules.....ok
org.hyperic.sigar.test.TestProcFd..........ok
org.hyperic.sigar.test.TestProcList........FAILED
org.hyperic.sigar.test.TestProcMem.........ok
org.hyperic.sigar.test.TestProcState.......ok
org.hyperic.sigar.test.TestProcStat........ok
org.hyperic.sigar.test.TestProcTime........ok
org.hyperic.sigar.test.TestResourceLimit...ok
org.hyperic.sigar.test.TestSignal..........ok
org.hyperic.sigar.test.TestSwap............ok
org.hyperic.sigar.test.TestThreadCpu.......ok
org.hyperic.sigar.test.TestUptime..........ok
org.hyperic.sigar.test.TestVMware..........ok
org.hyperic.sigar.test.TestWho.............FAILED

Time: 2.346
There were 2 errors:
1) org.hyperic.sigar.test.TestNetInfo:
org.hyperic.sigar.SigarException: No such device or address
        at org.hyperic.sigar.NetInterfaceConfig.gather(Native Method)
        at org.hyperic.sigar.NetInterfaceConfig.fetch(NetInterfaceConfig.java:30)
        at org.hyperic.sigar.Sigar.getNetInterfaceConfig(Sigar.java:839)
        at org.hyperic.sigar.test.TestNetInfo.testNetInfo(TestNetInfo.java:35)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at org.hyperic.sigar.test.SigarTestPrinter.runTests(SigarTestPrinter.java:177)
        at org.hyperic.sigar.test.SigarTestRunner.output(SigarTestRunner.java:137)
        at org.hyperic.sigar.cmd.SigarCommandBase.processCommand(SigarCommandBase.java:188)
        at org.hyperic.sigar.shell.ShellBase.processCommand(ShellBase.java:397)
        at org.hyperic.sigar.cmd.Shell.processCommand(Shell.java:119)
        at org.hyperic.sigar.shell.ShellBase.handleCommand(ShellBase.java:364)
        at org.hyperic.sigar.shell.ShellBase.handleCommand(ShellBase.java:310)
        at org.hyperic.sigar.shell.ShellBase.run(ShellBase.java:289)
        at org.hyperic.sigar.cmd.Shell.main(Shell.java:212)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at org.hyperic.sigar.cmd.Runner.main(Runner.java:214)
2) org.hyperic.sigar.test.TestNetStatPort:
org.hyperic.sigar.SigarException: No such device or address
        at org.hyperic.sigar.NetInterfaceConfig.gather(Native Method)
        at org.hyperic.sigar.NetInterfaceConfig.fetch(NetInterfaceConfig.java:30)
        at org.hyperic.sigar.Sigar.getNetInterfaceConfig(Sigar.java:839)
        at org.hyperic.sigar.test.TestNetStatPort.testCreate(TestNetStatPort.java:63)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at org.hyperic.sigar.test.SigarTestPrinter.runTests(SigarTestPrinter.java:177)
        at org.hyperic.sigar.test.SigarTestRunner.output(SigarTestRunner.java:137)
        at org.hyperic.sigar.cmd.SigarCommandBase.processCommand(SigarCommandBase.java:188)
        at org.hyperic.sigar.shell.ShellBase.processCommand(ShellBase.java:397)
        at org.hyperic.sigar.cmd.Shell.processCommand(Shell.java:119)
        at org.hyperic.sigar.shell.ShellBase.handleCommand(ShellBase.java:364)
        at org.hyperic.sigar.shell.ShellBase.handleCommand(ShellBase.java:310)
        at org.hyperic.sigar.shell.ShellBase.run(ShellBase.java:289)
        at org.hyperic.sigar.cmd.Shell.main(Shell.java:212)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at org.hyperic.sigar.cmd.Runner.main(Runner.java:214)
There were 4 failures:
1) org.hyperic.sigar.test.TestPTQL:
junit.framework.AssertionFailedError: Pid.Pid.eq=$$
        at org.hyperic.sigar.test.TestPTQL.testOK(TestPTQL.java:153)
        at org.hyperic.sigar.test.TestPTQL.testCreate(TestPTQL.java:192)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at org.hyperic.sigar.test.SigarTestPrinter.runTests(SigarTestPrinter.java:177)
        at org.hyperic.sigar.test.SigarTestRunner.output(SigarTestRunner.java:137)
        at org.hyperic.sigar.cmd.SigarCommandBase.processCommand(SigarCommandBase.java:188)
        at org.hyperic.sigar.shell.ShellBase.processCommand(ShellBase.java:397)
        at org.hyperic.sigar.cmd.Shell.processCommand(Shell.java:119)
        at org.hyperic.sigar.shell.ShellBase.handleCommand(ShellBase.java:364)
        at org.hyperic.sigar.shell.ShellBase.handleCommand(ShellBase.java:310)
        at org.hyperic.sigar.shell.ShellBase.run(ShellBase.java:289)
        at org.hyperic.sigar.cmd.Shell.main(Shell.java:212)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at org.hyperic.sigar.cmd.Runner.main(Runner.java:214)
2) org.hyperic.sigar.test.TestNetIf:
junit.framework.AssertionFailedError: getNetInterfaceStat(venet0:0): No such device or address
        at org.hyperic.sigar.test.TestNetIf.getNetIflist(TestNetIf.java:64)
        at org.hyperic.sigar.test.TestNetIf.testCreate(TestNetIf.java:96)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at org.hyperic.sigar.test.SigarTestPrinter.runTests(SigarTestPrinter.java:177)
        at org.hyperic.sigar.test.SigarTestRunner.output(SigarTestRunner.java:137)
        at org.hyperic.sigar.cmd.SigarCommandBase.processCommand(SigarCommandBase.java:188)
        at org.hyperic.sigar.shell.ShellBase.processCommand(ShellBase.java:397)
        at org.hyperic.sigar.cmd.Shell.processCommand(Shell.java:119)
        at org.hyperic.sigar.shell.ShellBase.handleCommand(ShellBase.java:364)
        at org.hyperic.sigar.shell.ShellBase.handleCommand(ShellBase.java:310)
        at org.hyperic.sigar.shell.ShellBase.run(ShellBase.java:289)
        at org.hyperic.sigar.cmd.Shell.main(Shell.java:212)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at org.hyperic.sigar.cmd.Runner.main(Runner.java:214)
3) org.hyperic.sigar.test.TestProcList:
junit.framework.AssertionFailedError
        at org.hyperic.sigar.test.TestProcList.testCreate(TestProcList.java:38)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at org.hyperic.sigar.test.SigarTestPrinter.runTests(SigarTestPrinter.java:177)
        at org.hyperic.sigar.test.SigarTestRunner.output(SigarTestRunner.java:137)
        at org.hyperic.sigar.cmd.SigarCommandBase.processCommand(SigarCommandBase.java:188)
        at org.hyperic.sigar.shell.ShellBase.processCommand(ShellBase.java:397)
        at org.hyperic.sigar.cmd.Shell.processCommand(Shell.java:119)
        at org.hyperic.sigar.shell.ShellBase.handleCommand(ShellBase.java:364)
        at org.hyperic.sigar.shell.ShellBase.handleCommand(ShellBase.java:310)
        at org.hyperic.sigar.shell.ShellBase.run(ShellBase.java:289)
        at org.hyperic.sigar.cmd.Shell.main(Shell.java:212)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at org.hyperic.sigar.cmd.Runner.main(Runner.java:214)
4) org.hyperic.sigar.test.TestWho:
junit.framework.AssertionFailedError
        at org.hyperic.sigar.test.TestWho.testWho(TestWho.java:36)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at org.hyperic.sigar.test.SigarTestPrinter.runTests(SigarTestPrinter.java:177)
        at org.hyperic.sigar.test.SigarTestRunner.output(SigarTestRunner.java:137)
        at org.hyperic.sigar.cmd.SigarCommandBase.processCommand(SigarCommandBase.java:188)
        at org.hyperic.sigar.shell.ShellBase.processCommand(ShellBase.java:397)
        at org.hyperic.sigar.cmd.Shell.processCommand(Shell.java:119)
        at org.hyperic.sigar.shell.ShellBase.handleCommand(ShellBase.java:364)
        at org.hyperic.sigar.shell.ShellBase.handleCommand(ShellBase.java:310)
        at org.hyperic.sigar.shell.ShellBase.run(ShellBase.java:289)
        at org.hyperic.sigar.cmd.Shell.main(Shell.java:212)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at org.hyperic.sigar.cmd.Runner.main(Runner.java:214)

FAILURES!!!
Tests run: 37,  Failures: 4,  Errors: 2

Viewing all articles
Browse latest Browse all 52618

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>