[collectd] snmp plugin and "Table true" in 4.4.1

Florian Forster octo at verplant.org
Thu Aug 28 08:19:43 CEST 2008


Hi Sergey,

On Thu, Aug 28, 2008 at 10:54:31AM +0500, Sergey wrote:
> Difference of the switchboard is very long name:
> 
> IF-MIB::ifDescr.1 = STRING: Nortel Networks Business Policy Switch 2000 Ethernet Switch Module - Port 1
> IF-MIB::ifDescr.2 = STRING: Nortel Networks Business Policy Switch 2000 Ethernet Switch Module - Port 2
> <skip>
> IF-MIB::ifDescr.24 = STRING: Nortel Networks Business Policy Switch 2000 Ethernet Switch Module - Port 24
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^0
> Can it be a problem ?

Yes, this is very likely the problem: The maximum length of each part of
an ``identifier'', i. e. hostname, plugin, type and both *-instances, is
63 characters (it's one short of 64, because there has to be a termina-
ting null byte). The `^'s above shows you what part of the string is
actually used.

You could check if this switch can return IF-MIB::ifName, that's often a
lot shorter. Also, with many switches you can set the description, have
you checked that? Last but not least, some switches allow you to set
IF-MIB::ifAlias, maybe that works for you..

As a last resort, you could increase DATA_MAX_NAME_LEN in src/plugin.h.
I'll think about the consequences, maybe I'll increase that name in a
future version..

Regards,
-octo
-- 
Florian octo Forster
Hacker in training
GnuPG: 0x91523C3D
http://verplant.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20080828/42f7f772/attachment.pgp 


More information about the collectd mailing list