No SNMP DATA - snmp error

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

Moderators: Developers, Moderators

Post Reply
silviotrolley
Posts: 1
Joined: Wed Aug 09, 2006 8:50 am

No SNMP DATA - snmp error

Post by silviotrolley »

Hi,
i've installed cacti on fedora core 5.

when i add a new device the snmp return this error :
core-e (core-e) - hostname
SNMP Information
SNMP error

i've tried the snmpget and snmpwalk from the command line and they works fine.

someone can help me pls ?

tks in advance
zinzen
Posts: 1
Joined: Wed Aug 09, 2006 9:48 am

Same problem

Post by zinzen »

Hi,
I try to use cacti to get snmp information from a cisco catalist 2950.
From cacti I receive snmp error. When use snmpwalk i get all information without problem, when use php script in cli, receive all snmp information. this is a php script launched from cli.

<?php
$data=snmprealwalk('192.168.0.4:161','public',null);
print_r($data);
?>


any suggestions?

tanks
Fabio
cata
Posts: 3
Joined: Mon Aug 14, 2006 5:30 am
Location: Romania
Contact:

Post by cata »

Hi,

I also have a similar problem. I have Cacti 0.8.6h installed on a Suse 10.1 machine.

I am monitoring some servers. I have no problem with most of the servers except with a Debian Sarge server.

snmpwalk queries are ok from the command line but from Cacti shows "SNMP Error" message.

I use snmp version 1.
In the log file i see this error:
status_last_error = 'Host did not respond to SNMP'
Can anyone give an advice on this problem?

Thanks
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Hi

what "Downed Host Detection" method do you use ?
It's configured in Settings -> Poller -> Poller Host Availability Settings

Also, can you run this SNMP query :

Code: Select all

$ snmpwalk -v 1 -c public xx.xx.xx.xx .1.3.6.1.2.1.1.3.0
SNMPv2-MIB::sysUpTime.0 = Timeticks: (27202424) 3 days, 3:33:44.24
When using SNMP as "Downed Host Detection" method, if this OID doesn't return anything the host is marked as down.
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
cata
Posts: 3
Joined: Mon Aug 14, 2006 5:30 am
Location: Romania
Contact:

Post by cata »

Hi,

Thanks for the fast reply.
I'm using Ping and SNMP with UDP ping.

Code: Select all

# snmpwalk -v 1 -c zzz xx.xx.xx.xx  .1.3.6.1.2.1.1.3.0
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (1480700) 4:06:47.00
What i think is that the cacti_snmp_get function has something that my server does not recognize and it answer "". But I don't know how to fix it.

[/code]
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

cata wrote:I'm using Ping and SNMP with UDP ping.
Can you try with "SNMP" only ?
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
cata
Posts: 3
Joined: Mon Aug 14, 2006 5:30 am
Location: Romania
Contact:

Post by cata »

I tried but still the host appear to be down.

What I have also noticed is that I get no reply in Snmp query interface.

If I

Code: Select all

snmpwalk -v1 -c zzzz xx.xx.xx.xx .1.3.6.1.2.1.2.2.1.1
End of MIB
On the other servers I have reply like this:

Code: Select all

snmpwalk -v1 -c zzz yy.yy.yy.yy  .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
I'm not sure if it the same thing but I thought it is good add this observation.
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Can you try with a minimalistic snmpd.conf ?

You can check the howto in my signature.
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests