LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-02-2013, 05:33 PM   #1
Mark007
Member
 
Registered: Apr 2004
Location: Sussex, UK
Distribution: Centos, Cisco IOS, Win<n>X64
Posts: 34

Rep: Reputation: 15
SNMP - Wrong type, (Should be INTEGER)


Hi all,

I've installed a new router, and found the MIBS I need with a walker on my Windows box, I then set up Cacti to monitor a few stats about the ADSL line. (Centos 5.2 x64)

Cacti reported "SNMP Error" with no rows returned, so headed for the # prompt and did some snmp-walking, and found this.. (I grabbed the MIB file from cisco as didn't have it.)

ADSL-LINE-MIB::adslAtucCurrSnrMgn.14 = Wrong Type (should be INTEGER): Gauge32: 80
ADSL-LINE-MIB::adslAtucCurrAtn.14 = Wrong Type (should be INTEGER): Gauge32: 30
ADSL-LINE-MIB::adslAtucCurrOutputPwr.14 = Wrong Type (should be INTEGER): Gauge32: 119
ADSL-LINE-MIB::adslAtucCurrAttainableRate.14 = Gauge32: 1347000 bps

and...

snmpget -v2c -c public 192.168.1.254 1.3.6.1.2.1.10.94.1.1.2.1.4
Bad MIN-ACCESS spec (read-wr): At line 3360 in /usr/share/snmp/mibs/ADSL-LINE-MIB.mib
ADSL-LINE-MIB::adslAtucCurrSnrMgn = No Such Instance currently exists at this OID

huh? a walk finds something.....


so, that's what is causing cacti to grumble. and bearing in mind the windows mib browser was returning the values as gauge..

I've checked ADSL-LINE-MIB, and just for the sake of argument change the entries to INTEGER, no change (restarted snmpd)
but I'm not entirely sure of how this is bolted together, I've yum'd to update net-smnp, so it's the latest RH-EL version.

I've had a google, but nothing much forthcoming?? (strange..I thought.)

What is going on........ Suggestions where next please.

Mark007
 
Old 12-03-2013, 02:31 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,880

Rep: Reputation: 162Reputation: 162
Do you know whether your new router support ADSL MIB?
 
Old 12-03-2013, 05:51 PM   #3
Mark007
Member
 
Registered: Apr 2004
Location: Sussex, UK
Distribution: Centos, Cisco IOS, Win<n>X64
Posts: 34

Original Poster
Rep: Reputation: 15
[resolved] -

bit of needle in a haystack.

A bit of corruption/typo in a MIB that was being called.

another called MIB was very old. (even though dated quite recently.)

Took an evening to pick that through...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] error: large integer implicitly truncated to unsigned type sajnanazeer Programming 4 08-19-2011 02:32 AM
Problems Installing cmake - No native data type can represent a 16-bit integer. golmschenk Linux - Software 5 11-07-2010 11:23 PM
interesting integer type comparison problem figo Programming 2 09-29-2009 10:35 PM
how to convert an integer type to string? nesta Programming 1 04-11-2007 07:15 PM
Shell-Script check if $xx is of type integer d-fens Programming 5 07-11-2003 08:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration