mirror of https://github.com/zulip/zulip.git
puppet: Add Nagios crontab to puppet.
(imported from commit 353b167b303b27ccbfc0cd0130665399faab80dc)
This commit is contained in:
parent
83016e501b
commit
261300d10e
|
@ -0,0 +1,23 @@
|
|||
# Edit this file to introduce tasks to be run by cron.
|
||||
#
|
||||
# Each task to run has to be defined through a single line
|
||||
# indicating with different fields when the task will be run
|
||||
# and what command to run for the task
|
||||
#
|
||||
# To define the time you can provide concrete values for
|
||||
# minute (m), hour (h), day of month (dom), month (mon),
|
||||
# and day of week (dow) or use '*' in these fields (for 'any').#
|
||||
# Notice that tasks will be started based on the cron's system
|
||||
# daemon's notion of time and timezones.
|
||||
#
|
||||
# Output of the crontab jobs (including errors) is sent through
|
||||
# email to the user the crontab file belongs to (unless redirected).
|
||||
#
|
||||
# For example, you can run a backup of all your user accounts
|
||||
# at 5 a.m every week with:
|
||||
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
|
||||
#
|
||||
# For more information see the manual pages of crontab(5) and cron(8)
|
||||
#
|
||||
# m h dom mon dow command
|
||||
* * * * * /usr/local/bin/pagerduty_nagios.pl flush
|
|
@ -46,8 +46,17 @@ class humbug::nagios {
|
|||
notify => Service["nagios3"],
|
||||
}
|
||||
|
||||
# I feel like installing this here is an abstraction violation; we
|
||||
# should probably move this to cron.d
|
||||
file { "/var/spool/cron/crontabs/nagios":
|
||||
require => Package[nagios3],
|
||||
owner => "nagios",
|
||||
group => "crontab",
|
||||
mode => 600,
|
||||
source => "puppet:///modules/humbug/nagios_crontab",
|
||||
}
|
||||
|
||||
# TODO: Install our API
|
||||
# TODO: Install the pagerduty_nagios cron job /var/spool/cron/crontabs/nagios
|
||||
|
||||
# TODO: Add munin configuration
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue