monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Monit doesn't start


From: Martin Pala
Subject: Re: Monit doesn't start
Date: Thu, 21 Oct 2010 13:24:43 +0200

Try to start monit with -v option do get more details about the problem:

monit -vI


On Oct 21, 2010, at 1:20 PM, Amarildo Magalhães wrote:

Sergio,

Even if i enable the http server, it doesn't work:

set httpd port 2812 and
     use address localhost
     allow localhost
     allow admin:monit
#     allow @monit
#     allow @users readonly

Look at the log:

[BRST Oct 21 09:16:53] info     : Starting monit daemon with http interface at [localhost:2812]
[BRST Oct 21 09:16:53] info     : Starting monit HTTP server at [localhost:2812]
[BRST Oct 21 09:16:53] info     : monit HTTP server started
[BRST Oct 21 09:16:53] info     : Monit started
[BRST Oct 21 09:16:53] error    : monit: unable to read data from the file

When i tried to enable the lines allow @monit and allow @users readonly, i got this error when i start it:

ldap1:/etc# /etc/init.d/monit syntax
/etc/monit/monitrc:96: Error: syntax error '@'

I also have checked my firewall and all doors are open.





On Thu, Oct 21, 2010 at 9:08 AM, Sergio J. <address@hidden> wrote:
Monit use internal http server to read data.
If you not configure http monit server, you obtain this error....

You put this in /etc/monit.conf

Regards


2010/10/21 Amarildo Magalhães <address@hidden>
Hi Sergio,

I have made the change as you show below and now i'm getting this:

ldap1:/etc/monit# /etc/init.d/monit syntax
/etc/monit/monitrc:96: Error: syntax error '@'

I think my problem isn't with "set httpd" option, because i have put it off, and i still getting the same error message:

BRST Oct 21 09:02:14] info     : Starting monit daemon
[BRST Oct 21 09:02:14] info     : Monit started
[BRST Oct 21 09:02:14] error    : monit: unable to read data from the file



On Thu, Oct 21, 2010 at 8:51 AM, Sergio J. <address@hidden> wrote:
Add this in your monit.conf

 set httpd port 2812 and
     use address localhost  # only accept connection from localhost
     allow localhost        # allow localhost to connect to the server and
     allow admin:monit      # require user 'admin' with password 'monit'
     allow @monit           # allow users of group 'monit' to connect (rw)
     allow @users readonly  # allow users of group 'users' to connect readonly




2010/10/21 Amarildo Magalhães <address@hidden>
Dear Sirs,

We have been using monit for a long time and everthing was working well, but today when we get into our server, we saw that monit was stopped.

We did not make any changes, it was working fine and simply stopped.

We have checked the file syntax:

ldap1:/var/run# /etc/init.d/monit syntax
Control file syntax OK

We have checked permissions, disk space and everthing is ok too.

This is what we get back from the log file:

[BRST Oct 21 08:35:38] info     : Starting monit daemon with http interface at [*:2812]
[BRST Oct 21 08:35:38] info     : Starting monit HTTP server at [*:2812]
[BRST Oct 21 08:35:38] info     : monit HTTP server started
[BRST Oct 21 08:35:38] info     : Monit started
[BRST Oct 21 08:35:39] error    : monit: unable to read data from the file

So after that error monit: unable to read data from the file, it doesn't start.

Have someone knows something about this error? We have decided to report to the general list, because we made a lot of searchs at Google and didn't find nothing.

Regards,

--

Amarildo Magalhães
Analista de Tecnologia da Informação
Instituto Federal de Minas Gerais - Campus Ouro Preto
http://www.ifmg.edu.br
http://www.cefetop.edu.br


--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general


--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general



--


Atenciosamente,


Amarildo Magalhães
Analista de Tecnologia da Informação
Instituto Federal de Minas Gerais - Campus Ouro Preto
http://www.ifmg.edu.br
http://www.cefetop.edu.br


--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general


--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general



--


Atenciosamente,

Amarildo Magalhães
Analista de Tecnologia da Informação
Instituto Federal de Minas Gerais - Campus Ouro Preto
http://www.ifmg.edu.br
http://www.cefetop.edu.br

--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general


reply via email to

[Prev in Thread] Current Thread [Next in Thread]