Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
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 :
+ 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:
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)
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
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
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:
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.
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.