monit-general
[Top][All Lists]
Advanced

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

Re: monit without start/stop


From: Kimo Rosenbaum
Subject: Re: monit without start/stop
Date: Mon, 16 Aug 2010 09:47:01 -0700 (PDT)

>Which monit version it is? By default Monit sends only one alert on first 
>error. 
>
>Please can you run monit in verbose mode (-v option) and send monit log to 
>show 

>the problem?

# monit -V
This is monit version 5.1.1
Copyright (C) 2000-2010 by Tildeslash Ltd. All Rights Reserved.

Running on FreeBSD 8.0, installed from ports.

# monit -v
monit: Debug: Adding host allow 'localhost'
monit: Debug: Skipping redundant host 'localhost'
monit: Debug: Skipping redundant host 'localhost'
Runtime constants:
 Control file       = /usr/local/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          = 10 seconds with start delay 0 seconds
 Expect buffer      = 256 bytes
 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  = Host/Net allow list

The service list contains the following entries:

Remote Host Name      = localhost
 Monitoring mode      = active
 Port                 = if failed 127.0.0.1:53 [DNS via UDP] with timeout 5 
seconds 1 times within 1 cycle(s) then exec '/usr/local/sbin/bgpctl network del 
IP_REMOVED' timeout 0 cycle(s) else if succeeded 1 times within 1 cycle(s) then 
exec '/usr/local/sbin/bgpctl network add IP_REMOVED' timeout 0 cycle(s)
 Port                 = if failed 127.0.0.1:53 [DNS via TCP] with timeout 5 
seconds 1 times within 1 cycle(s) then exec '/usr/local/sbin/bgpctl network del 
IP_REMOVED' timeout 0 cycle(s) else if succeeded 1 times within 1 cycle(s) then 
exec '/usr/local/sbin/bgpctl network add IP_REMOVED' timeout 0 cycle(s)

System Name           = REMOVED
 Monitoring mode      = active

-------------------------------------------------------------------------------
monit: pidfile '/var/run/monit.pid' does not exist
Starting monit daemon with http interface at [localhost:2812]


And here's a snippet of the log:

Aug 16 09:39:07 ops1 monit[82070]: 'localhost' succeeded connecting to 
INET[127.0.0.1:53] via UDP
Aug 16 09:39:07 ops1 monit[82070]: DNS: error receiving response -- Connection 
refused
Aug 16 09:39:07 ops1 kernel: Aug 16 09:39:07 ops1 monit[82070]: DNS: error 
receiving response -- Connection refused
Aug 16 09:39:07 ops1 monit[82070]: 'localhost' failed protocol test [DNS] at 
INET[127.0.0.1:53] via UDP
Aug 16 09:39:07 ops1 kernel: Aug 16 09:39:07 ops1 monit[82070]: 'localhost' 
failed protocol test [DNS] at INET[127.0.0.1:53] via UDP
Aug 16 09:39:07 ops1 monit[82070]: 'localhost' exec: /usr/local/sbin/bgpctl
Aug 16 09:39:07 ops1 monit[82070]: 'localhost' failed, cannot open a connection 
to INET[127.0.0.1:53] via TCP
Aug 16 09:39:07 ops1 kernel: Aug 16 09:39:07 ops1 monit[82070]: 'localhost' 
failed, cannot open a connection to INET[127.0.0.1:53] via TCP
Aug 16 09:39:07 ops1 monit[82070]: 'localhost' exec: /usr/local/sbin/bgpctl
Aug 16 09:39:17 ops1 monit[82070]: 'localhost' succeeded connecting to 
INET[127.0.0.1:53] via UDP
Aug 16 09:39:17 ops1 monit[82070]: DNS: error receiving response -- Connection 
refused
Aug 16 09:39:17 ops1 kernel: Aug 16 09:39:17 ops1 monit[82070]: DNS: error 
receiving response -- Connection refused
Aug 16 09:39:17 ops1 monit[82070]: 'localhost' failed protocol test [DNS] at 
INET[127.0.0.1:53] via UDP
Aug 16 09:39:17 ops1 kernel: Aug 16 09:39:17 ops1 monit[82070]: 'localhost' 
failed protocol test [DNS] at INET[127.0.0.1:53] via UDP
Aug 16 09:39:17 ops1 monit[82070]: 'localhost' exec: /usr/local/sbin/bgpctl
Aug 16 09:39:17 ops1 monit[82070]: 'localhost' failed, cannot open a connection 
to INET[127.0.0.1:53] via TCP
Aug 16 09:39:17 ops1 kernel: Aug 16 09:39:17 ops1 monit[82070]: 'localhost' 
failed, cannot open a connection to INET[127.0.0.1:53] via TCP
Aug 16 09:39:17 ops1 monit[82070]: 'localhost' exec: /usr/local/sbin/bgpctl

Thanks
Kimo



reply via email to

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