Here’s a short how-to on monitoring OpenIndiana (Solaris 11) that is running ZFS using Nagios, check___mk and check_mk_agent. This awesome open source tool makes setting up your servers to be checked by Nagios super easy. In the past I would manually create or edit the Nagios .cfg files for my environment and install various agents depending on OS architecture on the servers I wanted to monitor. Even though I am not monitoring a ton of servers it still took quite a bit of time. Now I use check_mk and Open Monitoring Distribution. I plan to write-up a more detailed post on OMD soon, but I found it’s a very impressive bundled Nagios package with many important addons and can easily be installed on every major Linux distribution. On to monitoring Solaris 11.

Download the Solaris agent (check_mk_agent.solaris) from GitHub

Copy and rename this file to /usr/bin/check_mk_agent

Edit /etc/services and add

Now for Solaris we need to edit /etc/inet/inetd.conf and add

Enter these commands at the shell, should not receive any errors.

On your OMD/Nagios box put your Solaris box into the all_hosts and run these commands.

Inventory new checks

Reload Nagios

Check_MK is so awesome it even automagically monitors your ZFS pools!