Wednesday, July 21, 2010

Munin and Alerting: Method 2

Integration with Nagios: via a NSCA server


First you need a way for Nagios to accept messages from Munin. Nagios has exactly such a thing, namely the NSCA which is documented here: http://nagios.sourceforge.net/docs/1_0/addons.html#nsca.

NSCA consists of a client (a binary usually named send_nsca) and a server usually run from inetd. I recommend that you enable encryption on NSCA communication.

You also need to configure Nagios to accept messages via NSCA. Those will be passive alerts.

# This is an example of the correct way to activate Nagios warnings
contact.nagios.command /usr/local/nagios/bin/send_nsca
nagioshost.example.com -c /usr/local/nagios/etc/send_nsca.cfg

No comments:

Post a Comment