Stupid SNMP error

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

Moderators: Developers, Moderators

kaptk2
Posts: 14
Joined: Wed Feb 16, 2005 3:27 pm
Location: Western United States

Stupid SNMP error

Post by kaptk2 »

First the vitals,

Cacti 0.8.6c with all the patches from the offical patches applied
OS: Linux Redhat EL

Next the problem:
I am trying to add some devices to cacti, I create the device and I always get an SNMP error in the uper left under the SNMP Information title. I have cacti working on 1 other device on my network so I am pretty sure it is an SNMP problem. But here is the weird thing I also have mrtg running until I can migrate fully over to cacti and it has no trouble grahing this exact same host. Both cacti and mrtg are running on the same box.

So what is the deal why can't cacti poll this device? I have debug output turned on and I don't see any error messages. What is wrong?
Last edited by kaptk2 on Thu Apr 07, 2005 3:39 pm, edited 1 time in total.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Do you have snmp support enabled in Php?

Code: Select all

php -m

Will show you the modules, look for snmp.

If you do not have snmp modules installed, make sure that your paths to snmpget and snmpwalk are correct. If you don't have snmpget and snmpwalk installed, you will need the snmp-utils RPM to get them
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
kaptk2
Posts: 14
Joined: Wed Feb 16, 2005 3:27 pm
Location: Western United States

Post by kaptk2 »

Yes I do have the snmp module for php. I do think it is a snmp problem but cacti works great for the other device that I currently have graphing.
SAS
Posts: 8
Joined: Fri Feb 25, 2005 5:05 am

Post by SAS »

perhaps there is an access list on the SNMP device, if your cacti poller is different than the MRTG poller, it should be the problem. Use Getif, a SNMP client for resolve your problem.
kaptk2
Posts: 14
Joined: Wed Feb 16, 2005 3:27 pm
Location: Western United States

Post by kaptk2 »

No access list on the snmp device. Does anybody else have any ideas? This is driving me nuts. Do you need more info? If so what info do you need?
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Have you confirmed SNMP version? Is the device SNMPv1 or SNMPv2? Is it set correcly in cacti. From the cacti box, can you snmpwalk the device in question?

SNMPv1

Code: Select all

snmpwalk -v 1 -c <snmp community> <host>
SNMPv2

Code: Select all

snmpwalk -v 2c -c <snmp community> <host>
What version of snmpget and snmpwalk do you have installed,and what is your OS?
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
kaptk2
Posts: 14
Joined: Wed Feb 16, 2005 3:27 pm
Location: Western United States

Post by kaptk2 »

As stated above my OS Rehat Linux EL:
uname -r 2.4.21-15.0.4.EL

SNMP version:
# snmpwalk -V
NET-SNMP version: 5.0.9

The device in question is a smartbrige Airpoint Pro. It uses snmp v1. I can snmpwalk the device in question with some help ie:

Code: Select all

snmpget -v 1 -c password ipaddress .1.3.6.1.4.1.410.1.2.1.1.0
More troubleshoot tips?
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Need to see the snmpwalk of the ".iso.org.dod.internet.mgmt.mib-2.system". Run the following command and post the output:

Code: Select all

snmpwalk -v 1 -c <snmp community> <host> .1.3.6.1.2.1.1
I want to make sure it's returning the information that cacti is looking for.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
kaptk2
Posts: 14
Joined: Wed Feb 16, 2005 3:27 pm
Location: Western United States

Post by kaptk2 »

Code: Select all

snmpwalk -v 1 -c password ipaddr .1.3.6.1.2.1.1
Timeout: No Response from ipaddr
So that is a problem I think, but like I said mrtg can graph this host no problem.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

As long as you can poll sysUptime, and are using cmd.php or the beta cactid, you should still be able to create graphs and poll the device.

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?
kaptk2
Posts: 14
Joined: Wed Feb 16, 2005 3:27 pm
Location: Western United States

Post by kaptk2 »

As long as you can poll sysUptime, and are using cmd.php or the beta cactid, you should still be able to create graphs and poll the device.
How do I check that I can do such things?

Here is the debug from the data SNMP interface statistics query:

Code: Select all

+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/html/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 '/var/www/html/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/interface.xml'
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

kaptk2 wrote:

Code: Select all

snmpwalk -v 1 -c password ipaddr .1.3.6.1.2.1.1
Timeout: No Response from ipaddr
So that is a problem I think, but like I said mrtg can graph this host no problem.
You have checked it. That OID should yield system related information via SNMP. Cacti uses this information, for polling (sysUptime) and for the host editor (the SNMP error you are getting at the top).

At this point, even if you got the OID's in question working, cacti would think the host is down and not poll it. This is where MRTG wouldn't care and happy attempt to poll the device and get the data.

Solutions, well, alter the method that cacti uses to detect host down, (not completely reliable), or attempt to enable SNMP information on the device in question. IE, sysContact, sysDescription, sysUptime, etc in that OID I listed before.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
kaptk2
Posts: 14
Joined: Wed Feb 16, 2005 3:27 pm
Location: Western United States

Post by kaptk2 »

The device in question I found after some searching does not support the way cacti polls it to see if it is up. That is kinda a big bummer but nothing can really be done about it.
At this point, even if you got the OID's in question working, cacti would think the host is down and not poll it. This is where MRTG wouldn't care and happy attempt to poll the device and get the data.

Solutions, well, alter the method that cacti uses to detect host down, (not completely reliable), or attempt to enable SNMP information on the device in question. IE, sysContact, sysDescription, sysUptime, etc in that OID I listed before.
No way to enable that SNMP information, where can I find more info about changing the method caci uses to detect host down?
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

You can change it in the settings. But I have had problems with it in the past, try and see. That is the only think I can suggest.

Settings -> Poller -> Downed Host Detection
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
kaptk2
Posts: 14
Joined: Wed Feb 16, 2005 3:27 pm
Location: Western United States

Post by kaptk2 »

Changed to ping only. That seems to do the trick I have graphs!!!

What gothca's do I have to worry about with ping only?

Also there is an snmp / ping option. If one does not respond (say snmp) will it fall back to ping and if ping reports it up is it assummed up or down?

Thanks for help getting this working!
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests