[Bug 1842924] Re: hrStorage Not Available In 5.7.3+dfsg-1ubuntu4.3

2019-09-06 Thread Joseph Gooch
*** This bug is a duplicate of bug 1843036 *** https://bugs.launchpad.net/bugs/1843036 Dev is apparently happening on this ticket FYI https://bugs.launchpad.net/ubuntu/+source/net-snmp/+bug/1843036 ** This bug has been marked a duplicate of bug 1843036 [regression] SNMP missing disks in h

[Bug 1842924] Re: hrStorage Not Available In 5.7.3+dfsg-1ubuntu4.3

2019-09-06 Thread Joseph Gooch
Patch provided on upstream bugreport https://sourceforge.net/p/net-snmp/patches/1350/ Here's the quilt version of the chatter... ** Patch added: "fix_hrstorage_after_autofs.patch" https://bugs.launchpad.net/ubuntu/+source/net-snmp/+bug/1842924/+attachment/5287144/+files/fix_hrstorage_after_

[Bug 1842924] Re: hrStorage Not Available In 5.7.3+dfsg-1ubuntu4.3

2019-09-06 Thread David Ford
Could be wrong...but is this what you are looking for +Index: net-snmp-5.7.3+dfsg/include/net-snmp/agent/hardware/fsys.h +=== +--- net-snmp-5.7.3+dfsg.orig/include/net-snmp/agent/hardware/fsys.h net-snmp-5.7.3+dfsg/include/net-sn

[Bug 1842924] Re: hrStorage Not Available In 5.7.3+dfsg-1ubuntu4.3

2019-09-06 Thread Joseph Gooch
Or not, I think I found it. This line: /* Skip AUTOFS entries */ if (entry->type == NETSNMP_FS_TYPE_AUTOFS) continue; Looks really innocuous until you run it through gcc -E: if (entry->type == 7 | 0x1000 | 0x2000) continue; At which point you reali

[Bug 1842924] Re: hrStorage Not Available In 5.7.3+dfsg-1ubuntu4.3

2019-09-06 Thread Joseph Gooch
I removed #if HAVE_GETFSSTAT And #endif /* HAVE_GETFSSTAT */ Based on looking at the Check_HR_FileSys_NFS function earlier in the file, it was structured like: #if HAVE_GETFSSTAT something that looks nothing like the autofs function above with different constants #else something that looks

[Bug 1842924] Re: hrStorage Not Available In 5.7.3+dfsg-1ubuntu4.3

2019-09-06 Thread Peter Newman
Which I guess in their style would be (and I suspect this is probably what you tried): /* This function checks whether current file system is an AutoFs * HRFS_entry must be valid prior to calling this function * return 1 if AutoFs, 0 otherwise */ int Check_HR_FileSys_AutoFs(void) { #if HAVE_GET

[Bug 1842924] Re: hrStorage Not Available In 5.7.3+dfsg-1ubuntu4.3

2019-09-06 Thread Peter Newman
I don't know how you changed it Joseph, but shouldn't it be (entirely untested): /* This function checks whether current file system is an AutoFs * HRFS_entry must be valid prior to calling this function * return 1 if AutoFs, 0 otherwise */ int Check_HR_FileSys_AutoFs(void) { #if HAVE_GETFSSTAT

[Bug 1842924] Re: hrStorage Not Available In 5.7.3+dfsg-1ubuntu4.3

2019-09-05 Thread Joseph Gooch
While that's wrong it must be more than that because changing it didn't fix it. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1842924 Title: hrStorage Not Available In 5.7.3+dfsg-1ubuntu4.3 To mana

[Bug 1842924] Re: hrStorage Not Available In 5.7.3+dfsg-1ubuntu4.3

2019-09-05 Thread Joseph Gooch
This part looks questionable: @@ -839,6 +839,27 @@ Check_HR_FileSys_NFS (void) return 0; /* no NFS file system */ } +/* This function checks whether current file system is an AutoFs + * HRFS_entry must be valid prior to calling this function + * return 1 if AutoFs, 0 otherwise + */

[Bug 1842924] Re: hrStorage Not Available In 5.7.3+dfsg-1ubuntu4.3

2019-09-05 Thread Joseph Gooch
Some behavior seen here, on Xenial but also on Bionic @ 5.7.3+dfsg-1.8ubuntu3.2 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1842924 Title: hrStorage Not Available In 5.7.3+dfsg-1ubuntu4.3 To mana

[Bug 1842924] Re: hrStorage Not Available In 5.7.3+dfsg-1ubuntu4.3

2019-09-05 Thread David Ford
Ignore the comment above, looks like something in the AutoFS patch is detecting physical file systems as autofs We are running Ubuntu 16.04 and does not work on both 4.4 and 4.15 Kernel -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 1842924] Re: hrStorage Not Available In 5.7.3+dfsg-1ubuntu4.3

2019-09-05 Thread David Ford
Adding view systemonly included .1.3.6.1.2.1.25.2 To /etc/snmp/snmp.conf allows for some storage devices to be returned HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: Physical memory HOST-RESOURCES-MIB::hrStorageDescr.3 = STRING: Virtual memory HOST-RESOURCES-MIB::hrStorageDescr.6 = STRING:

[Bug 1842924] Re: hrStorage Not Available In 5.7.3+dfsg-1ubuntu4.3

2019-09-05 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: net-snmp (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1842924 Title: h

[Bug 1842924] Re: hrStorage Not Available In 5.7.3+dfsg-1ubuntu4.3

2019-09-05 Thread David Ford
** Summary changed: - hrStorageDesc Not Available In 5.7.3+dfsg-1ubuntu4.3 + hrStorage Not Available In 5.7.3+dfsg-1ubuntu4.3 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1842924 Title: hrStorage