ZABBIX Forums  

Go Back   ZABBIX Forums > Zabbix Discussions and Feedback > Zabbix Help

Reply
 
Thread Tools Display Modes
  #1  
Old 13-09-2007, 15:51
den_crane den_crane is offline
Senior Member
 
Join Date: Feb 2006
Location: Russia
Posts: 270
Send a message via ICQ to den_crane
Default SNMP error in packet. Reason: (noSuchName) There is no such variable name in this MIB

In Zabbix Log:
015399:20070913:164240 SNMP error in packet. Reason: (noSuchName) There is no such variable name in this MIB.

Code:
015399:20070913:164240 SNMP error [(noSuchName) There is no such variable name in this MIB.]
015390:20070913:164324 SNMP error in packet. Reason: (noSuchName) There is no such variable name in this MIB.

015390:20070913:164324 SNMP error [(noSuchName) There is no such variable name in this MIB.]
015361:20070913:164345 SNMP error in packet. Reason: (noSuchName) There is no such variable name in this MIB.

015361:20070913:164345 SNMP error [(noSuchName) There is no such variable name in this MIB.]
How find what item is wrong? (I use only numeric OIDs)

SELECT count(*) FROM `items` where `error` <>'';
count(*)
0

zabbix 1.1.7
Reply With Quote
  #2  
Old 14-09-2007, 02:06
Markus Markus is offline
Member
 
Join Date: Jan 2006
Location: Melbourne, Australia
Posts: 39
Default

What is the OID?
Have you tried to fetch the values using the 'snmpget' or 'snmpwalk' commands from the net-snmp tools?

Markus
Reply With Quote
  #3  
Old 14-09-2007, 07:53
den_crane den_crane is offline
Senior Member
 
Join Date: Feb 2006
Location: Russia
Posts: 270
Send a message via ICQ to den_crane
Default

Quote:
Originally Posted by Markus
What is the OID?
Have you tried to fetch the values using the 'snmpget' or 'snmpwalk' commands from the net-snmp tools?

Markus
In zabbix I have ~1000 SNMP items on 50 hosts, I don't know which item is wrong.

Last edited by den_crane; 14-09-2007 at 09:14.
Reply With Quote
  #4  
Old 14-09-2007, 08:36
den_crane den_crane is offline
Senior Member
 
Join Date: Feb 2006
Location: Russia
Posts: 270
Send a message via ICQ to den_crane
Default

Solution is:

SELECT *
FROM items
WHERE STATUS =3
Reply With Quote
  #5  
Old 14-09-2007, 19:38
JoelG JoelG is offline
Member
 
Join Date: Aug 2007
Location: McLean, VA
Posts: 32
Default Best Solution to this problem

The following code change to /src/zabbix_server/poller/checks_snmp.c will provide the needed info in the log file:

Code:
if (status == STAT_SUCCESS)
{
  zabbix_log( LOG_LEVEL_WARNING, "SNMP error in packet. <%s:%s> Reason: %s\n", item->host_ip, item->snmp_oid,
  snmp_errstring(response->errstat));
  if(response->errstat == SNMP_ERR_NOSUCHNAME)
   {
     zbx_snprintf(error,sizeof(error),"SNMP error <%s:%s> [%s]", item->host_ip, item->snmp_oid,
     snmp_errstring(response->errstat));

     zabbix_log( LOG_LEVEL_ERR, "%s", error);
     SET_MSG_RESULT(value, strdup(error));

     ret=NOTSUPPORTED;
   }
  else
   {
     zbx_snprintf(error,sizeof(error),"SNMP error <%s:%s> [%s]", item->host_ip, item->snmp_oid,
     snmp_errstring(response->errstat));

     zabbix_log( LOG_LEVEL_ERR, "%s", error);
     SET_MSG_RESULT(value, strdup(error));

     ret=NOTSUPPORTED;
  }
}
The only lines that are changed are the zbx_snprintf, with the <...> and parameters added (and the first zabbix_log().

This REALLY needs to be incorporated into the code base. The addition of the host name (ip) and oid will allow you to actually figure out the problem.
Reply With Quote
  #6  
Old 20-05-2008, 21:26
ptietjens ptietjens is offline
Junior Member
 
Join Date: May 2008
Posts: 5
Default Agree

That addition to the code is badly needed. There are too many objects to be so vague about which item/trigger/etc is causing the problem!
Reply With Quote
  #7  
Old 13-06-2008, 15:08
just2blue4u just2blue4u is offline
Senior Member
 
Join Date: Apr 2006
Location: Germany
Posts: 344
Send a message via ICQ to just2blue4u Send a message via AIM to just2blue4u
Default

thanks for this patch!
I modified it even more :
Code:
zbx_snprintf(error,sizeof(error),"SNMP error at host <%s> for OID <%s> [%s]", item->host_ip, item->snmp_oid,
                                        snmp_errstring(response->errstat));
But this line in my log makes me a bit worrying:
Quote:
netsnmp_assert pss->s_snmp_errno != (-11) failed snmp_api.c:3124 snmp_build()
What's that?

Just for my information:
Why is there the it-then-else determination?
I don't find any differense between then and else block...
__________________
Big ZABBIX is watching you!
(... and my 48 hosts, 4513 items, 1280 triggers via zabbix v1.6 on CentOS 5.0)
Reply With Quote
  #8  
Old 14-06-2008, 12:14
Alexei Alexei is offline
Zabbix developer, product manager
 
Join Date: Sep 2004
Location: Riga, Latvia
Posts: 5,612
Default

I believe this is a problem of underlying net-snmp library. You may try to use different version of net-snmp-dev.
__________________
Alexei Vladishev
Creator of Zabbix, Product manager
New York | Tokyo | Riga
My Twitter
Reply With Quote
  #9  
Old 16-06-2008, 14:45
just2blue4u just2blue4u is offline
Senior Member
 
Join Date: Apr 2006
Location: Germany
Posts: 344
Send a message via ICQ to just2blue4u Send a message via AIM to just2blue4u
Default

Damn, my version 5.3.1-15.fc6 ist the latest for my OS Fedora Core 6.

So i'll just ignore that error as it seems to be a non-critical one :-/


If someone knows how to make yum install a more recent version, let me know...
__________________
Big ZABBIX is watching you!
(... and my 48 hosts, 4513 items, 1280 triggers via zabbix v1.6 on CentOS 5.0)
Reply With Quote
  #10  
Old 01-07-2008, 16:39
CeeEss CeeEss is offline
Senior Member
Zabbix certified specialist
 
Join Date: Nov 2007
Location: London, UK
Posts: 103
Default update re: SNMP error in packet. Reason: (noSuchName)

Zabbix 1.5.3 CentOS5-x64

Taking Alexei's suggestion, I upgraded net-snmp-[everything] from 5.3.1-19 to 5.3.1-24 and recompiled server but there is no change. Still getting loads of noSuchName errors. The patch for checks_snmp.c for 1.4.x worked great - then i upgraded to 1.5.3. Cannot apply these patches to 1.5.3 as the code is different and i'm not skilled enough to dissect it. A previous message made the very valid point that the patches should have made their way into a >1.4.x version. Can we have a patched checks_snmp.c with these mods? Should be a snip for a Zabbix developer!

thanks

PS: fc6 is stuck at 5.3.1-15.fc8.i386.rpm (see pbone), whereas fc9 is as cutting edge as it gets with 5.4.1-7.fc8.i386.rpm. If you need the very newest or a newer net-snmp for fc6, you'll have to compile from source. However, no other OS has net-snmp RPMs at v5.4.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 11:54.