Newer
Older
puppet-monit / templates / sshd.erb
@Andreas Jaggi Andreas Jaggi on 10 May 2013 399 bytes add monit::sshdcheck
#
# automatically generated by puppet for <%= fqdn %>, DO NOT MODIFY!
#
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 <%= sshd_port %> protocol ssh then restart
	<% sshd_ips.each do |sshd_ip| -%>
	if failed host <%= sshd_ip %> port <%= sshd_port %> protocol ssh for 5 cycle then restart
	<%- end %>