Newer
Older
puppet-monit / templates / monitrc.erb
@root root on 3 May 2012 421 bytes Initial import
#
# Monit control file
#
# Generated by puppet for <%= fqdn %>, DO NOT MODIFY!
#

# log to syslog
set logfile syslog facility log_daemon                       

# always monitor ssh
check process sshd with pidfile /var/run/sshd.pid
	start program = "/etc/init.d/ssh start"
	stop  program = "/etc/init.d/ssh stop"
	if failed port 22 protocol ssh then restart

# include additional config files
include /etc/monit/conf.d/*