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 14:14:27 +0200

Try to remove the /var/monit/1280322085_slapd.pid file.

Which monit version it is?

On Oct 21, 2010, at 2:08 PM, Amarildo Magalhães wrote:

/usr/sbin/monit -d 10 -c /etc/monit/monitrc -v -l /var/log/monit.log

The result:

[BRST Oct 21 10:06:03] info     : Starting monit daemon with http interface at [localhost:2812]
[BRST Oct 21 10:06:03] info     : Starting monit HTTP server at [localhost:2812]
[BRST Oct 21 10:06:03] info     : monit HTTP server started
[BRST Oct 21 10:06:03] info     : Monit started
[BRST Oct 21 10:06:03] debug    : Monit instance changed notification is sent to address@hidden
[BRST Oct 21 10:06:03] debug    : Processing postponed events queue
[BRST Oct 21 10:06:03] debug    : monit: processing queued event /var/monit/1280322085_slapd.pid
[BRST Oct 21 10:06:03] error    : monit: unable to read data from the file


Looks like it's trying to processing some schedule event and ins't find the file, and stopped to work at this point, how can i change it to not try to process these events?

Regards,



On Thu, Oct 21, 2010 at 9:57 AM, Martin Pala <address@hidden> wrote:
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?

Thank you,

Jim Blancet



Ask me about mobile solutions with an iPad and storeitoffsite.com

On Oct 21, 2010, at 7:20 AM, Amarildo Magalhães <address@hidden> 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



--


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]