Thu, 04 Oct 2012 20:25:16 +0200
Enable traversal of all filesystems and ZFS datasets as well.
snmp/snmp.patch | file | annotate | diff | comparison | revisions |
1.1 --- a/snmp/snmp.patch Thu Oct 04 20:24:28 2012 +0200 1.2 +++ b/snmp/snmp.patch Thu Oct 04 20:25:16 2012 +0200 1.3 @@ -124,6 +124,23 @@ 1.4 /* 1.5 * Setup our pipes 1.6 */ 1.7 +Index: agent/mibgroup/host/hrh_filesys.c 1.8 +diff -Nau agent/mibgroup/host/hrh_filesys.c.orig agent/mibgroup/host/hrh_filesys.c 1.9 +--- agent/mibgroup/host/hrh_filesys.c.orig 2011-09-28 06:53:47.000000000 +0200 1.10 ++++ agent/mibgroup/host/hrh_filesys.c 2012-10-04 14:04:40.672808452 +0200 1.11 +@@ -298,9 +298,9 @@ 1.12 + } else { 1.13 + HRFS_entry = netsnmp_fsys_get_first(); 1.14 + } 1.15 +- /* Skip "inactive" entries */ 1.16 +- while ( HRFS_entry && !(HRFS_entry->flags & NETSNMP_FS_FLAG_ACTIVE)) 1.17 +- HRFS_entry = netsnmp_fsys_get_next( HRFS_entry ); 1.18 ++ /* Skip "inactive" entries - Edit: Avoid ignoring ZFS! */ 1.19 ++ /*while ( HRFS_entry && !(HRFS_entry->flags & NETSNMP_FS_FLAG_ACTIVE)) 1.20 ++ HRFS_entry = netsnmp_fsys_get_next( HRFS_entry );*/ 1.21 + 1.22 + HRFS_index = (HRFS_entry ? HRFS_entry->idx.oids[0] : -1 ); 1.23 + return HRFS_index; 1.24 Index: agent/snmpd.c 1.25 diff -Nau agent/snmpd.c.orig agent/snmpd.c 1.26 --- agent/snmpd.c.orig 2011-07-02 00:35:46.000000000 +0200