|
From: | Amarildo Magalhães |
Subject: | Re: Monit doesn't start |
Date: | Thu, 21 Oct 2010 10:08:21 -0200 |
please either add the -I option as noted in previous mail which will show output in console or get the details from /var/log/monit.log.
On Oct 21, 2010, at 1:40 PM, Amarildo Magalhães wrote:We can't see any error using monit -v:
ldap1:/etc/monit# monit -v
monit: Debug: Adding host allow 'localhost'
monit: Debug: Skipping redundant host 'localhost'
monit: Debug: Skipping redundant host 'localhost'
monit: Debug: Adding credentials for user 'admin'.
Runtime constants:
Control file = /etc/monit/monitrc
Log file = /var/log/monit.log
Pid file = /var/run/monit.pid
Debug = True
Log = True
Use syslog = False
Is Daemon = True
Use process engine = True
Poll time = 120 seconds
Event queue = base directory /var/monit with 100 slots
Mail server(s) = localhost
Mail from = (not defined)
Mail subject = (not defined)
Mail message = (not defined)
Start monit httpd = True
httpd bind address = localhost
httpd portnumber = 2812
httpd signature = True
Use ssl encryption = False
httpd auth. style = Basic Authentication and Host/Net allow list
Alert mail to = address@hidden
Alert on = All events
The service list contains the following entries:
System Name = ldap1
Monitoring mode = active
We also have tried to change the port, but still not woking, we have checked firewall, memory, disk space, everthing is ok, all services in this machine works normally, just monit doesn't work.
-------------------------------------------------------------------------------
Starting monit daemon with http interface at [localhost:2812]On Thu, Oct 21, 2010 at 9:25 AM, Yahoo - Tjstroker <address@hidden> wrote:
It would seem to me that if you changed nothing at all, and it just stopped working, that some issue exist other than monit itself, like data or memory corruption of some sort.What if you change the port assigned to just see if it can read?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
Regards2010/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 readonly2010/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
--
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
[Prev in Thread] | Current Thread | [Next in Thread] |