SNMP version mismatch

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

Moderators: Developers, Moderators

Post Reply
fitzie
Posts: 1
Joined: Thu May 07, 2009 10:56 am

SNMP version mismatch

Post by fitzie »

A working install stopped working some time back. The cacti.log file shows:
05/07/2009 11:56:01 AM - SPINE: Poller[0] ERROR: SNMP Library Version Mismatch (5.3.1 vs 5.3.2.2) (Spine parent)
05/07/2009 11:57:01 AM - POLLER: Poller[0] Maximum runtime of 58 seconds exceeded. Exiting.
05/07/2009 11:57:01 AM - SYSTEM STATS: Time:59.2468 Method:spine Processes:1 Threads:10 Hosts:13 HostsPerProcess:13 DataSources:15 RRDsProcessed:0
My guess is that SNMP upgraded itself from 5.3.1 to 5.3.2.2 during some session. No biggie, or so I thought.

I upgraded cacti from 0.8.7b to 0.8.7d, and attempted to update spine to 0.8.7c, and that's when I ran into problems.

The resulting configure file for cacti-spine-0.8.7c doesn;t appear to by syntactically correct, as I get errors such as:
./configure: line 3: syntax error near unexpected token `<<<'
./configure: line 3: `<<<<<<< .mine'
I can't seem to locate a version of SNMP 5.3.1 anymore so it looks like I'm stuck. Any pointers?

Thanks!
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please try latest spine from SVN
Reinhard
ceyounger
Posts: 44
Joined: Fri Feb 10, 2006 2:59 pm
Location: Orange County, CA
Contact:

Post by ceyounger »

gandalf wrote:Please try latest spine from SVN
Reinhard
I'm getting this error as well, and I recently updated Spine from SVN.

Code: Select all

05/19/2009 04:47:01 PM - SPINE: Poller[0] ERROR: SNMP Library Version Mismatch (5.3.1 vs 5.3.2.2) (Spine parent) 
Here's my HostInfo:
Cacti Version - 0.8.7d
Plugin Architecture - 2.4
Poller Type - Cactid v
Server Info - Linux 2.6.18-128.1.10.el5xen
Web Server - Apache/2.2.8 (EL)
PHP - 5.2.6
PHP Extensions - libxml, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, session, pcre, SimpleXML, sockets, SPL, shmop, standard, Reflection, pspell, posix, iconv, hash, gmp, gettext, ftp, filter, exif, date, curl, ctype, calendar, bz2, zlib, openssl, apache2handler, dbase, dom, gd, json, ldap, mcrypt, mysql, mysqli, odbc, PDO, pdo_mysql, PDO_ODBC, pdo_sqlite, snmp, soap, xmlreader, xmlrpc, xmlwriter, xsl, zip
MySQL - 5.0.58-log
RRDTool - 1.2.30
SNMP - 5.3.2.2
Plugins
  • Host Info (hostinfo - v0.2)
    CAMM (CActi Message Manager) (CAMM - v1.5.3)
    Network Discovery (discovery - v0.9)
    Documents (docs - v0.1)
    Device Tracking (mactrack - v2.0)
    Device Monitoring (monitor - v0.9)
    Poller Performance Report (pollperf - v0.32)
    Global Plugin Settings (settings - v0.6)
    Thresholds (thold - v0.4.1)
    Network Tools (tools - v0.3)
    Update Checker (update - v0.4)
    Realtime Graph Viewer (realtime - v0.36)
    RRD File Cleaner (RRD Cleaner - v0.38)
    Create Aggregate Graphs (aggregate - v0.71)
    IP subnet Calculator IPv4 IPv6 (ipsubnet - v.4c)
    PHP Network Weathermap (weathermap - v0.96)
    SNMPTT and SYSLOG viewer for cacti (snmptt - v1.4.3)
    SuperLinks (superlinks - v0.8)
    SQL Queries (sqlqueries - v0.2)
Any other suggestions?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Call Larry (TheWitness), the Lord of Spine
Reinhard
ceyounger
Posts: 44
Joined: Fri Feb 10, 2006 2:59 pm
Location: Orange County, CA
Contact:

Post by ceyounger »

gandalf wrote:Call Larry (TheWitness), the Lord of Spine
Reinhard
Hehe...

I got impatient (well *my* boss got impatient) and I did the painful NET-SNMP downgrade. This worked, but borked some of SNMP Informant templates (?!).

Oh well, at least I have something to do now...
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

