*** 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
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_
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
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
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
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
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
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
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
+ */
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
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.
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:
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
** 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
14 matches
Mail list logo