extending snmpd.conf defaults to type string

ntwrkd <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hello List,
I have extended my snmpd.conf to export some custom application data. :
exec 1.3.6.1.4.1.2008.2600.100.1.1   hibernate_QueryCacheHitCount_vm1
/bin/cat /var/log/applogs/jvmstats/hibernate_QueryCacheHitCount

The value is an INT but by default when I poll it using snmpwalk the
data type defaults to a string:
[root@myserver]# snmpwalk -v2c -c mytargethost.mydomain.com
1.3.6.1.4.1.2008.2600.100.1.1

SNMPv2-SMI::enterprises.2008.2600.100.1.1.1.1 = INTEGER: 1
SNMPv2-SMI::enterprises.2008.2600.100.1.1.2.1 = STRING:
"hibernate_QueryCacheHitCount_vm1"
SNMPv2-SMI::enterprises.2008.2600.100.1.1.3.1 = STRING: "/bin/cat
/nfs/applogs/jvmstats/hibernate_QueryCacheHitCount_vm1"
SNMPv2-SMI::enterprises.2008.2600.100.1.1.100.1 = INTEGER: 0
SNMPv2-SMI::enterprises.2008.2600.100.1.1.101.1 = STRING: "18175"
SNMPv2-SMI::enterprises.2008.2600.100.1.1.102.1 = INTEGER: 0

SNMPv2-SMI::enterprises.2008.2600.100.1.1.101.1 = STRING: "18175" is
the data I am interested in.

I have a few questions about this:
1) How can I force the data in question to an INTEGER or GAUGE by
using the extending snmpd.conf method
2) Why does it append 4 more octets after the
1.3.6.1.4.1.2008.2600.100.1.1 that I have defined? Is this behavior
documented?

The reason for this is the application consuming this data freaks out
when it tries to interpret a number as a string (I know thats bad
design, but its not my app)
Thanks in advance

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.