Re: hrStorage doesn't show my partitions

This is a discussion on Re: hrStorage doesn't show my partitions within the SNMP Users forums, part of the Networking and Network Related category; --===============1273490740== Content-Type: multipart/alternative; boundary="----=_Part_31213_16180976.1188909917870" ------=_Part_31213_16180976.1188909917870 Content-Type: text/plain; charset=ISO-8859-1 ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-04-2007
Daniel van Ham Colchete
 
Posts: n/a
Default Re: hrStorage doesn't show my partitions

--===============1273490740==
Content-Type: multipart/alternative;
boundary="----=_Part_31213_16180976.1188909917870"

------=_Part_31213_16180976.1188909917870
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi Thomas,

This is an old server:
archer ~ # snmpwalk -V
NET-SNMP version: 5.4
archer ~ # snmpwalk -v3 -a MD5 -A '<A PASSWORD>' -l authNoPriv -u '<AN
USER>' <A HOST> hrStorageDescr
HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: Physical memory
HOST-RESOURCES-MIB::hrStorageDescr.3 = STRING: Virtual memory
HOST-RESOURCES-MIB::hrStorageDescr.6 = STRING: Memory buffers
HOST-RESOURCES-MIB::hrStorageDescr.7 = STRING: Cached memory
HOST-RESOURCES-MIB::hrStorageDescr.8 = STRING: Shared memory
HOST-RESOURCES-MIB::hrStorageDescr.10 = STRING: Swap space
HOST-RESOURCES-MIB::hrStorageDescr.31 = STRING: /
HOST-RESOURCES-MIB::hrStorageDescr.32 = STRING: /sys
HOST-RESOURCES-MIB::hrStorageDescr.33 = STRING: /proc/bus/usb
HOST-RESOURCES-MIB::hrStorageDescr.34 = STRING: /proc/sys/fs/binfmt_misc
HOST-RESOURCES-MIB::hrStorageDescr.35 = STRING: /proc/fs/nfs
HOST-RESOURCES-MIB::hrStorageDescr.36 = STRING: /var/lib/nfs/rpc_pipefs

And this is a new one:
load0-1 ~ # snmpwalk -V
NET-SNMP version: 5.4
load0-1 ~ # snmpwalk -v3 -a MD5 -A '<A PASSWORD>' -l authNoPriv -u '<AN
USER>' <A HOST> hrStorageDescr
HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: Physical memory
HOST-RESOURCES-MIB::hrStorageDescr.3 = STRING: Virtual memory
HOST-RESOURCES-MIB::hrStorageDescr.6 = STRING: Memory buffers
HOST-RESOURCES-MIB::hrStorageDescr.7 = STRING: Cached memory
HOST-RESOURCES-MIB::hrStorageDescr.8 = STRING: Shared memory
HOST-RESOURCES-MIB::hrStorageDescr.10 = STRING: Swap space
load0-1 ~ #

Very very strange. Surely both of them have the very same version. There
must be something wrong, something I didn't do right on the second time
because both servers share the same server version.

When I strace'd snmpd on both servers while doing the snmpwalk, the
differences are:
1 - The old one tries do open /etc/mtab, the new one doesn't.
2 - The new one tries to statfs("") while the old one will do statfs("/"),
etc...

Because I need all the new servers to have exactly the same versions always
and because I did not deployed my distributed upgrade system yet, I cannot
upgrade net-snmp right now unfortunately.

Any other tip?

Best regards,
Daniel Colchete