The issue here is that whoever packaged your net-snmp, did not update the version information in the net-snmp header files. This happens from time to time and more than likely happens when you have some custom packaged application that incorrectly bundles net-snmp libraries into a system location without updating the header files as well.

This has been an issue for some time with 3rd party applications. The check was placed inside of spine to prevent segmentation faults due to structure alignment issues that will be cause by using old header files with new versions of the net-snmp API. So, it's a self protection mechanism.

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?
terry.ble
Posts: 13
Joined: Fri Dec 29, 2006 8:20 am
Location: Paris

Post by terry.ble »

hello guys

I would like to update this post because i have the same error and after searching around i didn't see any post that it can help me.

Is someone as a clue or a investiagtion method to figure out it?

after updating snmp here is what I found

Code: Select all

php /srv/eyesofnetwork/cacti-0.8.7b/lib/poller.php --force
03/31/2010 12:43:19 AM - POLLER: Poller[0] NOTE: Poller Int: '60', Cron Int: '300', Time Since Last: '63', Max Runtime '298', Poller Runs: '5'
03/31/2010 12:43:19 AM - SPINE: Poller[0] ERROR: SNMP Library Version Mismatch (5.3.1 vs 5.3.2.2) (Spine parent)
Waiting on 1/1 pollers.
here is my cacti version
Cacti Version 0.8.7e
Cacti OS unix
SNMP Version NET-SNMP version: 5.3.2.2
RRDTool Version RRDTool 1.2.x
-bash-3.2# spine
SPINE: Using spine config file [/etc/spine.conf]
SPINE: Version 0.8.7b starting
03/31/2010 01:13:58 AM - SPINE: Poller[0] ERROR: SNMP Library Version Mismatch (5.3.1 vs 5.3.2.2) (Spine parent)
Thanks for your help
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Update to E. I have made this check not mandatory.

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?
terry.ble
Posts: 13
Joined: Fri Dec 29, 2006 8:20 am
Location: Paris

Post by terry.ble »

hi TheWitness

tha's great with version e.

Thanks
Lewis
Posts: 40
Joined: Thu May 19, 2005 8:04 pm

Post by Lewis »

after upgrades, i'm still getting these errors :

04/20/2010 03:25:02 PM - SPINE: Poller[0] ERROR: SNMP Library Version Mismatch (5.3.1 vs 5.3.2.2) (Spine parent)
04/20/2010 03:25:02 PM - SPINE: Poller[0] DEBUG: SNMP Library Version is 5.3.2.2
04/20/2010 03:25:02 PM - SPINE: Poller[0] DEBUG: SNMP Header Version is 5.3.1

its a centos box, with yum list cacti i get :

Installed Packages
cacti.noarch 0.8.7e-3.el5.rf installed
Guts74
Posts: 9
Joined: Thu Jun 17, 2010 7:48 am

Post by Guts74 »

I have the same problem but i don't know how to change the header SNMP version.

09/02/2010 12:16:09 PM - SPINE: Poller[0] Version 0.8.7b starting
09/02/2010 12:16:09 PM - SPINE: Poller[0] DEBUG: MySQL is Thread Safe!
09/02/2010 12:16:09 PM - SPINE: Poller[0] SPINE: Initializing Net-SNMP API
09/02/2010 12:16:09 PM - SPINE: Poller[0] DEBUG: SNMP Header Version is 5.3.1
09/02/2010 12:16:09 PM - SPINE: Poller[0] DEBUG: SNMP Library Version is 5.3.2.2
09/02/2010 12:16:09 PM - SPINE: Poller[0] ERROR: SNMP Library Version Mismatch (5.3.1 vs 5.3.2.2) (Spine parent)

CACTI : 0.8.7b
SNMP : 5.3.2.2
RRDTOOL : 1.2
Guts74
Posts: 9
Joined: Thu Jun 17, 2010 7:48 am

Post by Guts74 »

I have resolve my proplem. Installation of spin 0.8.7g is necessary.
http://www.cacti.net/spine_install_rhlnx.php

thx
Mattza
Posts: 23
Joined: Wed Nov 11, 2009 2:46 am

Re: SNMP version mismatch

Post by Mattza »

Seems like an old post but i had the same problem with the new 0.8.7g version of Cacti. What i did was to change the /etc/ld.so.conf file to point to the correct library. Dont know if this helps anyone or if our setup was wrong from the beginning. But that how I solved my problem instead or downgrade snmp or upgrade cacti.

Cheers!
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests