Unable to pass on hrStorageSize

"Reno, Sheppy" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Due to net-snmp not returning data relating to reserved space on volumes we have decided to implement a change that will return hrStorageSize as used + available.  I'm running into two problems, the first of which is pretty major for this.  I have set up a test script using the pass feature that returns arbitrary information and works just fine when run from the command line.  It also tests properly through snmpget when I am able to get it running.  The problem I'm facing is that I get a seg fault when I attempt to setup the pass at hrStorageSize:

pass .1.3.6.1.2.1.25.2.3.1.5  /root/snmptest.pl

The seg fault occurs after adding the line to snmpd.conf when I attempt to restart snmpd.

The odd thing that I've found is that I'm able to add in a pass at either hrStorage or hrStorageSize.index:

pass .1.3.6.1.2.1.25.2.3.1 /root/snmptest.pl
pass  .1.3.6.1.2.1.25.2.3.1.5.32 /root/snmptest.pl

In this instance the script does return data, so I am assuming that it isn't a problem with the script itself.  Unfortunately, if I were to setup the pass at hrStorageSize it would be a fairly simple process of just overriding the value returned.  When using either hrStorage or hrStorageSize.index there is quite a bit of added complexity (the former being rewriting all of the other returns available from hrStorage and the latter being an excessive number of pass entries in snmpd.conf).  I've done quite a bit of searching relating to this, but so far I've come up empty.

Any ideas as to how to get the pass to work properly against hrStorageSize?

My second question is how does net-snmp determine the index values for volumes?  Assuming that I'm able to get hrStorageSize overridden I'll still need to figure out the name of the volume with just the index.   I'd prefer not to have to use an snmpget inside of the script itself if at all possible.  Is there a table available somewhere that lists the current index values by name?  Again, many hours of searching have resulted in no progress on this... I also took a look at an strace of snmpget but wasn't able to see where the index was being pulled from.

Thanks in advance,
Sheppy

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/

_______________________________________________
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.