On 9/4/07, Thomas Anders <thomas.anders@blue-cable.de> wrote:
>
> Daniel van Ham Colchete wrote:
> > I'm using net-snmp+cacti to monitor some servers I have. I just finished
> > installing 10 new ones, but hrStorage will not report my disks to me at
> > those 10 new servers.
> >
> > With an old server, when I 'snmpwalk|grep hrStorageDescr' there I have:
> > HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: Physical memory
> > HOST-RESOURCES-MIB::hrStorageDescr.3 = STRING: Virtual memory
> > HOST-RESOURCES-MIB::hrStorageDescr.6 = STRING: Memory buffers
> > HOST-RESOURCES-MIB::hrStorageDescr.7 = STRING: Cached memory
> > HOST-RESOURCES-MIB::hrStorageDescr.8 = STRING: Shared memory
> > HOST-RESOURCES-MIB::hrStorageDescr.10 = STRING: Swap space
> > HOST-RESOURCES-MIB::hrStorageDescr.31 = STRING: /
> > HOST-RESOURCES-MIB::hrStorageDescr.32 = STRING: /sys
> > HOST-RESOURCES-MIB::hrStorageDescr.33 = STRING: /proc/bus/usb
> > HOST-RESOURCES-MIB::hrStorageDescr.34 = STRING: /proc/sys/fs/binfmt_misc
> > HOST-RESOURCES-MIB::hrStorageDescr.35 = STRING: /proc/fs/nfs
> > HOST-RESOURCES-MIB::hrStorageDescr.36 = STRING: /var/lib/nfs/rpc_pipefs
> >
> > But with the new ones:
> > HOST-RESOURCES-MIB:: hrStorageDescr.1 = STRING: Physical memory
> > HOST-RESOURCES-MIB::hrStorageDescr.3 = STRING: Virtual memory
> > HOST-RESOURCES-MIB::hrStorageDescr.6 = STRING: Memory buffers
> > HOST-RESOURCES-MIB::hrStorageDescr.7 = STRING: Cached memory
> > HOST-RESOURCES-MIB::hrStorageDescr.8 = STRING: Shared memory
> > HOST-RESOURCES-MIB::hrStorageDescr.10 = STRING: Swap space
> >
> > All servers are using net-snmp version 5.4. All of them are Gentoo

