check process sshd with pidfile /var/run/sshd.pid
	group system
	group sshd
	start program = "/sbin/service sshd start"
	stop  program = "/sbin/service sshd stop"
	if failed host localhost port 22 with proto ssh then restart
	if 5 restarts with 5 cycles then timeout
	depend on sshd_bin
	depend on sftp_bin
	depend on sshd_rc
	depend on sshd_rsa_key
	depend on sshd_dsa_key

check file sshd_bin with path /usr/sbin/sshd
	group sshd
	if failed checksum        then unmonitor
	if failed permission 711  then unmonitor
	if failed uid root        then unmonitor
	if failed gid root        then unmonitor
	
check file sftp_bin with path /usr/lib/openssh/sftp-server
	group sshd
	include /etc/monitrc.d/templates/rootbin
	
check file sshd_rsa_key with path /etc/openssh/ssh_host_rsa_key
	group sshd
	include /etc/monitrc.d/templates/rootstrict
	
check file sshd_dsa_key with path /etc/openssh/ssh_host_dsa_key
	group sshd
	include /etc/monitrc.d/templates/rootstrict

check file sshd_rc with path /etc/openssh/sshd_config
	group sshd
	include /etc/monitrc.d/templates/rootstrict
