monit cannot find default monitrc on Intrepid

Bug #292183 reported by Fjan
8
Affects Status Importance Assigned to Milestone
monit (Debian)
Fix Released
Unknown
monit (Ubuntu)
Fix Released
Undecided
Unassigned
Nominated for Intrepid by agent 8131

Bug Description

Binary package hint: monit

After a plain vanilla install of Ubuntu 8.10 and monit and enabling the package I get this error when doing sudo monit

monit: Cannot find the control file at ~/.monitrc, /etc/monitrc, /etc/monitrc, /usr/local/etc/monitrc or at ./monitrc

This happens because the default place for the config file is /etc/monit/monitrc and it doesn't look there anymore (it worked fine in Hardy and earlier). Instead it looks (twice!) for /etc/monitrc so the fix is a simple "sudo cp /etc/monit/monitrc /etc/monitrc"

Tags: monit server sru
Revision history for this message
Paul McEnery (pmcenery) wrote :

This looks like at upstream bug:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=479357

A fix appears to have been released.... Is it possible for this fix to be implemented in the Ubuntu package?

Revision history for this message
agent 8131 (agent-8131) wrote :

I can confirm this bug exists on intrepid but not hardy making it an SRU worthy fix.

A quick fix might be to symlink /etc/monitrc to /etc/monit/monitrc though I have not tested that.

Changed in monit (Ubuntu):
status: New → Confirmed
tags: added: monit server sru
Revision history for this message
Paul McEnery (pmcenery) wrote : Re: [Bug 292183] Re: monit cannot find default monitrc on Intrepid

On 15/06/2009, agent 8131 <email address hidden> wrote:
>
> [...]
>
> A quick fix might be to symlink /etc/monitrc to /etc/monit/monitrc
> though I have not tested that.
>

IIRC from my testing, this does NOT work. Monit checks that the file
is in fact a file and not a link before starting up.

Revision history for this message
Fjan (jmfaber) wrote :

It's already fixed in Jaunty by te way

Revision history for this message
Chuck Short (zulcss) wrote :

Fixed in lucid as well then.

Regards
chuck

Changed in monit (Ubuntu):
status: Confirmed → Fix Released
Changed in monit (Debian):
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.