Using Nagios plugins with OpenNMS

OpenNMS can use Nagios plugins.

Setup NRPE

# service nrpe start

$ /usr/lib/nagios/plugins/check_nrpe -n -H example.com -c _NRPE_CHECK

Setup OpenNMS

SSL

Unfortunately OpenNMS can't talk SSL to NRPE so we need to modify /etc/init.d/nrpe on the target machine to use the -n switch:

# See how we were called.
case "$1" in
  start)
        # Start daemons.
        echo -n "Starting nrpe: "
        daemon $NrpeBin -c $NrpeCfg -d -n
        echo
        touch $LockFile
        ;;

Obviously you will want to restrict who can connect to your nrpe daemon using firewall rules.


CategoryLinux

OpenNmsNagiosPlugins (last edited 2007-10-24 11:44:31 by DavidKeen)