r3: - new conffiles
[monit-cn.git] / monit-cn / sshd.conf
diff --git a/monit-cn/sshd.conf b/monit-cn/sshd.conf
new file mode 100644 (file)
index 0000000..8ce1fe4
--- /dev/null
@@ -0,0 +1,8 @@
+# sshd monit-cn template
+
+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 host 127.0.0.1 port 22 protocol ssh
+               with timeout 15 seconds
+        then restart