Thursday, September 30, 2010

Using Puppet to monitor Monit and Nagios

This completes the triangle with all three services watching each other.

To monitor Nagios with puppet:
# nagios.pp
class nagios {
    service { "nrpe":
        ensure => running,
        enable => true
    }
}

To monitor Monit with puppet:
# monit.pp
class monit {
    service { "monit":
        ensure => running,
        enable => true
    }
}

Include these files in the node class and you will be up and monitoring.

No comments:

Post a Comment