I got Nagios installed and configured. It’s pretty slick, although it was a sort of a pain to get everything working.

First off, you want to get this book: Building a Monitoring Infrastructure with Nagios. It’ll get you up to speed on nagios.

Then, find a Linux box. You can use a non-linux machine, but the above book recommends linux. Install nagios. Installing it via a package is easiest, but the book recommends installing from source. I installed from source.

Then you gotta install NRPE on all the systems that you want to monitor. I installed NRPE via package—didn’t build it from source.

Steps for installing NRPE on Joyent Accelerators
  • I used the blastwave packages (pkg-get -i nrpe)
  • Added the SMF manifest (svccfg import /opt/csw/share/doc/nrpe/nrpe.xml)
  • Made appropriate changes to nrpe.cfg (you’ll learn what the changes are from reading the above book) and copied /opt/csw/share/doc/nrpe/nrpe.cfg to /opt/csw/etc
  • Copied the SMF script from /opt/csw/share/doc/nrpe/svc-nrpe to /opt/csw/lib/svc/methods
  • Enabled NRPE (svcadm enable cswnrpe)

In the nagios hosts.cfg file, I added the level 3 router (209.247.11.146) as the parent of all the accelerators.