Monit considers processes to be monitored even though it is kinda aware it is dead
Issue #349
duplicate
We use with pidfile syntax to check is the process dead, and restart it if needed. This problem happens rarely, so it could be some sort of a concurrency problem.
However, we noticed that even though the actual process is dead; the monit still considers its status to be 'monitored', though it can't get any other info about it.
Example output
The Monit daemon 5.17.1 uptime: 3d 6h 6m
Process 'process-0'
status Running
monitoring status Monitored
pid 3170
parent pid 1
uid 500
effective uid 500
gid 500
uptime 54m
threads 22
children 0
memory 11.0 MB
memory total 11.0 MB
memory percent 0.0%
memory percent total 0.0%
cpu percent 0.0%
cpu percent total 0.0%
data collected Mon, 18 Apr 2016 20:09:50
Process 'process-31'
status Running
monitoring status Monitored
pid -
parent pid -
uid -
effective uid -
gid -
uptime -
threads -
children -
memory -
memory total -
memory percent -
memory percent total -
cpu percent -
cpu percent total -
data collected Mon, 18 Apr 2016 20:09:50
Comments (7)
-
-
repo owner please can you send monit log to support@mmonit.com?
-
Sorry, I didn't save the monit logs from the time of the issue. When it happens again, I download them and pass them along.
-
repo owner - changed status to on hold
waiting for data (logs)
-
repo owner - changed status to duplicate
Duplicate of
#367. -
repo owner - changed version to 5.17.x
-
repo owner - changed version to 5.17.0
- Log in to comment
The process configuration is a simple one