- Overview
- Module Description - What the module does and why it is useful
- Setup - The basics of getting started with monit
- Usage - Configuration options and additional functionality
- Limitations - OS compatibility, etc.
- Contributors
Puppet module to manage Monit installation and configuration.
This module installs and configures Monit. It allows you to enable HTTP Dashboard an to add check from a file.
include 'monit'
WARNING: For RedHat systems, you may need to add an additional repository like the EPEL repository. You can use the module stahnma-epel to do this.
class { 'monit':
httpd => true,
httpd_address => '172.16.0.3',
httpd_password => 'CHANGE_ME',
}
Using the source parameter:
monit::check { 'ntp':
source => "puppet:///modules/${module_name}/ntp",
}
Or using the content parameter with a string:
monit::check { 'ntp':
content => 'check process ntpd with pidfile /var/run/ntpd.pid
start program = "/etc/init.d/ntpd start"
stop program = "/etc/init.d/ntpd stop"
if failed host 127.0.0.1 port 123 type udp then alert
if 5 restarts within 5 cycles then timeout
',
}
Or using the content parameter with a template:
monit::check { 'ntp':
content => template("${module_name}/ntp.erb"),
}
monit::check { 'ntp':
ensure => absent,
}
RedHat and Debian family OSes are officially supported. Tested and built on Debian and CentOS.
The list of contributors can be found at: https://github.com/echoes-tech/puppet-monit/graphs/contributors