Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
Templates, scripts for templates, scripts and requests for templates.
Moderators: Developers , Moderators
akos.maroy
Posts: 9 Joined: Tue Jul 14, 2009 2:47 am
Post
by akos.maroy » Wed Jul 15, 2009 8:47 am
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 » Wed Jul 15, 2009 10:13 am
because of jvm snmp agent listen udp/2000
akos.maroy
Posts: 9 Joined: Tue Jul 14, 2009 2:47 am
Post
by akos.maroy » Wed Jul 15, 2009 10:17 am
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 » Wed Jul 15, 2009 11:12 am
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 » Wed Jul 15, 2009 2:10 pm
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 » Thu Jul 16, 2009 10:57 am
akos.maroy
Posts: 9 Joined: Tue Jul 14, 2009 2:47 am
Post
by akos.maroy » Mon Jul 27, 2009 11:32 am
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?
Users browsing this forum: No registered users and 2 guests