Re: Neither success nor failure?
Tino Hendricks via This is the general mailing list for monit <[email protected]> Thu, 13 Mar 2025 08:06:58 +0100
| Newsgroups | gmane.comp.monitoring.monit.general |
|---|---|
| Message-ID | <[email protected]> |
--Apple-Mail-5B0490B9-EA4E-4E4D-AD8D-8C63CB27AE0B Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Steven, the only thing coming to my mind if you can=E2=80=99t handle this in the scr= ipt you=E2=80=99re using is https://mmonit.com/monit/documentation/monit.html#SERVICE-DEPENDENCIES Like, depending on a test for working DNS.=20 Cheers! Tino > Am 13.03.2025 um 05:23 schrieb Steven Christensen <[email protected]>: >=20 > =EF=BB=BF > Hi All, I have a use case I am not sure Monit can handle. I looked at the d= ocument and tried keywords in this mailing list, but nothing came up. >=20 > I have a script which checks another node for some information, and then r= eports success or failure (via exit code).The script works fine in Monit. >=20 > But due to some dodgy DNS service, sometimes when the script tries to get i= nformation from the other node, the DNS lookup fails. So we don't know wheth= er the information would have resulted in a success or failure, to report to= Monit.=20 >=20 > My question: Is there a way to tell Monit during that script check interva= l that the results of the check are indeterminate, that it should maintain t= he previous success/failure state until it the next time it is able to defin= itively report a true or false status? >=20 > Thanks! >=20 --Apple-Mail-5B0490B9-EA4E-4E4D-AD8D-8C63CB27AE0B Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <html><head><meta http-equiv=3D"content-type" content=3D"text/html; charset=3D= utf-8"></head><body dir=3D"auto"><div dir=3D"ltr"></div><div dir=3D"ltr">Hi S= teven,</div><div dir=3D"ltr"><br></div><div dir=3D"ltr">the only thing comin= g to my mind if you can=E2=80=99t handle this in the script you=E2=80=99re u= sing is</div><div dir=3D"ltr"><br></div><div dir=3D"ltr"><a href=3D"https://= mmonit.com/monit/documentation/monit.html#SERVICE-DEPENDENCIES">https://mmon= it.com/monit/documentation/monit.html#SERVICE-DEPENDENCIES</a></div><div dir= =3D"ltr"><br></div><div dir=3D"ltr">Like, depending on a test for working DN= S. </div><div dir=3D"ltr"><br></div><div dir=3D"ltr">Cheers!</div><div d= ir=3D"ltr"><br></div><div dir=3D"ltr">Tino</div><div dir=3D"ltr"><br><blockq= uote type=3D"cite">Am 13.03.2025 um 05:23 schrieb Steven Christensen <ste= [email protected]>:<br><br></blockquote></div><blockquote type=3D"cite"><div di= r=3D"ltr">=EF=BB=BF<div dir=3D"ltr">Hi All, I have a use case I am not sure M= onit can handle. I looked at the document and tried keywords in this mailing= list, but nothing came up.<div><br></div><div>I have a script which checks a= nother node for some information, and then reports success or failure (via e= xit code).The script works fine in Monit.</div><div><br></div><div>But due t= o 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 inf= ormation would have resulted in a success or failure, to report to Moni= t. </div><div><br></div><div>My question: Is there a way to tell Monit d= uring that script check interval that the results of the check are indetermi= nate, that it should maintain the previous success/failure state until it th= e next time it is able to definitively report a true or false status?</div><= div><br></div><div>Thanks!</div><div><br></div></div> </div></blockquote></body></html>= --Apple-Mail-5B0490B9-EA4E-4E4D-AD8D-8C63CB27AE0B--