RE: Unable to pass on hrStorageSize

"Reno, Sheppy" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Dave,

Thanks for your response.  I was able to get snmpd started properly by modifying the priority for the pass.  A look at the log file showed that both the MIB and snmpd.conf were trying to register the OID at the same time.

Sorry for not including the system information before, this is being put together for a variety of boxes with various versions for both the OS and net-snmp itself.  However, my text box is RHEL 5.8 with Net-SNMP 5.7.1:
# uname -a && snmpd -v
Linux MST-R7-DEV 2.6.18-308.el5 #1 SMP Fri Jan 27 17:17:51 EST 2012 x86_64 x86_64 x86_64 GNU/Linux

NET-SNMP version:  5.7.1

With that said, we had considered modifying the source directly, but discarded this idea as it would require recompiling on upwards of 400 machines that are managed by various different groups.  If I'm mistaken and this can be changed without needing to recompile I would definitely reconsider going this route instead.  Is it possible to make the change without recompiling?

Thanks again,
Sheppy

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Dave Shield
Sent: Friday, July 20, 2012 4:05 PM
To: Reno, Sheppy
Cc: [email protected]
Subject: Re: Unable to pass on hrStorageSize

On 14 July 2012 17:15, Reno, Sheppy <[email protected]> wrote:
> 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.

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

Quite honestly, I'd be inclined not to tackle it that way.
Instead, why not look at tweaking the code to amend the value
that's being returned?

You don't say which version of the agent you're using, or what O/S
you are using,  but have a look at
    agent/mibgroup/host/hr_filesys.c

(or possibly mibgroup/hardware/filesys/)


That would also avoid your second problem:
> My second question is how does net-snmp determine the index values for
> volumes?... I also took a look at an strace of snmpget but wasn't able to see
> where the index was being pulled from.

That's handled by the agent (not snmpget)

Dave

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