snmp issue

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
sacomsto
Posts: 8
Joined: Tue May 08, 2007 6:01 pm

snmp issue

Post by sacomsto »

Okay I had to move my existing cacti installation to a new box... everything seems to be working... cacti is updating graph objects that already existed, but I seem to have an SNMP issue.... i can't seem to get query results for existing devices and when I create new devices I get nothing... every time I open a "device" I see the words "SNMP error" in red in the top left of the device screen...

Here is the results from a device query:
+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/Library/WebServer/Documents/cacti/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'
+ No SNMP data returned
+ Found data query XML file at '/Library/WebServer/Documents/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/Library/WebServer/Documents/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/Library/WebServer/Documents/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/Library/WebServer/Documents/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/Library/WebServer/Documents/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/Library/WebServer/Documents/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/Library/WebServer/Documents/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/Library/WebServer/Documents/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/Library/WebServer/Documents/cacti/resource/snmp_queries/interface.xml'
Here is a snmpwalk result on the same device:
snmpwalk -v 1 -c public 10.112.1.254 .1.3.6.1.2.1.2.2.1.1
IF-MIB::ifIndex.1 = INTEGER: 1
IF-MIB::ifIndex.2 = INTEGER: 2
IF-MIB::ifIndex.3 = INTEGER: 3
IF-MIB::ifIndex.4 = INTEGER: 4
IF-MIB::ifIndex.5 = INTEGER: 5
IF-MIB::ifIndex.6 = INTEGER: 6
IF-MIB::ifIndex.7 = INTEGER: 7
IF-MIB::ifIndex.8 = INTEGER: 8
IF-MIB::ifIndex.9 = INTEGER: 9
IF-MIB::ifIndex.10 = INTEGER: 10
IF-MIB::ifIndex.11 = INTEGER: 11
IF-MIB::ifIndex.12 = INTEGER: 12
IF-MIB::ifIndex.13 = INTEGER: 13
IF-MIB::ifIndex.14 = INTEGER: 14
My paths all look correct in the configuration/settings area... any ideas?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Is php-snmp installed?
Reinhard
sacomsto
Posts: 8
Joined: Tue May 08, 2007 6:01 pm

Post by sacomsto »

gandalf wrote:Is php-snmp installed?
(Oh yeah I'm running 0.8.6j)

Well if I click on the Cactus graphic from within my Cacti admin gui I get the following info displayed:

Cacti Variables
Operating System: unix
PHP SNMP Support: yes

Thanks for the reply... I have to believe this is some kind of very easy fix... I had seen someone with a similar problem in the forums and you had asked them to run the snmpwalk and post the results, that is why I did so in my original post....

I'm also running Mysql 5.0.37 and PHP 5.2.1.
sacomsto
Posts: 8
Joined: Tue May 08, 2007 6:01 pm

Post by sacomsto »

oops... duplicate post.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

What's the snmp version of the target system? Are you able to catch a tcpdump/wireshark trace of a single cacti poller's run against the failing target only?
Reinhard
sacomsto
Posts: 8
Joined: Tue May 08, 2007 6:01 pm

Post by sacomsto »

gandalf wrote:What's the snmp version of the target system? Are you able to catch a tcpdump/wireshark trace of a single cacti poller's run against the failing target only?
Reinhard
Version 2

However it fails from within cacti to any IP I point it against. However all the pre-existing RRD files that were created and then migrated over all work fine in terms of graphing... however if I click on one of the existing "devices" in the CACTI admin console, underneath the device name is "SNMP error" and then if I look towards the bottom of the page there is a hyperlink in the associated data queries section called "verbose query." If I click that link I get the information I included in my original post which includes the one line that reads "No SNMP data returned".


Yet if I run a manual snmpwalk from the server's terminal screen I get data returned (refer to original post). At least I assume that is valid data returned... you tell me?

I just upgraded to verision 5.4 of net-snmp. It is installed to /usr/local/bin which is where the paths point to in the settings of cacti.

When you query a device does the resulting info get written somewhere? is it possible that i have some kind of permission issue with some directory somewhere?
sacomsto
Posts: 8
Joined: Tue May 08, 2007 6:01 pm

Post by sacomsto »

gandalf wrote:What's the snmp version of the target system? Are you able to catch a tcpdump/wireshark trace of a single cacti poller's run against the failing target only?
Reinhard
I neglected to answer the other part of your question... I am not sure how to perform a tcpdump or wireshark trace... I'd be happy to try though although it would seem to me that this same machine, same network etc. worked fine a few days earlier, but after the new hard drive, and fresh OS install, then restore of data, SNMP queries no longer work. Wouldn't it just about have to be a configuration error of some kind?

When an admin manually triggers an SNMP query of a device from within the Cacti admin interface, what process actually executes the appropriate SNMP binary tool? In other words, is it possible that there is a user permission issue in which that process is unable to execute the snmp binary located at user/local/bin?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

sacomsto wrote:
gandalf wrote:What's the snmp version of the target system? Are you able to catch a tcpdump/wireshark trace of a single cacti poller's run against the failing target only?
Reinhard
Version 2

However it fails from within cacti to any IP I point it against. However all the pre-existing RRD files that were created and then migrated over all work fine in terms of graphing... however if I click on one of the existing "devices" in the CACTI admin console, underneath the device name is "SNMP error"
So this host is not able/allowed to send snmp requests to those targets. Please check snmpd.conf on those target systems for ACL checks on IP@
Reinhard
sacomsto
Posts: 8
Joined: Tue May 08, 2007 6:01 pm

Post by sacomsto »

gandalf wrote:
sacomsto wrote:
gandalf wrote:What's the snmp version of the target system? Are you able to catch a tcpdump/wireshark trace of a single cacti poller's run against the failing target only?
Reinhard
Version 2

However it fails from within cacti to any IP I point it against. However all the pre-existing RRD files that were created and then migrated over all work fine in terms of graphing... however if I click on one of the existing "devices" in the CACTI admin console, underneath the device name is "SNMP error"
So this host is not able/allowed to send snmp requests to those targets. Please check snmpd.conf on those target systems for ACL checks on IP@
Reinhard

Hmm. I'm a bit confused here... If I manually run : /usr/local/bin/snmpwalk and I get the following info:
snmpwalk -v 1 -c public 10.112.254.1 .1.3.6.1.2.1.2.2.1.1
IF-MIB::ifIndex.1 = INTEGER: 1
IF-MIB::ifIndex.2 = INTEGER: 2
IF-MIB::ifIndex.3 = INTEGER: 3
IF-MIB::ifIndex.4 = INTEGER: 4
IF-MIB::ifIndex.5 = INTEGER: 5
IF-MIB::ifIndex.6 = INTEGER: 6
IF-MIB::ifIndex.7 = INTEGER: 7
IF-MIB::ifIndex.8 = INTEGER: 8
IF-MIB::ifIndex.9 = INTEGER: 9
IF-MIB::ifIndex.10 = INTEGER: 10
IF-MIB::ifIndex.11 = INTEGER: 11
IF-MIB::ifIndex.12 = INTEGER: 12
IF-MIB::ifIndex.13 = INTEGER: 13
IF-MIB::ifIndex.14 = INTEGER: 14
Is that a valid/successful query? If it is, then it would appear that this host that Cacti is running CAN in fact query external SNMP devices... but for some reason the queries aren't happening from within Cacti?

Thank you so much for helping me with this.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest