2019-09-10 23:17:04 +00:00
|
|
|
# Get first certificate!
|
|
|
|
check program certbot_bootstrap
|
2022-09-10 21:28:27 +00:00
|
|
|
with path "/usr/local/bin/syslogize certbotd bootstrap"
|
2019-09-10 23:17:04 +00:00
|
|
|
every 1 cycle
|
|
|
|
if status = 0 then unmonitor
|
|
|
|
|
|
|
|
# Renew certificates once a week
|
|
|
|
check program certbot_renew
|
2022-09-10 21:28:27 +00:00
|
|
|
with path "/usr/local/bin/syslogize certbotd renew"
|
2024-12-28 21:08:06 +00:00
|
|
|
every "13 5 * * 1"
|
2019-09-10 23:17:04 +00:00
|
|
|
if status != 0 then alert
|
|
|
|
|
2024-12-28 21:08:06 +00:00
|
|
|
# Prune old keys before renewals
|
2022-09-10 19:53:29 +00:00
|
|
|
check program certbot_prune
|
2022-09-10 21:28:27 +00:00
|
|
|
with path "/usr/local/bin/syslogize certbotd prune"
|
2024-12-28 21:08:06 +00:00
|
|
|
every "13 3 * * 1"
|
2022-09-10 19:53:29 +00:00
|
|
|
if status != 0 then alert
|
|
|
|
|
2019-09-10 23:17:04 +00:00
|
|
|
# Get missing certificates for every cycle.
|
|
|
|
check program certbot
|
2022-09-10 21:28:27 +00:00
|
|
|
with path "/usr/local/bin/syslogize certbotd"
|
2019-09-10 23:17:04 +00:00
|
|
|
every 1 cycle
|
|
|
|
if status != 0 then alert
|