equal
deleted
inserted
replaced
1 This patch taken from the net-snmp community fixes an issue related to mismatch of the |
|
2 indices in the host resources tables for monitoring disk storage. |
|
3 |
|
4 The details for the upstream bug/patch are given below. |
|
5 BUG: 1557372: Realign hrFSStorageIndex with hrStorageTable |
|
6 http://net-snmp.svn.sourceforge.net/viewvc/net-snmp?view=revision&revision=17138 |
|
7 |
|
8 --- net-snmp-5.4.1.old/agent/mibgroup/host/hr_filesys.c 2014-03-25 07:06:17.172039070 -0400 |
|
9 +++ net-snmp-5.4.1/agent/mibgroup/host/hr_filesys.c 2014-03-25 07:10:05.467869740 -0400 |
|
10 @@ -4,6 +4,9 @@ |
|
11 */ |
|
12 |
|
13 #include <net-snmp/net-snmp-config.h> |
|
14 +#include <net-snmp/net-snmp-includes.h> |
|
15 +#include <net-snmp/agent/net-snmp-agent-includes.h> |
|
16 +#include <net-snmp/agent/hardware/memory.h> |
|
17 #include "host_res.h" |
|
18 #include "hr_filesys.h" |
|
19 #include "hr_storage.h" |
|
20 @@ -546,7 +549,7 @@ |
|
21 long_return = 2; /* others probably aren't */ |
|
22 return (u_char *) & long_return; |
|
23 case HRFSYS_STOREIDX: |
|
24 - long_return = fsys_idx + HRS_TYPE_FIXED_MAX; |
|
25 + long_return = fsys_idx + NETSNMP_MEM_TYPE_MAX; |
|
26 return (u_char *) & long_return; |
|
27 case HRFSYS_FULLDUMP: |
|
28 return when_dumped(HRFS_entry->HRFS_name, FULL_DUMP, var_len); |
|