Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Spike detection and JVM issues

 
Post new topic   Reply to topic    Cacti Forum Index -> Feature Requests
Author Message
lrsmith



Joined: 29 Jun 2006
Posts: 16

PostPosted: Mon Sep 11, 2006 2:03 pm    Post subject: Spike detection and JVM issues Reply with quote

I've run into an problem with using Cacti to monitor a JVM that has SNMP enabled. I created a device that connects to the SNMP port of the JVM instance and query fine. However only the JVM MIB is available on that port so Cacti is not able to query the .1.3.6.1.2.1.1.3.0 MIB to see how long the host has been up.

As a work around I go into the MySQL database and modify the poller_reindex table to monitor the .1.3.6.1.4.1.42.2.145.3.163.1.1.4.11.0 MIB which is the jvmRTUptimeMs counter.

This works fine as long as the device configuration is not changed, because it reverts back to the 1st mib and I have to go into the MySQL table and change it again. I'm not sure what else would cause this yet.

It would be nice if we could specify the MIB, on a per device basis, that should be checked for uptime and spike detection.

Other than that Cacti has been working well and its a great tool/project.

Thanks,
Len
Back to top
lrsmith



Joined: 29 Jun 2006
Posts: 16

PostPosted: Mon Sep 25, 2006 2:11 pm    Post subject: Follow-up Reply with quote

I have been tracing this through the code and in poller.php the problem seems to come down to the switch statement that starts at line 150. The reindex method is backwards_uptime, which is hard-coded to reset the OID to .1.3.6.1.2.1.1.3.0 rather than use the existing OID.

It would be nice to have that switch to use a variable that can be redefined from the default, on a per device basis.
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9671
Location: MI, USA

PostPosted: Mon Sep 25, 2006 7:40 pm    Post subject: Reply with quote

lrsmith,

Please goto bugs.cacti.net and log your feature request. I believe that this is a "worthy" feature.

TheWitness
Back to top
lrsmith



Joined: 29 Jun 2006
Posts: 16

PostPosted: Wed Sep 27, 2006 8:18 am    Post subject: Posted on bugs.cacti.net Reply with quote

http://bugs.cacti.net/view.php?id=829

As a work around I've set the reindex method to none and that seems to work.
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9671
Location: MI, USA

PostPosted: Sun Dec 31, 2006 2:03 pm    Post subject: Reply with quote

What happens with this host when you perform an snmpgetnext as follows:

snmpgetnext -c <your_community> -v <your_version> <your_host> .1

TheWitness
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9671
Location: MI, USA

PostPosted: Sat Sep 15, 2007 11:58 pm    Post subject: Reply with quote

In Cacti 0.8.7, you will be able to add the following tag to your XML file "<oid_uptime>" so an OID that supports your uptime counter therefore, resolving this issue.

TheWitness
Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 12186
Location: Muenster, Germany

PostPosted: Sun Sep 16, 2007 2:19 pm    Post subject: Reply with quote

Please Larry,
let me know more about this. I was not aware of this feature. How will I document it???
Reinhard
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9671
Location: MI, USA

PostPosted: Sun Sep 16, 2007 2:23 pm    Post subject: Reply with quote

Reinhard,

I just sent you a note relative to this. Simply add the following to your XML file:

<oid_uptime>.a.b.c.d.e.f</oid_uptime>

Then reindex your query.

Larry
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Feature Requests All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group