Blame SOURCES/net-snmp-5.5-storageUseNFS.patch

9a6c41
1125793 - [RHEL6] net-snmp "storageUseNFS 2" option does not report NFS mount as "Fixed Disks"
9a6c41
1193006 - net-snmp "storageUseNFS 2" option does not report NFS mount as "Fixed Disks"
9a6c41
9a6c41
commit e69e09f8c316cc1bf2456cdc837c487ba3b03837
9a6c41
Author: Jan Safranek <jsafranek@users.sourceforge.net>
9a6c41
Date:   Mon Jan 26 13:29:49 2015 +0100
9a6c41
9a6c41
    Fixed storageUseNFS functionality in hrStorageTable.
9a6c41
9a6c41
diff --git a/agent/mibgroup/host/hrh_storage.c b/agent/mibgroup/host/hrh_storage.c
9a6c41
index 96b7198..61ead75 100644
9a6c41
--- a/agent/mibgroup/host/hrh_storage.c
9a6c41
+++ b/agent/mibgroup/host/hrh_storage.c
9a6c41
@@ -384,7 +384,7 @@ really_try_next:
9a6c41
         return (u_char *) & long_return;
9a6c41
     case HRSTORE_TYPE:
9a6c41
         if (store_idx > NETSNMP_MEM_TYPE_MAX)
9a6c41
-            if (HRFS_entry->flags & NETSNMP_FS_FLAG_REMOTE )
9a6c41
+            if (HRFS_entry->flags & NETSNMP_FS_FLAG_REMOTE && storageUseNFS == 1)
9a6c41
                 storage_type_id[storage_type_len - 1] = 10;     /* Network Disk */
9a6c41
             else if (HRFS_entry->flags & NETSNMP_FS_FLAG_REMOVE )
9a6c41
                 storage_type_id[storage_type_len - 1] = 5;      /* Removable Disk */