Re: wiki postfix example - resource check error
M/Monit Support <[email protected]> Sun, 9 Feb 2025 18:05:26 +0100
| Newsgroups | gmane.comp.monitoring.monit.general |
|---|---|
| Message-ID | <[email protected]> |
--Apple-Mail=_620721DA-36C7-4A44-8BE8-EEBEECAFAB83 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hello, There was a bug in Monit, the loadavg test in the check process context = didn't work. The fix will be part of the next release = (https://bitbucket.org/tildeslash/monit/commits/e42bb0fa4a2d4dae020f606f37= 24e39dd8c8f96e) Best regards, The M/Monit team > On 6. 2. 2025, at 18:01, [email protected] wrote: >=20 > Hello, >=20 > I was hoping for some clarification. >=20 > In the monit wiki there is an example for a Postfix config.=20 > https://mmonit.com/wiki/Monit/Postfix >=20 > When I used that example I noticed that I was seeing the following ion = my journal: >=20 > monit[567]: 'postfix' error -- unknown resource ID: [5] >=20 > So I commented out the line: >=20 > "if loadavg(5min) greater than 10 for 8 cycles then stop" >=20 > That solved my error message, but I was curious what the issue was. So = after scouring a bit I found this link that says that the above check is = now only supported on "system" checks only. The article was 5yrs old. > = https://stackoverflow.com/questions/55218933/monit-on-apache-server-why-mo= nit-log-apache-error-unknown-resource-id >=20 > However, in the monit manual, it says the check should work for system = checks or process checks. >=20 > Resource Tests > "This test can only be used within a system or process service entry = in the Monit control file" >=20 > So I thought I'd post in case it's some documentation thing. >=20 > --=20 >=20 > Regards, >=20 > xc >=20 >=20 >=20 --Apple-Mail=_620721DA-36C7-4A44-8BE8-EEBEECAFAB83 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii <html><head><meta http-equiv=3D"content-type" content=3D"text/html; = charset=3Dus-ascii"></head><body style=3D"overflow-wrap: break-word; = -webkit-nbsp-mode: space; line-break: = after-white-space;"><div>Hello,</div><div><br></div><div>There was a bug = in Monit, the loadavg test in the check process context didn't work. The = fix will be part of the next release (<a = href=3D"https://bitbucket.org/tildeslash/monit/commits/e42bb0fa4a2d4dae020= f606f3724e39dd8c8f96e">https://bitbucket.org/tildeslash/monit/commits/e42b= b0fa4a2d4dae020f606f3724e39dd8c8f96e</a>)</div><div><br></div><br = id=3D"lineBreakAtBeginningOfMessage"><div> <div style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; = line-break: after-white-space;"><div style=3D"color: rgb(0, 0, 0); = font-family: Helvetica; font-style: normal; font-variant-caps: normal; = font-weight: normal; letter-spacing: normal; text-align: start; = text-indent: 0px; text-transform: none; white-space: normal; = word-spacing: 0px; -webkit-text-stroke-width: 0px;">Best regards,<br>The = M/Monit team<br></div><div style=3D"color: rgb(0, 0, 0); font-family: = Helvetica; font-style: normal; font-variant-caps: normal; font-weight: = normal; letter-spacing: normal; text-align: start; text-indent: 0px; = text-transform: none; white-space: normal; word-spacing: 0px; = -webkit-text-stroke-width: 0px;"><br></div></div> </div> <div><br><blockquote type=3D"cite"><div>On 6. 2. 2025, at 18:01, = [email protected] wrote:</div><br = class=3D"Apple-interchange-newline"><div><div>Hello,<br><br>I was hoping = for some clarification.<br><br>In the monit wiki there is an example for = a Postfix config. <br>https://mmonit.com/wiki/Monit/Postfix<br><br>When = I used that example I noticed that I was seeing the following ion my = journal:<br><br>monit[567]: 'postfix' error -- unknown resource ID: = [5]<br><br>So I commented out the line:<br><br>"if loadavg(5min) greater = than 10 for 8 cycles then stop"<br><br>That solved my error message, but = I was curious what the issue was. So after scouring a bit I found this = link that says that the above check is now only supported on "system" = checks only. The article was 5yrs = old.<br>https://stackoverflow.com/questions/55218933/monit-on-apache-serve= r-why-monit-log-apache-error-unknown-resource-id<br><br>However, in the = monit manual, it says the check should work for system checks or process = checks.<br><br>Resource Tests<br>"This test can only be used within a = system or process service entry in the Monit control file"<br><br>So I = thought I'd post in case it's some documentation thing.<br><br>-- = <br><br>Regards,<br><br>xc<br><br><br><br></div></div></blockquote></div><= br></body></html>= --Apple-Mail=_620721DA-36C7-4A44-8BE8-EEBEECAFAB83--