Neither success nor failure?

Steven Christensen <[email protected]> Wed, 12 Mar 2025 13:56:02 -0400
Newsgroups gmane.comp.monitoring.monit.general
Message-ID <CAPf-+SdX=KbjSVCrb2F4HuZJHMQpZy-y-OGasSxAkucrYhkgkw@mail.gmail.com>
--000000000000ce5b55063028eb63
Content-Type: text/plain; charset="UTF-8"

Hi All, I have a use case I am not sure Monit can handle. I looked at the
document and tried keywords in this mailing list, but nothing came up.

I have a script which checks another node for some information, and then
reports success or failure (via exit code).The script works fine in Monit.

But due to some dodgy DNS service, sometimes when the script tries to get
information from the other node, the DNS lookup fails. So we don't know
whether the information would have resulted in a success or failure, to
report to Monit.

My question: Is there a way to tell Monit during that script check interval
that the results of the check are indeterminate, that it should maintain
the previous success/failure state until it the next time it is able to
definitively report a true or false status?

Thanks!

--000000000000ce5b55063028eb63
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi All, I have a use case I am not sure Monit can handle. =
I looked at the document and tried keywords in this mailing list, but nothi=
ng came up.<div><br></div><div>I have a script which checks another node fo=
r some information, and then reports success or failure (via exit code).The=
 script works fine in Monit.</div><div><br></div><div>But due to some dodgy=
 DNS service, sometimes when the script tries to get information from the o=
ther node, the DNS lookup fails. So we don&#39;t know whether the informati=
on would have resulted in a success or failure,=C2=A0to report to Monit.=C2=
=A0</div><div><br></div><div>My question: Is there a way to tell Monit duri=
ng that script check interval that the results of the check are indetermina=
te, that it should maintain the previous success/failure state until it the=
 next time it is able to definitively report a true or false status?</div><=
div><br></div><div>Thanks!</div><div><br></div></div>

--000000000000ce5b55063028eb63--