- changed status to closed
error -- unknown resource ID: [4]
Issue #664
closed
Running monit 5.23.0 on CentOS 6.6, I have the following check for nginx:
check process nginx with pidfile /var/run/nginx.pid
group webserver
start program = "/sbin/service nginx start"
stop program = "/sbin/service nginx stop"
if cpu > 60% for 2 cycles then alert
if cpu > 80% for 5 cycles then restart
if children > 250 then restart
if loadavg (1min) > 90 for 15 cycles then alert
The loadavg (1min)
line appears to cause the following error to be repeated over and over in the monit log:
[EDT Sep 12 12:05:09] error : 'nginx' error -- unknown resource ID: [4]
I've tried different times (e.g. 5min) and the resource ID changes in the error message (as expected). I don't think this is actually an error, but it's appearing in the log every cycle.
Comments (2)
-
repo owner -
Ah, that's what I assumed but it used to work and there were examples in the manual. I've opened https://bitbucket.org/tildeslash/monit/pull-requests/53 to address.
- Log in to comment
The "loadavg" statement can be used in "check system" context only (load average is system property, not process'). Please remove the following statement and reload monit: