<div dir="ltr"><div dir="ltr">Looks like this is all it should take to add GPFS support to net-snmp:<div><br></div><div><div>$ git diff</div><div>diff --git a/agent/mibgroup/hardware/fsys/fsys_mntent.c b/agent/mibgroup/hardware/fsys/fsys_mntent.c</div><div>index 62e2953..4950879 100644</div><div>--- a/agent/mibgroup/hardware/fsys/fsys_mntent.c</div><div>+++ b/agent/mibgroup/hardware/fsys/fsys_mntent.c</div><div>@@ -136,6 +136,7 @@ _fsys_type( char *typename )</div><div>     else if ( !strcmp(typename, MNTTYPE_TMPFS) ||</div><div>               !strcmp(typename, MNTTYPE_GFS) ||</div><div>               !strcmp(typename, MNTTYPE_GFS2) ||</div><div>+              !strcmp(typename, MNTTYPE_GPFS) ||</div><div>               !strcmp(typename, MNTTYPE_XFS) ||</div><div>               !strcmp(typename, MNTTYPE_JFS) ||</div><div>               !strcmp(typename, MNTTYPE_VXFS) ||</div><div>diff --git a/agent/mibgroup/hardware/fsys/mnttypes.h b/agent/mibgroup/hardware/fsys/mnttypes.h</div><div>index bb1b401..d3f0c60 100644</div><div>--- a/agent/mibgroup/hardware/fsys/mnttypes.h</div><div>+++ b/agent/mibgroup/hardware/fsys/mnttypes.h</div><div>@@ -121,6 +121,9 @@</div><div> #ifndef MNTTYPE_GFS2</div><div> #define MNTTYPE_GFS2     "gfs2"</div><div> #endif</div><div>+#ifndef MNTTYPE_GPFS</div><div>+#define MNTTYPE_GPFS     "gpfs"</div><div>+#endif</div><div> #ifndef MNTTYPE_XFS</div><div> #define MNTTYPE_XFS      "xfs"</div><div> #endif</div></div><div><br></div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Nov 7, 2018 at 12:20 PM Jan-Frode Myklebust <<a href="mailto:janfrode@tanso.net">janfrode@tanso.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Looking at the CHANGELOG for net-snmp, it seems it needs to know about each filesystem it's going to support, and I see no GPFS/mmfs. It has entries like:<div><br></div><div><div>      - Added simfs (OpenVZ filesystem) to hrStorageTable and hrFSTable.</div></div><div><div>      - Added CVFS (CentraVision File System) to hrStorageTable and</div></div><div><div>      - Added OCFS2 (Oracle Cluster FS) to hrStorageTable and hrFSTable</div></div><div><div>      - report gfs filesystems in hrStorageTable and hrFSTable.</div></div><div><br></div><div><br></div><div>and also it didn't understand filesystems larger than 8 TB before version 5.7.</div><div><br></div><div>I think your best option is to look at implementing the GPFS snmp agent agent <a href="https://www.ibm.com/support/knowledgecenter/en/STXKQY_5.0.2/com.ibm.spectrum.scale.v5r02.doc/bl1adv_snmp.htm" target="_blank">https://www.ibm.com/support/knowledgecenter/en/STXKQY_5.0.2/com.ibm.spectrum.scale.v5r02.doc/bl1adv_snmp.htm</a> -- and see if it provides the data you need -- but it most likely won't affect the hrStorage table.</div><div><br></div><div>And of course, please upgrade to something newer than v4.1.x. There's lots of improvements on monitoring in v4.2.3 and v5.x (but beware that v5 doesn't work with RHEL6).</div><div><br></div><div><br></div><div>  -jf</div></div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Nov 7, 2018 at 9:05 AM Henrik Cednert (Filmlance) <<a href="mailto:henrik.cednert@filmlance.se" target="_blank">henrik.cednert@filmlance.se</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div style="word-wrap:break-word;line-break:after-white-space">
Hello
<div><br>
</div>
<div>I will try my luck here. Trying to monitor capacity on our gpfs system via observium. For some reason hrStorageTable doesn’t pick up that gpfs mount point though. In diskTable it’s visible but I cannot use diskTable when monitoring via observium,
 has to be hrStorageTable (I was told by observium dev). Output of a few snmpwalks and more at the bottom. </div>
<div><br>
</div>
<div>Are there any obvious reasons for Centos 6.7 to not pick up a gpfs mountpoint in hrStorageTable? I’m not that snmp, nor gpfs, savvy so not sure if it’s even possible to in some way force it to include it in hrStorageTable…?</div>
<div><br>
</div>
<div>Apologies if this isn’t the list for questions like this. But feels like there has to  be one or two peeps here monitoring their systems here. =) </div>
<div><br>
</div>
<div><br>
</div>
<div>All these commands ran on that host:</div>
<div><br>
</div>
<div>df -h | grep ddnnas0<br>
/dev/ddnnas0          1.7P  913T  739T  56% /ddnnas0<br>
<br>
</div>
<div><br>
</div>
<div>mount | grep ddnnas0<br>
/dev/ddnnas0 on /ddnnas0 type gpfs (rw,relatime,mtime,nfssync,dev=ddnnas0)</div>
<div><br>
</div>
<div><br>
</div>
<div>snmpwalk -v2c -c secret localhost 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.10 = STRING: Swap space<br>
HOST-RESOURCES-MIB::hrStorageDescr.31 = STRING: /<br>
HOST-RESOURCES-MIB::hrStorageDescr.35 = STRING: /dev/shm<br>
HOST-RESOURCES-MIB::hrStorageDescr.36 = STRING: /boot<br>
HOST-RESOURCES-MIB::hrStorageDescr.37 = STRING: /boot-rcvy<br>
HOST-RESOURCES-MIB::hrStorageDescr.38 = STRING: /crash<br>
HOST-RESOURCES-MIB::hrStorageDescr.39 = STRING: /rcvy<br>
HOST-RESOURCES-MIB::hrStorageDescr.40 = STRING: /var<br>
HOST-RESOURCES-MIB::hrStorageDescr.41 = STRING: /var-rcvy</div>
<div><br>
</div>
<div><br>
</div>
<div>snmpwalk -v2c -c secret localhost dskPath<br>
UCD-SNMP-MIB::dskPath.1 = STRING: /ddnnas0<br>
UCD-SNMP-MIB::dskPath.2 = STRING: /<br>
<br>
<br>
yum list | grep net-snmp<br>
Failed to set locale, defaulting to C<br>
net-snmp.x86_64                          1:5.5-60.el6                   @base   <br>
net-snmp-libs.x86_64                     1:5.5-60.el6                   @base   <br>
net-snmp-perl.x86_64                     1:5.5-60.el6                   @base   <br>
net-snmp-utils.x86_64                    1:5.5-60.el6                   @base   <br>
net-snmp-devel.i686                      1:5.5-60.el6                   base    <br>
net-snmp-devel.x86_64                    1:5.5-60.el6                   base    <br>
net-snmp-libs.i686                       1:5.5-60.el6                   base    <br>
net-snmp-python.x86_64                   1:5.5-60.el6                   base  </div>
<div><br>
</div>
<div>
<div><br class="m_-8253697139326772216m_8397834906880966582m_5538155584688878306webkit-block-placeholder">
</div>
<div>Cheers and thanks</div>
<div>
<div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;word-wrap:break-word;line-break:after-white-space">
<div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;word-wrap:break-word;line-break:after-white-space">
<div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;word-wrap:break-word;line-break:after-white-space">
<div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;word-wrap:break-word;line-break:after-white-space">
<div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;word-wrap:break-word;line-break:after-white-space">
<div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;word-wrap:break-word;line-break:after-white-space">
<div dir="auto" style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;word-wrap:break-word;line-break:after-white-space">
<div dir="auto" style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;word-wrap:break-word;line-break:after-white-space">
<div dir="auto" style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;word-wrap:break-word;line-break:after-white-space">
<div dir="auto" style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;word-wrap:break-word;line-break:after-white-space">
<div dir="auto" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;word-wrap:break-word;line-break:after-white-space">
<span style="font-weight:normal"><br class="m_-8253697139326772216m_8397834906880966582m_5538155584688878306Apple-interchange-newline">
-- <br>
Henrik Cednert <span class="m_-8253697139326772216m_8397834906880966582m_5538155584688878306Apple-converted-space"> </span></span><b>/ </b><span class="m_-8253697139326772216m_8397834906880966582m_5538155584688878306Apple-converted-space"> </span>+ 46 704 71 89 54 <span class="m_-8253697139326772216m_8397834906880966582m_5538155584688878306Apple-converted-space"> </span><b>/</b>  CTO<span class="m_-8253697139326772216m_8397834906880966582m_5538155584688878306Apple-converted-space">  </span><b>/ </b> <b>Filmlance</b><br>
<font color="#6e6e6e" style="font-weight:normal"><span style="font-size:8px">Disclaimer, the hideous bs disclaimer at the bottom </span><span style="font-size:8px">is forced, sorry. ¯\_(ツ)_/¯ </span></font></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
</div>
<p><b><span lang="EN-GB" style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#666666">Disclaimer</span></b><span lang="EN-US"><u></u><u></u></span></p>
<br>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:8.0pt;font-family:"Verdana",sans-serif;color:#666666">The information contained in this communication from the sender is confidential. It is intended solely for use by the recipient
 and others authorized to receive it. If you are not the recipient, you are hereby notified that any disclosure, copying, distribution or
<span class="m_-8253697139326772216m_8397834906880966582m_5538155584688878306GramE">taking action</span> in relation of the contents of this information is strictly prohibited and may be unlawful.</span><span lang="EN-US"><u></u><u></u></span></p>
</div>

_______________________________________________<br>
gpfsug-discuss mailing list<br>
gpfsug-discuss at <a href="http://spectrumscale.org" rel="noreferrer" target="_blank">spectrumscale.org</a><br>
<a href="http://gpfsug.org/mailman/listinfo/gpfsug-discuss" rel="noreferrer" target="_blank">http://gpfsug.org/mailman/listinfo/gpfsug-discuss</a><br>
</blockquote></div>
</blockquote></div>