7 lines
348 B
Plaintext
7 lines
348 B
Plaintext
check process sshd with pidfile /var/run/sshd.pid
|
|
start program = "/usr/bin/systemctl start sshd"
|
|
stop program = "/usr/bin/systemctl stop sshd"
|
|
if not exist for 1 cycles then restart
|
|
if not exist for 3 cycles then exec "/opt/MonitNotify.sh 'SRV-WARN: SSHD'"
|
|
else if recovered then exec "/opt/MonitNotify.sh 'SRV-OK: SSHD'"
|