monit-general
[Top][All Lists]
Advanced

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

Re: [monit] Problems with Monit installation [help]


From: Christopher Opena
Subject: Re: [monit] Problems with Monit installation [help]
Date: Fri, 23 Jan 2009 14:38:35 -0800

Do you have a firewall running on the machine that may not be allowing localhost to connect to itself on port 2812?  Or potentially something like selinux active?

Note sure of the details of your machine, but you can try a:

sudo iptables -L -v

That will give you the ruleset you're working with.  If you have a bunch of rules there, check to make sure 2812 is a permitted port.

If it's empty, or if iptables isn't running, did you maybe install a different firewall for use on the server?

Also, you can try opening up another ssh session when trying to start monit, but make sure you have a 'tail -f /var/log/messages' up and running so you can see any error messages coming from syslog.

On Fri, Jan 23, 2009 at 3:28 PM, Dr. Davi Menasaka <address@hidden> wrote:
Christopher


set httpd port 2812
allow localhost
allow mydomain.com # the main domain on my host
allow ***.***.***.** # host IP address
allow ***.***.***.** # my home IP address- don't laugh i'm n00b, that's why don't know is it needed or not
allow admin:pass



Well it's not working. Try to start monit from the command line first,
use verbose output as Martin Pala told earlier.

If i understand you write i must type

"monit start all -v"

here is output

address@hidden opt]# monit start all -v
monit: Debug: Adding host allow 'localhost'
monit: Debug: Skipping redundant host 'localhost'
monit: Debug: Skipping redundant host 'localhost'
monit: Debug: Adding host allow 'myDomain.**'
monit: Debug: Skipping redundant host 'myDomain.**'
monit: Debug: Skipping redundant host 'myDomain.**'
monit: Debug: Skipping redundant net 'my.ip.***.**'.
monit: Debug: Adding net allow 'home.IP.**.**'.
monit: Debug: Adding credentials for user 'admin'.
Runtime constants:
Control file       = /etc/monitrc
Log file           = syslog
Pid file           = /var/run/monit.pid
Debug              = True
Log                = True
Use syslog         = True
Is Daemon          = True
Use process engine = True
Poll time          = 120 seconds with start delay 0 seconds
Mail server(s)     = localhost:25 with timeout 5 seconds
Mail from          = address@hidden
Mail subject       = monit alert --  $EVENT $SERVICE
Mail message       = $EVENT Service $SERV..(truncated)
Start monit httpd  = True
httpd bind address = Any/All
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:

Process Name          = sshd
Pid file             = /var/run/sshd.pid
Monitoring mode      = active
Start program        = '/etc/init.d/sshd start' timeout 30 second(s)
Stop program         = '/etc/init.d/sshd stop' timeout 30 second(s)
Pid                  = if changed 1 times within 1 cycle(s) then alert
Ppid                 = if changed 1 times within 1 cycle(s) then alert
Port                 = if failed localhost:22 [SSH via TCP] with timeout 5 seconds 1 times within 1 cycle(s) then restart else if succeeded 1 times within 1 cycle(s) then alert
Timeout              = If 5 restart within 5 cycles then unmonitor else if succeeded then alert

Process Name          = mysql
Group                = database
Pid file             = /var/run/mysqld/mysqld.pid
Monitoring mode      = active
Start program        = '/etc/init.d/mysqld start' timeout 30 second(s)
Stop program         = '/etc/init.d/mysqld stop' timeout 30 second(s)
Pid                  = if changed 1 times within 1 cycle(s) then alert
Ppid                 = if changed 1 times within 1 cycle(s) then alert
Port                 = if failed 127.0.0.1:3306 [DEFAULT via TCP] with timeout 5 seconds 1 times within 1 cycle(s) then restart else if succeeded 1 times within 1 cycle(s) then alert
Timeout              = If 5 restart within 5 cycles then unmonitor else if succeeded then alert

Process Name          = apache
Pid file             = /var/run/httpd.pid
Monitoring mode      = active
Start program        = '/etc/init.d/httpd start' timeout 60 second(s)
Stop program         = '/etc/init.d/httpd stop' timeout 30 second(s)
Pid                  = if changed 1 times within 1 cycle(s) then alert
Ppid                 = if changed 1 times within 1 cycle(s) then alert
Port                 = if failed localhost:80/ [HTTP via TCP] with timeout 5 seconds 1 times within 1 cycle(s) then alert else if succeeded 1 times within 1 cycle(s) then alert
Load avg. (5min)     = if greater than 10.0 8 times within 8 cycle(s) then alert else if succeeded 1 times within 1 cycle(s) then alert
Children             = If greater than 250 1 times within 1 cycle(s) then restart else if succeeded 1 times within 1 cycle(s) then alert
CPU usage limit      = if greater than 80.0% 5 times within 5 cycle(s) then restart else if succeeded 1 times within 1 cycle(s) then alert
CPU usage limit      = if greater than 60.0% 2 times within 2 cycle(s) then alert else if succeeded 1 times within 1 cycle(s) then alert
Timeout              = If 3 restart within 5 cycles then unmonitor else if succeeded then alert

Process Name          = postfix
Group                = mail
Pid file             = /var/run/dovecot/master.pid
Monitoring mode      = active
Start program        = '/etc/init.d/dovecot start' timeout 30 second(s)
Stop program         = '/etc/init.d/dovecot stop' timeout 30 second(s)
Pid                  = if changed 1 times within 1 cycle(s) then alert
Ppid                 = if changed 1 times within 1 cycle(s) then alert
Port                 = if failed localhost:25 [SMTP via TCP] with timeout 5 seconds 1 times within 1 cycle(s) then restart else if succeeded 1 times within 1 cycle(s) then alert
Timeout              = If 5 restart within 5 cycles then unmonitor else if succeeded then alert

System Name           = server.site.org
Monitoring mode      = active

-------------------------------------------------------------------------------

monit: Cannot connect to the monit daemon. Did you start it with http support?
monit: Cannot connect to the monit daemon. Did you start it with http support?
monit: Cannot connect to the monit daemon. Did you start it with http support?
monit: Cannot connect to the monit daemon. Did you start it with http support?
monit: Cannot connect to the monit daemon. Did you start it with http support?


--


reply via email to

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