Type: Change Request
Affects Version/s: 3.2.0alpha2
Fix Version/s: None
Component/s: Agent (G)
Environment:Linux. The improvement could be made pour other operating systems, but this issue only provide details for Linux systems (tested on CentOS 7).
Currently, the vfs.fs.discovery on Linux only discovers FSNAME (mountpoints) and FSTYPE (filesystems). It does so by parsing the /proc/mounts file, which provides a bit more infos (https://www.centos.org/docs/5/html/5.2/Deployment_Guide/s2-proc-mounts.html) than these 2.
Actually, some items like vfs.fs.read or vfs.fs.write require a device name (and not a mountpoint) to work, so it would be nice if the vfs.fs.discovery item would discover the devices besides their mountpoints and filesystems. People I'm working with are currently using a perl script to discover devices to be used for vfs.fs.read/write since the "native" vfs.fs.discovery doesn't provide it. I definitively think it would be cleaner and would benefit to other people to have the devices discovered and made available through vfs.fs.discovery.
I took the opportunity to implement and test it for Linux, see the patch below.
I worked on trunk, on the git mirror of the SVN repository. My work as been done from the following commit :
The patch itself :
The output confirming that it's working as intended :
Now the final question is : is it possible to merge this into Zabbix ?
If that sounds ok for you, how would I go into merging this into Zabbix ?