Weblogic and SNMP Problems

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
thorpa
Posts: 5
Joined: Mon Aug 08, 2005 11:40 pm

Weblogic and SNMP Problems

Post by thorpa »

Hi,

I have been trying to get cacti to work with SNMP and Weblogic but am not having much luck and would like some suggestions from the experts as to what might be causing the problem. I am using Cacti 0.8.6f with snmp support and the standard "Data Input Method - Get SNMP Data". Perhaps this is the problem?

If I use snmpget to retrieve the OID information, it works fine, so I am simply using the same OID and inserting it into Cacti and running php.cmd to view the output as shown below.

Using snmpget
snmpget -c public -v 1 xxx.xxx.xxx.xxx enterprises.140.625.340.1.25.32.48.48.98.101.50.52.100.97.97.52.57.99.98.50.51.55.53.57.50.56.50.54.98.99.56.100.55.101.48.51.98.53

Result is good
SNMPv2-SMI::enterprises.140.625.340.1.25.32.48.48.98.101.50.52.100.97.97.52.57.99.98.50.51.55.53.57.50.56.50.54.98.99.56.100.55.101.48.51.98.53 = INTEGER: 35366312

When Using Cacti to get the result
08/10/2005 10:40:07 AM - CMDPHP: Poller[0] Host[4] DS[17] WARNING: Result from SNMP not valid. Partial Result:
08/10/2005 10:40:07 AM - CMDPHP: Poller[0] Host[4] DS[17] SNMP: v1: 134.251.199.133, dsname: snmp_oid, oid: enterprises.140.625.340.1.25.32.48.48.98.101.50.52.100.97.97.52.57.99.98.50.51.55.53.57.50.56.50.54.98.99.56.100.55.101.48.51.98.53, output: U
pierre-luc
Posts: 8
Joined: Wed Aug 10, 2005 10:05 pm
Location: Montreal, Canada

Weblogic + snmp and cacti

Post by pierre-luc »

Hi thorpa,
I just spend times trying to get some stats from weblogic using SNMP with cacti. I never be able to get valid data user snmp_queries directly from cacti, So. I think for now it's by using custom scripts.

The problem I get between weblogic+snmp and cacti is that indexes from snmpwalk are too longer for cacti.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Please see if you are having the following problem:

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

TheWitness

Please post both here and in the bug report either way. Thks!
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
pierre-luc
Posts: 8
Joined: Wed Aug 10, 2005 10:05 pm
Location: Montreal, Canada

Post by pierre-luc »

Hi TheWitness,
Yes, I got the bug you specify on the URL. the OID index is longer than 132 characters in weblogic.

Thanks.
pierre-luc
Posts: 8
Joined: Wed Aug 10, 2005 10:05 pm
Location: Montreal, Canada

script for monitoring message in Weblogic JMS queues

Post by pierre-luc »

Because weblogic snmp community name is related with de managed-server name, I build a Perl script that go query all managed-server for JMS queue, It still working for our system.

There is the script that can run manually for testing and the Data Query XML for cacti.


The script is a bit scrappy but it work, I'not a good perl scripter. :o
Attachments
query_weblogic_jms1.0.tar.gz
Custom script and data query XML that query JMS messages stats in weblogic via SNMP
(2.43 KiB) Downloaded 258 times
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

I believe you can alter the table's per the bug report. We will move this to the 0.9 version as well.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
thorpa
Posts: 5
Joined: Mon Aug 08, 2005 11:40 pm

The character count of the OID is 132

Post by thorpa »

Hi,

The characted count for the OID is 132 in total, so this does not appear to be the problem.

The SNMP Cache shows this.

Action: 0, OID: enterprises.140.625.340.1.25.32.48.48.98.101.50.52.100.97.97.52.57.99.98.50.51.55.53.57.50.56.50.54.98.99.56.100.55.101.48.51.98.53 (Host: 134.251.199.133, Community: public)

Which reflects the input OID
enterprises.140.625.340.1.25.32.48.48.98.101.50.52.100.97.97.52.57.99.98.50.51.55.53.57.50.56.50.54.98.99.56.100.55.101.48.51.98.53

I might make the changes to the Database anyway and see how this goes, else I might try the script from pierre-luc

I'll let you know how it goes.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Perform the database changes. The previous width was 100 characters and not 132. I am including this in the next maintenance release of Cacti.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
thorpa
Posts: 5
Joined: Mon Aug 08, 2005 11:40 pm

Same Problem

Post by thorpa »

I made the changes to the DB as follows

mysql> ALTER TABLE `host_snmp_cache` CHANGE `snmp_index` `snmp_index` VARCHAR(255) NOT NULL;
Query OK, 18 rows affected (0.04 sec)
Records: 18 Duplicates: 0 Warnings: 0

mysql> ALTER TABLE `data_local` CHANGE `snmp_index` `snmp_index` VARCHAR(255) NOT NULL;
Query OK, 7 rows affected (0.00 sec)
Records: 7 Duplicates: 0 Warnings: 0

mysql> ALTER TABLE `graph_local` CHANGE `snmp_index` `snmp_index` VARCHAR(255) NOT NULL;
Query OK, 7 rows affected (0.00 sec)
Records: 7 Duplicates: 0 Warnings: 0

but I get the same problem, so I might try an alternative method.

08/12/2005 06:31:57 AM - CMDPHP: Poller[0] Host[4] DS[18] WARNING: Result from SNMP not valid. Partial Result:
08/12/2005 06:31:57 AM - CMDPHP: Poller[0] Host[4] DS[18] SNMP: v1: 134.251.199.133, dsname: snmp_oid, oid: enterprises.140.625.340.1.25.32.48.48.98.101.50.52.100.97.97.52.57.99.98.50.51.55.53.57.50.56.50.54.98.99.56.100.55.101.48.51.98.53, output: U
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

You should delete and then re-add your host. If you have a lot of data, then you should delete the affected graphs and data sources and then recreate.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Also, please remove the word "enterprises" from your query. Use the "pure" OID.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
mvam
Cacti User
Posts: 87
Joined: Wed Jun 01, 2005 2:00 pm
Location: Seattle

Post by mvam »

thorpa

also note that weblogic has dynamic OIDs. so each time you restart your server your OIDs will change. i wrote a perl script to deal with the changes. i can post it if you like.
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests