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.