Check_mk and FreeNAS, Pt. 3
A continuation of Check_mk and FreeNAS, Pt. 2
Now that we have all our smart data nicely set up, let's see if we can't get some stats on I/O speed. I'm pretty sure FreeNAS is supposed to have a I/O section in its "Reports" section, but for whatever reason, it's not in my install, and I'd like to have the data in Nagios in any case.
Just like with the SMART data, we're going to write a small script that the check_mk agent can use.
Check_mk and FreeNAS, Pt. 2
A continuation of Check_mk and FreeNAS, Pt. 1.
So I've got my check_mk on set up on my NAS, and it's monitoring stuff beautifully. However, it's not monitoring something very near and dear to my heart for this server: S.M.A.R.T. data. FreeNAS comes with smartctl, and there's already S.M.A.R.T. data plugins for the linux agents, so I figured this wouldn't be a big deal. And I was right! All I had to do was add the following script to my plugins/ folder for check_mk to find, and the server picked it up automatically.
Check_mk and FreeNAS
Note
Software involved:
FreeNAS 9.2.0 OMD 1.10 (check_mk 1.2.2p3) FreeNAS is great, and the web interface makes it easy and simple to understand my NAS's overall structure. However, my favored method of monitoring in my homelab is OMD with Check_mk, while FreeNAS prefers a self-contained collectd solution. We're in luck however, in that FreeNAS is heavily based on FreeBSD, which check_mk happens to have a plugin for, so it shouldn't be too hard to set things up the way I like them.