/usr/share/puppet/modules.available/sbitio-monit/manifests/init.pp is in puppet-module-sbitio-monit 1.0.0-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 | # == Class: monit
#
# This class is the entrance point to install and configure monit service.
#
# === Parameters
#
# [*alerts*]
# Array of emails with optional event filters.
# e.g:
# - "foo@bar"
# - "foo@bar only on { timeout, nonexist }"
# - "foo@bar but not on { instance }"
#
# Monit doc reference: http://mmonit.com/monit/documentation/monit.html#setting_an_alert_recipient
#
class monit(
$service_enable = true,
$service_ensure = running,
$conf_file = $monit::params::conf_file,
$conf_dir = $monit::params::conf_dir,
$conf_purge = true,
$check_interval = $monit::params::check_interval,
$check_start_delay = $monit::params::check_start_delay,
$logfile = $monit::params::logfile,
$idfile = $monit::params::idfile,
$statefile = $monit::params::statefile,
$eventqueue = $monit::params::eventqueue,
$eventqueue_basedir = '/var/monit',
$eventqueue_slots = 100,
$mmonit_url = undef,
$mailserver = undef,
$mailformat_from = "monit@${::fqdn}",
# NOTE: reply-to available since monit 5.2
$mailformat_replyto = undef,
$mailformat_subject = undef,
$mailformat_message = undef,
$alerts = [],
$httpserver = true,
$httpserver_port = 2812,
$httpserver_bind_address = 'localhost',
$httpserver_ssl = false,
$httpserver_pemfile = undef,
$httpserver_allow = [ 'localhost' ],
# Init system defaults.
$init_system = $monit::params::init_system,
$service_program = $monit::params::service_program,
# System resources check.
$system_check_ensure = present,
$system_loadavg_1min = 3 * $processorcount,
$system_loadavg_5min = 1.5 * $processorcount,
$system_loadavg_15min = 1.5 * $processorcount,
$system_cpu_user = '75%',
$system_cpu_system = '30%',
$system_cpu_wait = '30%',
$system_memory = '75%',
# NOTE: swap available since monit 5.2
$system_swap = undef,
$system_fs = ['/',],
$system_fs_space_usage = '80%',
$system_fs_inode_usage = '80%',
# Additional checks.
$checks = {},
) inherits monit::params {
class{'monit::install': } ->
class{'monit::config': } ~>
class{'monit::service': } ->
Class['monit']
}
|