Stupid SNMP error
Moderators: Developers, Moderators
Stupid SNMP error
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?
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.
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Do you have snmp support enabled in Php?
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
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]
[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]
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
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
SNMPv2
What version of snmpget and snmpwalk do you have installed,and what is your OS?
SNMPv1
Code: Select all
snmpwalk -v 1 -c <snmp community> <host>
Code: Select all
snmpwalk -v 2c -c <snmp community> <host>
[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]
[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]
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:
More troubleshoot tips?
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
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Need to see the snmpwalk of the ".iso.org.dod.internet.mgmt.mib-2.system". Run the following command and post the output:
I want to make sure it's returning the information that cacti is looking for.
Code: Select all
snmpwalk -v 1 -c <snmp community> <host> .1.3.6.1.2.1.1
[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]
[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]
Code: Select all
snmpwalk -v 1 -c password ipaddr .1.3.6.1.2.1.1
Timeout: No Response from ipaddr
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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
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?
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?
How do I check that I can do such things?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.
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'
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
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).kaptk2 wrote:So that is a problem I think, but like I said mrtg can graph this host no problem.Code: Select all
snmpwalk -v 1 -c password ipaddr .1.3.6.1.2.1.1 Timeout: No Response from ipaddr
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]
[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]
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.
No way to enable that SNMP information, where can I find more info about changing the method caci uses to detect host down?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.
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
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
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]
[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]
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!
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!
Who is online
Users browsing this forum: No registered users and 1 guest