mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 11:42:08 +00:00
8 lines
342 B
Text
8 lines
342 B
Text
|
check process sshd with pidfile /var/run/sshd.pid
|
||
|
start program = "/sbin/service sshd start"
|
||
|
stop program = "/sbin/service sshd stop"
|
||
|
if cpu > 60% for 3 cycles then restart
|
||
|
if totalmem > 200.0 MB for 3 cycles then restart
|
||
|
if failed host localhost port 22 type tcp then restart
|
||
|
if 3 restarts within 5 cycles then timeout
|