Monit fills logs when reading 0 byte pid file
Bug #1277655 reported by
agent 8131
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
monit (Ubuntu) |
Confirmed
|
Undecided
|
Sergey B Kirpichev |
Bug Description
When the pid file monit reads for a service is a 0 byte file monit enters a tight loop and spews this error to the syslog:
monit: Error reading pid from file
It will write this hundreds of times a second until all disk space is consumed.
I've verified this on monit 5.3.2-1 on Ubuntu 12.04 but not on other versions as of yet.
Changed in monit (Ubuntu): | |
status: | New → Incomplete |
Changed in monit (Ubuntu): | |
assignee: | nobody → Sergey B Kirpichev (skirpichev) |
status: | New → Confirmed |
Changed in monit (Ubuntu): | |
status: | New → Incomplete |
Changed in monit (Ubuntu): | |
status: | Incomplete → Confirmed |
To post a comment you must log in.
> spews this error to the syslog:
> monit: Error reading pid from file
Is this is the only error you have seen in the log file? Or there are others?
I think, there is - e.g. monit tries to restart this service. If this is the case - this is expected. You should limit the number of restarts for this service, like this:
-->8--
if 2 restarts within 3 cycles then unmonitor
-->8--
And you should fix this service - pid file shouldn't be empty!