December 7, 2012 · Nagios

Monitor OpenIndiana/Solaris 11 with check_mk_agent and Nagios

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

check_mk        6556/tcp

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

check_mk stream tcp nowait root /usr/sbin/tcpd /usr/bin/check_mk_agent

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

inetconv -e

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

Inventory new checks

cmk -I

Reload Nagios

cmk -O

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

  • LinkedIn
  • Tumblr
  • Reddit
  • Google+
  • Pinterest
  • Pocket
Comments powered by Disqus