- changed status to closed
can not run monit status
Issue #239
resolved
alex@bender > /tmp > sudo monit -Iv
Runtime constants:
Control file = /etc/monit/monitrc
Log file = /var/log/monit.log
Pid file = /run/monit.pid
Id file = /var/lib/monit/id
State file = /var/lib/monit/state
Debug = True
Log = True
Use syslog = False
Is Daemon = True
Use process engine = True
Poll time = 120 seconds with start delay 0 seconds
Expect buffer = 256 bytes
Event queue = base directory /var/lib/monit/events with 100 slots
Mail from = (not defined)
Mail subject = (not defined)
Mail message = (not defined)
Start monit httpd = False
The service list contains the following entries:
System Name = bender
Monitoring mode = active
-------------------------------------------------------------------------------
pidfile '/run/monit.pid' does not exist
Starting Monit 5.11 daemon
'bender' Monit started
Processing postponed events queue
sudo monit -vv status
Runtime constants:
Control file = /etc/monit/monitrc
Log file = /var/log/monit.log
Pid file = /run/monit.pid
Id file = /var/lib/monit/id
State file = /var/lib/monit/state
Debug = True
Log = True
Use syslog = False
Is Daemon = True
Use process engine = True
Poll time = 120 seconds with start delay 0 seconds
Expect buffer = 256 bytes
Event queue = base directory /var/lib/monit/events with 100 slots
Mail from = (not defined)
Mail subject = (not defined)
Mail message = (not defined)
Start monit httpd = False
The service list contains the following entries:
System Name = bender
Monitoring mode = active
-------------------------------------------------------------------------------
Socket error -- Connection refused
-------------------------------------------------------------------------------
monit() [0x41cf7b]
monit(LogError+0xb6) [0x41d906]
monit() [0x41eeb0]
monit(create_socket+0xf0) [0x41f120]
monit(socket_create_t+0x85) [0x423a35]
monit(status+0x90) [0x4263a0]
monit(main+0x3d6) [0x40c3f6]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) [0x7f001bd25a40]
monit() [0x40c771]
-------------------------------------------------------------------------------
Error connecting to the monit daemon
-------------------------------------------------------------------------------
monit() [0x41cf7b]
monit(LogError+0xb6) [0x41d906]
monit(status+0x1ba) [0x4264ca]
monit(main+0x3d6) [0x40c3f6]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) [0x7f001bd25a40]
monit() [0x40c771]
-------------------------------------------------------------------------------
Comments (3)
-
repo owner -
reporter Thank you, it helps.
-
repo owner - changed status to resolved
- Log in to comment
Please see https://mmonit.com/monit/documentation/monit.html#MONIT-HTTPD Getting status from the Monit Daemon requires that
set http
is enabled. This interface can be bound to localhost or via a unix socket if you do not want to expose the HTTP interface.