SNMPGET works, poller fails?

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
amacks
Posts: 12
Joined: Thu May 22, 2008 10:23 pm

SNMPGET works, poller fails?

Post by amacks »

I've run into a irritating problem, I have some graphs where manually GETing the snmp value works fine, but the poller keeps getting a U
(from cacti log)
08/02/2010 05:47:47 PM - CMDPHP: Poller[0] Host[227] DS[6413] WARNING: Result from SNMP not valid. Partial Result: U
08/02/2010 05:47:47 PM - CMDPHP: Poller[0] Host[227] DS[6413] SNMP: v2: SERVERNAME, dsname: jvmGCcount, oid: .1.3.6.1.4.1.42.2.145.3.163.1.1.2.101.1.2.2, output: U

now if I call that exact same value with snmpget it works. note that community is defined globally and port is defined to be 1161 for this template:

snmpget -v 2c -c COMMUNITY HOSTNAME:1161 .1.3.6.1.4.1.42.2.145.3.163.1.1.2.101.1.2.2
SNMPv2-SMI::enterprises.42.2.145.3.163.1.1.2.101.1.2.2 = Counter64: 10

Any thoughts? is there a way to get cacti to dump the snmp commands it is calling?

A
Voiper99
Cacti User
Posts: 276
Joined: Thu Mar 01, 2007 5:43 pm
Location: Melbourne, Australia

Post by Voiper99 »

Silly question, but are you running the get from the same box that is hosting Cacti?

Also, have you double checked your community string, SNMP version, etc? Has this configuration always worked and has just started playing up, or has it never worked?
amacks
Posts: 12
Joined: Thu May 22, 2008 10:23 pm

Double checked

Post by amacks »

I've been testing from the same box, but just did it again to make double+ sure, and it's doing the same thing. The config works in general, I have close to 150 machines in this instance, and about 10-15 using this data template that work. I added 3 new ones today, and they all fail in the same manner

A
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Check the poller_items table. Make sure it's using the correct SNMP port.

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?
amacks
Posts: 12
Joined: Thu May 22, 2008 10:23 pm

you got it!

Post by amacks »

even though the template says 1161, the poller_item table has 161. I'll change that
A
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

That's what I thought. This is a know issue. I should fix it if I could just make the time....

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?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests