2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00
contrib-munin/plugins/nfs-freebsd
Adam Michel 3cd07ace54 Added nfs_client_cache plugin
This adds a plugin for tracking NFS client caching statistics. Because
the output for this segment of nfsstat was slightly different, the
parsing required some awk dancing to programatically make coherent
labels. It's basically a separate function anyway. Right?
2013-07-01 16:50:14 -07:00
..
nfs_client Added v3 to title, added nfs_client 2013-07-01 16:30:42 -07:00
nfs_client_cache Added nfs_client_cache plugin 2013-07-01 16:50:14 -07:00
nfsd Added v3 to title, added nfs_client 2013-07-01 16:30:42 -07:00
README.rst Better README 2013-07-01 16:22:40 -07:00

NFS plugins for FreeBSD
------------------------

The NFS plugins for Munin depend on the /proc filesystem in Linux for
statistics which does not exist in FreeBSD by default. While one can
add the linproc package to their installation to emulate this
functionality, I felt it would be better to write plugins that made use
of native tools.

I'm leveraging the nfsstat command to create these plugins. I'm sure
there is a better primary data source in FreeBSD to gather this output
from but for my purposes, using nfsstat is adequate and acceptable.
Unfortunately this means if the output of the nfsstat command changes
due to updates, these plugins will likely report inaccurate data.
These are the days of our lives, as they say. Someone with appropriate
levels of FreeBSD knowledge can probably improve these plugins
trivially.

I'm specifically targeting FreeNAS/NAS4Free, but the code should work
on any FreeBSD system with minimal package additions. Installing munin
on FreeNAS is not supported in general, but it's easy enough to do and
I wanted it monitored, ergo we are here.