| Newsgroups |
gmane.comp.monitoring.monit.general |
| Message-ID |
<[email protected]> |
--Apple-Mail=_6188BEFD-296B-4BAB-8C40-ABDA4CEC00F2
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=utf-8
Yes, add the "every <cron>" option: =
https://mmonit.com/monit/documentation/monit.html#SERVICE-POLL-TIME
Configuration example:
check mymailserver with address <hostname or IP address>
every "0 0 * * *"
if failed
port 25
protocol smtps
and certificate valid > 30 days
then alert
Best regards,
Martin
> On 30. 5. 2026, at 8:13, Marco Moock <[email protected]> wrote:
>=20
> Am 24.05.26 um 20:49 schrieb [email protected]:
>> The following should work for SMTP with STARTTLS: will alert when the =
certificate is invalid, or when it will expire in less than 30 days:
>> if failed
>> port 25
>> protocol smtps
>> and certificate valid > 30 days
>> then alert
>=20
> Thanks.
>=20
> Is there also an option to limit that test to one time a day, as it =
fills the log.
>=20
> --=20
> Gru=C3=9F
> Marco
>=20
> Junk-Mail bitte an [email protected]
>=20
--Apple-Mail=_6188BEFD-296B-4BAB-8C40-ABDA4CEC00F2
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
charset=utf-8
<html aria-label=3D"message body"><head><meta http-equiv=3D"content-type" =
content=3D"text/html; charset=3Dutf-8"></head><body =
style=3D"overflow-wrap: break-word; -webkit-nbsp-mode: space; =
line-break: after-white-space;">Yes, add the "every <cron>" =
option: <a =
href=3D"https://mmonit.com/monit/documentation/monit.html#SERVICE-POLL-TIM=
E">https://mmonit.com/monit/documentation/monit.html#SERVICE-POLL-TIME</a>=
<div><br></div><div>Configuration =
example:</div><div><br></div><div><span class=3D"Apple-tab-span" =
style=3D"white-space:pre"> </span>check mymailserver with address =
<hostname or IP address></div><div><div><span =
class=3D"Apple-tab-span" style=3D"white-space: pre;"> =
</span>every "0 0 * * *"</div></div><div><span class=3D"Apple-tab-span" =
style=3D"white-space: pre;"> </span>if failed</div><div><span =
class=3D"Apple-tab-span" style=3D"white-space: pre;"> </span><span =
class=3D"Apple-tab-span" style=3D"white-space: pre;"> =
</span>port 25</div><div><span class=3D"Apple-tab-span" =
style=3D"white-space: pre;"> </span><span =
class=3D"Apple-tab-span" style=3D"white-space: pre;"> </span>protocol =
smtps</div><div><span class=3D"Apple-tab-span" style=3D"white-space: =
pre;"> </span><span class=3D"Apple-tab-span" =
style=3D"white-space: pre;"> </span>and certificate valid > 30 =
days</div><div><span class=3D"Apple-tab-span" style=3D"white-space: =
pre;"> </span>then alert</div><div><br></div><div>Best =
regards,</div><div>Martin</div><div><br></div><div><div><br><blockquote =
type=3D"cite"><div>On 30. 5. 2026, at 8:13, Marco Moock =
<[email protected]> wrote:</div><br =
class=3D"Apple-interchange-newline"><div><div>Am 24.05.26 um 20:49 =
schrieb [email protected]:<br><blockquote type=3D"cite">The =
following should work for SMTP with STARTTLS: will alert when the =
certificate is invalid, or when it will expire in less than 30 =
days:<br><span class=3D"Apple-tab-span" style=3D"white-space:pre"> =
</span>if failed<br><span class=3D"Apple-tab-span" =
style=3D"white-space:pre"> </span><span class=3D"Apple-tab-span" =
style=3D"white-space:pre"> </span>port 25<br><span =
class=3D"Apple-tab-span" style=3D"white-space:pre"> </span><span =
class=3D"Apple-tab-span" style=3D"white-space:pre"> </span>protocol =
smtps<br><span class=3D"Apple-tab-span" style=3D"white-space:pre"> =
</span><span class=3D"Apple-tab-span" style=3D"white-space:pre"> =
</span>and certificate valid > 30 days<br><span =
class=3D"Apple-tab-span" style=3D"white-space:pre"> </span>then =
alert<br></blockquote><br>Thanks.<br><br>Is there also an option to =
limit that test to one time a day, as it fills the log.<br><br>-- =
<br>Gru=C3=9F<br>Marco<br><br>Junk-Mail bitte an =
[email protected]<br><br></div></div></blockquote></div><br>=
</div></body></html>=
--Apple-Mail=_6188BEFD-296B-4BAB-8C40-ABDA4CEC00F2--