> linuxes.
>
> I take it that the "old servers" are *not* running 5.4? Because at least
> the /sys and /proc/* entries are expected to get skipped because they're
> pseudo file systems.
>
> But at least the entry for "/" should be there. FWIW, it works fine for
> me on SuSE Linux 10.2 with 5.4.x SVN. Can you try with 5.4.1?
>
>
> +Thomas
>
> --
> Thomas Anders (thomas.anders at blue-cable.de)
>


------=_Part_31213_16180976.1188909917870
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi Thomas,<br><br>This is an old server:<br>archer ~ # snmpwalk -V<br>NET-SNMP version: 5.4<br>archer ~ # snmpwalk -v3 -a MD5 -A '&lt;A PASSWORD&gt;' -l authNoPriv -u '&lt;AN USER&gt;'&nbsp; &lt;A HOST&gt; hrStorageDescr
<br>HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: Physical memory<br>HOST-RESOURCES-MIB::hrStorageDescr.3 = STRING: Virtual memory<br>HOST-RESOURCES-MIB::hrStorageDescr.6 = STRING: Memory buffers<br>HOST-RESOURCES-MIB::hrStorageDescr.7
= STRING: Cached memory<br>HOST-RESOURCES-MIB::hrStorageDescr.8 = STRING: Shared memory<br>HOST-RESOURCES-MIB::hrStorageDescr.10 = STRING: Swap space<br>HOST-RESOURCES-MIB::hrStorageDescr.31 = STRING: /<br>HOST-RESOURCES-MIB::
hrStorageDescr.32 = STRING: /sys<br>HOST-RESOURCES-MIB::hrStorageDescr.33 = STRING: /proc/bus/usb<br>HOST-RESOURCES-MIB::hrStorageDescr.34 = STRING: /proc/sys/fs/binfmt_misc<br>HOST-RESOURCES-MIB::hrStorageDescr.35 = STRING: /proc/fs/nfs
<br>HOST-RESOURCES-MIB::hrStorageDescr.36 = STRING: /var/lib/nfs/rpc_pipefs<br><br>And this is a new one:<br>load0-1 ~ # snmpwalk -V<br>NET-SNMP version: 5.4<br>load0-1 ~ # snmpwalk -v3 -a MD5 -A '&lt;A PASSWORD&gt;' -l authNoPriv -u '&lt;AN USER&gt;'&nbsp; &lt;A HOST&gt; hrStorageDescr
<br>HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: Physical memory<br>HOST-RESOURCES-MIB::hrStorageDescr.3 = STRING: Virtual memory<br>HOST-RESOURCES-MIB::hrStorageDescr.6 = STRING: Memory buffers<br>HOST-RESOURCES-MIB::hrStorageDescr.7
= STRING: Cached memory<br>HOST-RESOURCES-MIB::hrStorageDescr.8 = STRING: Shared memory<br>HOST-RESOURCES-MIB::hrStorageDescr.10 = STRING: Swap space<br>load0-1 ~ #<br><br>Very very strange. Surely both of them have the very same version. There must be something wrong, something I didn't do right on the second time because both servers share the same server version.
<br><br>When I strace'd snmpd on both servers while doing the snmpwalk, the differences are:<br>1 - The old one tries do open /etc/mtab, the new one doesn't.<br>2 - The new one tries to statfs(&quot;&quot;) while the old one will do statfs(&quot;/&quot;), etc...
<br><br>Because I need all the new servers to have exactly the same versions always and because I did not deployed my distributed upgrade system yet, I cannot upgrade net-snmp right now unfortunately. <br><br>Any other tip?
<br><br>Best regards,<br>Daniel Colchete<br><br><div><span class="gmail_quote">On 9/4/07, <b class="gmail_sendername">Thomas Anders</b> &lt;<a href="mailto:thomas.anders@blue-cable.de">thomas.anders@blue-cable.de</a>&gt; wrote:
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Daniel van Ham Colchete wrote:<br>&gt; I'm using net-snmp+cacti to monitor some servers I have. I just finished
<br>&gt; installing 10 new ones, but hrStorage will not report my disks to me at<br>&gt; those 10 new servers.<br>&gt;<br>&gt; With an old server, when I 'snmpwalk|grep hrStorageDescr' there I have:<br>&gt; HOST-RESOURCES-MIB::
hrStorageDescr.1 = STRING: Physical memory<br>&gt; HOST-RESOURCES-MIB::hrStorageDescr.3 = STRING: Virtual memory<br>&gt; HOST-RESOURCES-MIB::hrStorageDescr.6 = STRING: Memory buffers<br>&gt; HOST-RESOURCES-MIB::hrStorageDescr.7
= STRING: Cached memory<br>&gt; HOST-RESOURCES-MIB::hrStorageDescr.8 = STRING: Shared memory<br>&gt; HOST-RESOURCES-MIB::hrStorageDescr.10 = STRING: Swap space<br>&gt; HOST-RESOURCES-MIB::hrStorageDescr.31 = STRING: /<br>
&gt; HOST-RESOURCES-MIB::hrStorageDescr.32 = STRING: /sys<br>&gt; HOST-RESOURCES-MIB::hrStorageDescr.33 = STRING: /proc/bus/usb<br>&gt; HOST-RESOURCES-MIB::hrStorageDescr.34 = STRING: /proc/sys/fs/binfmt_misc<br>&gt; HOST-RESOURCES-MIB::
hrStorageDescr.35 = STRING: /proc/fs/nfs<br>&gt; HOST-RESOURCES-MIB::hrStorageDescr.36 = STRING: /var/lib/nfs/rpc_pipefs<br>&gt;<br>&gt; But with the new ones:<br>&gt; HOST-RESOURCES-MIB:: hrStorageDescr.1 = STRING: Physical memory
<br>&gt; HOST-RESOURCES-MIB::hrStorageDescr.3 = STRING: Virtual memory<br>&gt; HOST-RESOURCES-MIB::hrStorageDescr.6 = STRING: Memory buffers<br>&gt; HOST-RESOURCES-MIB::hrStorageDescr.7 = STRING: Cached memory<br>&gt; HOST-RESOURCES-MIB::
hrStorageDescr.8 = STRING: Shared memory<br>&gt; HOST-RESOURCES-MIB::hrStorageDescr.10 = STRING: Swap space<br>&gt;<br>&gt; All servers are using net-snmp version 5.4. All of them are Gentoo linuxes.<br><br>I take it that the &quot;old servers&quot; are *not* running
5.4? Because at least<br>the /sys and /proc/* entries are expected to get skipped because they're<br>pseudo file systems.<br><br>But at least the entry for &quot;/&quot; should be there. FWIW, it works fine for<br>me on SuSE Linux
10.2 with 5.4.x SVN. Can you try with 5.4.1?<br><br><br>+Thomas<br><br>--<br>Thomas Anders (thomas.anders at <a href="http://blue-cable.de">blue-cable.de</a>)<br></blockquote></div><br>

------=_Part_31213_16180976.1188909917870--


--===============1273490740==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
--===============1273490740==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users

--===============1273490740==--

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:31 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0