Skip to content

Instantly share code, notes, and snippets.

@valguss
Created November 17, 2010 11:10
Show Gist options
  • Save valguss/703276 to your computer and use it in GitHub Desktop.
Save valguss/703276 to your computer and use it in GitHub Desktop.
Check to see if SSHD is ok.
## SSHD monit config , http://www.securecentos.com
## Modified 25/7-2008
check process sshd with pidfile /var/run/sshd.pid
start program "/etc/init.d/sshd start"
stop program "/etc/init.d/sshd stop"
if failed port 2345 protocol ssh then restart
if 5 restarts within 5 cycles then timeout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment