setting up JVM stats / monitoring for hudson?

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
akos.maroy
Posts: 9
Joined: Tue Jul 14, 2009 2:47 am

setting up JVM stats / monitoring for hudson?

Post by akos.maroy »

I was looking at this forum entry: http://forums.cacti.net/about19761.html

but I can't seem to get this working. I'm trying to monitor a hudson CI server - I fire it up using the following:

Code: Select all

 java -Dcom.sun.management.snmp.acl.file=snmp.acl -Dcom.sun.management.snmp.port=2000 -jar hudson.war
but interestingly I can't even access port 2000 aftewards:

Code: Select all

$ telnet localhost 2000
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
what am I doing wrong? probably something extremely trivial...

any help would be appreciated..
jewel
Posts: 4
Joined: Fri Nov 02, 2007 12:41 pm
Location: Brovary, UA
Contact:

Post by jewel »

because of jvm snmp agent listen udp/2000
akos.maroy
Posts: 9
Joined: Tue Jul 14, 2009 2:47 am

Post by akos.maroy »

jewel wrote:because of jvm snmp agent listen udp/2000
oh, thank you..

what would be an easy way to verify that it does provide SNMP data?

sorry for the really newbie questions..
jewel
Posts: 4
Joined: Fri Nov 02, 2007 12:41 pm
Location: Brovary, UA
Contact:

Post by jewel »

Code: Select all

snmpwalk -v 2c -c YOURCOMMUNITY -m /path/to/JVM-MANAGEMENT-MIB.mib localhost:2000 .
akos.maroy
Posts: 9
Joined: Tue Jul 14, 2009 2:47 am

Post by akos.maroy »

jewel wrote:

Code: Select all

snmpwalk -v 2c -c YOURCOMMUNITY -m /path/to/JVM-MANAGEMENT-MIB.mib localhost:2000 .
and where would I get such a .mib file?
jewel
Posts: 4
Joined: Fri Nov 02, 2007 12:41 pm
Location: Brovary, UA
Contact:

Post by jewel »

akos.maroy
Posts: 9
Joined: Tue Jul 14, 2009 2:47 am

Post by akos.maroy »

jewel wrote:on the Sun documentation site:
http://java.sun.com/j2se/1.5.0/docs/gui ... NT-MIB.mib
thanks - now snmpwalk displays values fine:

Code: Select all

l$ snmpwalk -v 2c -c public -m etc/JVM-MANAGEMENT-MIB.mib localhost:2000 . | grep GC
JVM-MANAGEMENT-MIB::jvmMemoryGCVerboseLevel.0 = INTEGER: silent(1)
JVM-MANAGEMENT-MIB::jvmMemoryGCCall.0 = INTEGER: supported(2)
JVM-MANAGEMENT-MIB::jvmMemGCCount.2 = Counter64: 20
JVM-MANAGEMENT-MIB::jvmMemGCCount.3 = Counter64: 2
JVM-MANAGEMENT-MIB::jvmMemGCTimeMs.2 = Counter64: 114 milliseconds
JVM-MANAGEMENT-MIB::jvmMemGCTimeMs.3 = Counter64: 125 milliseconds
but, cacti still doesn't display a thing - the displayed results are either all zeros, or NaN's... :(

what is going wrong?
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests