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/e42bb0fa4a2d4dae020f606f3724e39dd8c8f96e)


Best regards,
The M/Monit team


> On 6. 2. 2025, at 18:01, [email protected] wrote:
> 
> Hello,
> 
> I was hoping for some clarification.
> 
> In the monit wiki there is an example for a Postfix config. 
> https://mmonit.com/wiki/Monit/Postfix
> 
> When I used that example I noticed that I was seeing the following ion my 
> journal:
> 
> monit[567]: 'postfix' error -- unknown resource ID: [5]
> 
> So I commented out the line:
> 
> "if loadavg(5min) greater than 10 for 8 cycles then stop"
> 
> 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-monit-log-apache-error-unknown-resource-id
> 
> However, in the monit manual, it says the check should work for system checks 
> or process checks.
> 
> Resource Tests
> "This test can only be used within a system or process service entry in the 
> Monit control file"
> 
> So I thought I'd post in case it's some documentation thing.
> 
> -- 
> 
> Regards,
> 
> xc
> 
> 
> 

Reply via email to