Re: Adding ZFS support in host resources mib under Linux
On Fri, Mar 20, 2015 at 09:43:18AM +1100, Ceralena Davies wrote: > At my workplace we use net-snmp heavily. Good :-) > We have number of Linux systems running ZFS using zfsonlinux [1]. > Unfortunately we don't get storage monitoring on its mounts out of the box > at the moment. > > I also noticed that EXT4 and BTRFS don't seem to be supported - at least > not based on this code from agent/mibgroup/host/hr_filesys.c: You didn't tell us which version, but for 5.5 and newer it would be agent/mibgroup/hardware/fsys/fsys_mntent.c that needs mending, and the current 5.7.3 release altready has this in place. /Niels -- Niels Baggesen - @home - Ã…rhus - Denmark - n...@users.sourceforge.net The purpose of computing is insight, not numbers --- R W Hamming -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
Adding ZFS support in host resources mib under Linux
Hi net-snmp coders, At my workplace we use net-snmp heavily. We have number of Linux systems running ZFS using zfsonlinux [1]. Unfortunately we don't get storage monitoring on its mounts out of the box at the moment. I also noticed that EXT4 and BTRFS don't seem to be supported - at least not based on this code from agent/mibgroup/host/hr_filesys.c: #ifdef linux #define MNTTYPE_CD9660 "iso9660" #define MNTTYPE_EXT2FS "ext2" #define MNTTYPE_EXT3FS "ext3" #define MNTTYPE_SMBFS "smbfs" #define MNTTYPE_MSDOS "msdos" #define MNTTYPE_FAT32 "vfat" #define MNTTYPE_NTFS "ntfs" #define MNTTYPE_NFS4 "nfs4" #endif /* linux */ I'd like to patch net-snmp to include support for ZFS, BTRFS and EXT4 volumes under Linux. I'd appreciate some pointers about what else I should change. The only other obvious thing to look at is the switch on FS type in var_hrfilesys() (same file), but I tried that and it didn't immediately work. Before I jump and debug I'd like to know if there's any other obvious big changes I should be making. Many thanks, Lena [1] http://zfsonlinux.org/ -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/___ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders