[solved] No more variables left in this MIB View

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

Moderators: Developers, Moderators

Post Reply
prxbl
Posts: 18
Joined: Wed Nov 28, 2007 6:59 pm

[solved] No more variables left in this MIB View

Post by prxbl »

Hello I've just installed cacti on Ubuntu, everything works fine except for the SNMP - interface statistics data query. When i try to verbose query it it shows the following :

Code: Select all

+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/usr/share/cacti/site/resource/snmp_queries/interface.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1'
+ Located input field 'ifIndex' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.1'
+ Found item [ifIndex='No more variables left in this MIB View (It is past the end of the MIB tree)'] index: 1 [from value]
+ Located input field 'ifOperStatus' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.8'
+ Found item [ifOperStatus='Testing'] index: 8 [from value]
+ Located input field 'ifDescr' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.2'
+ Found item [ifDescr='No more variables left in this MIB View (It is past the end of the MIB tree)'] index: 2 [from value]
+ Located input field 'ifName' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.1'
+ Found item [ifName='No more variables left in this MIB View (It is past the end of the MIB tree)'] index: 1 [from value]
+ Located input field 'ifAlias' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.18'
+ Found item [ifAlias='No more variables left in this MIB View (It is past the end of the MIB tree)'] index: 18 [from value]
+ Located input field 'ifType' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.3'
+ Found item [ifType='No more variables left in this MIB View (It is past the end of the MIB tree)'] index: 3 [from value]
+ Located input field 'ifSpeed' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.5'
+ Found item [ifSpeed='No more variables left in this MIB View (It is past the end of the MIB tree)'] index: 5 [from value]
+ Located input field 'ifHwAddr' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.6'
+ Found item [ifHwAddr='No more variables left in this MIB View (It is past the end of the MIB tree)'] index: 6 [from value]
+ Located input field 'ifIP' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.4.20.1.2'
+ Found item [ifIP='4.20.1.2'] index: 1 [from regexp oid parse]
+ Found data query XML file at '/usr/share/cacti/site/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/share/cacti/site/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/share/cacti/site/resource/snmp_queries/interface.xml'

I've also tried to run those queries with snmpwalk:

Code: Select all

root@ubuntu:/usr/share/snmp# snmpwalk -v 2c -c public localhost .1.3.6.1.2.1.2.2.1.2
IF-MIB::ifDescr = No more variables left in this MIB View (It is past the end of the MIB tree)
root@ubuntu:/usr/share/snmp# snmpwalk -v 1 -c public localhost .1.3.6.1.2.1.2.2.1.2
End of MIB
root@ubuntu:/usr/share/snmp#
I'm runing:
Cacti Version 0.8.7b
NET-SNMP version: 5.4.1
Mysql Server version: 5.0.51a-3ubuntu5.1
PHP 5.2.4-2ubuntu5.3

when I try to create a new graph it looks like this(picture attached)
Attachments
print.GIF
print.GIF (50.23 KiB) Viewed 46077 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

If the snmpwalk fails, cacti will fail as well. I suppose that your snmpd.conf on the target host is not yet set up correctly
Reinhard
prxbl
Posts: 18
Joined: Wed Nov 28, 2007 6:59 pm

Post by prxbl »

Thanks Reinhard, i forget to post my conf file, here it is:
File: /usr/share/snmp/snmpd.conf (is this the one in use ? because i'm not sure )

Code: Select all

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

Post by gandalf »

Please, in any case, do NOT POST CREDENTIALS
Replace them by sth arbitrary at least.
In any case, make sure that an snmpwalk running on the cacti system against your target receives valid SNMP data. In fact, this may be related to snmpd.conf on the target system.
Reinhard
prxbl
Posts: 18
Joined: Wed Nov 28, 2007 6:59 pm

Post by prxbl »

Reinhard i don't know what i did wrong by posting my conf file, what credentials ?

other data query's work well, doing snmpwalk on them works ok, graphs ok(example logged in users, hard disk space)

cacti is runing on the same system as snmpd

also i tried snmpwalk -v 2c -c public localhost system
and i noticed this

Code: Select all

SNMPv2-MIB::sysORUpTime.8 = No more variables left in this MIB View (It is past
the end of the MIB tree)
prxbl
Posts: 18
Joined: Wed Nov 28, 2007 6:59 pm

probl solved

Post by prxbl »

problem solved by modifying /usr/share/snmp/snmpd.conf
i enabled com2sec readwrite default private
and changed the community setting in cacti and it started to work
arun.mittalb
Posts: 9
Joined: Tue Jul 06, 2010 12:31 pm

Post by arun.mittalb »

Hi

I am using debian. I have cacti installed and i was monitoring local machine and remote machine. Everything was working fine. Then i added one more machine i could also monitor that. But i deleted the recently added machine and added new since after that i can not see any graph for new machines however i can see graphs for local machine and first remote machine.

i dont have snmpd.conf in /usr/share/snmp however i have it in /etc/snmp

If i type
snmpwalk -v 2c -c public remoteip .1.3.6.1.4.1.2021.4.15.0(oid)
i get result
UCD-SNMP-MIB::memCached.0 = No more variables left in this MIB View (It is past the end of the MIB tree)

if i use version 3 for snmp
snmpwalk -v 3 -c public remoteip .1.3.6.1.4.1.2021.4.15.0
i get snmpwalk: No securityName specified

if i use snmp version 1
snmpwalk -v 1 -c public remoteip .1.3.6.1.4.1.2021.4.15.0
i get
End of MIB

in cacti log i see WARNING: Result from SNMP not valid. Partial Result:

my graphs shows nan

I dont know what is going on.

Any guideline will be helpful
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Either your parameter combination is invalid or, more likely, the target does not respond to that OID. Try walking a different OID (e.g. "interface") to verify
R.
arun.mittalb
Posts: 9
Joined: Tue Jul 06, 2010 12:31 pm

Post by arun.mittalb »

Hi

It is same for every oid. It either says End of MIB or

UCD-SNMP-MIB::ssCpuRawUser.0 = No more variables left in this MIB View (It is past the end of the MIB tree
for snmp version 2

I monitored my remote machine once and it was working fine but i deleted that and added again since after that i can not monitor that particular machine and machine i add after that.

I still can monitor my previous machines.

I will appreciate any suggestion
arun.mittalb
Posts: 9
Joined: Tue Jul 06, 2010 12:31 pm

Post by arun.mittalb »

I fixed the issue. My snmpd.conf file war wrong and was responding to oid. I modified snmpd.conf and everything was working fine.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests