pthulasiram / jmxetric

Automatically exported from code.google.com/p/jmxetric
MIT License
0 stars 0 forks source link

Don't see any metrics emitted by demo #24

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
   1) Ensure you have a gmond running on localhost:8649
    2) Unzip archive
    3) cd into the directory
    2) In bash do:
        $ export
config="host=localhost,port=8649,wireformat31x=true,config=etc/jmxetric.xml"
        $ java  -Djava.util.logging.config.file=etc/logging.properties -javaagent:jmxetric-0.0.4.jar=$config jmxetric.JMXetricAgent 

What is the expected output? What do you see instead?
The messages displayed don't show any errors or exceptions, but I don't see any 
graphs with metrics thrown by the sample demo. I nc'ed gmond at port 8649, 
there are no metrics added.

What version of the product are you using? On what operating system?
Version - latest 0.0.5
Operating system - Linux centOS.

Any suggestion will be greatly appreciated. 

Please provide any additional information below.

Original issue reported on code.google.com by md.jahan...@gmail.com on 16 May 2011 at 7:05

Attachments:

GoogleCodeExporter commented 8 years ago
Hi Jahangir, yes you're right- no obvious errors on the output.  I usually run 
wireshark or similar to diagnose this sort of errors - you should be able to 
see the metrics published on the wire..  What version of gmond is this?

Original comment by jasper...@gmail.com on 17 May 2011 at 5:41

GoogleCodeExporter commented 8 years ago
Hello Jasper,

Thanks a lot for your response. The version of gmond is: gmond 3.0.7

Let me know if you have any suggestions for me. I will check wireshark till 
then.

Thanks,
Jahangir.

Original comment by md.jahan...@gmail.com on 17 May 2011 at 5:53

GoogleCodeExporter commented 8 years ago
ah in that case you'll need wireformat31x=false.  The wire format changed 
between ganglia 3.0.x and 3.1.x.

Original comment by jasper...@gmail.com on 17 May 2011 at 6:53

GoogleCodeExporter commented 8 years ago
aah..Thanks a ton Jasper..It worked finally..wire format :)

Original comment by md.jahan...@gmail.com on 18 May 2011 at 1:15

GoogleCodeExporter commented 8 years ago
Jasper..I am unable to sample my MBean. the only message it has is:

WARNING: Exception when getting xx.yy.zz:type=xx NumOfWrites.null

I don't know what to get from here. I am using a standard MBean, no composites, 
just attributes.

Any ideas? Can you give an example of MBean it can track?. Your help is greatly 
appreciated.

Original comment by md.jahan...@gmail.com on 18 May 2011 at 11:02

GoogleCodeExporter commented 8 years ago
Also, to specify I can see this MBean through JConsole though

Original comment by md.jahan...@gmail.com on 18 May 2011 at 11:22

GoogleCodeExporter commented 8 years ago
Aah..Got it.. I need to make an MXBean to work..MXBean works and not MBean.

Original comment by md.jahan...@gmail.com on 19 May 2011 at 12:26

GoogleCodeExporter commented 8 years ago
For some reason the stack trace is not logged for that exception - I have now 
added the stack trace.  Try this version for enhanced logging:
http://jmxetric.googlecode.com/files/jmxetric-0.0.6-SNAPSHOT.jar

Original comment by jasper...@gmail.com on 19 May 2011 at 7:27