monit-general
[Top][All Lists]
Advanced

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

[monit] monit: Cannot connect to the monit daemon. Did you start it with


From: Dr. Davi Menasaka
Subject: [monit] monit: Cannot connect to the monit daemon. Did you start it with http support?
Date: Fri, 23 Jan 2009 15:53:34 +0300

hi,

have a problem with monit daemon

if i try to "start all" or "restart all"

got such output

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?

try in verbose mode

here is output

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/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   = 28212
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.My-server.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?



So, what i'm doing wrong?

Any advice will be appreciated






reply via email to

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