monit-general
[Top][All Lists]
Advanced

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

Re: [monit] monit 4.10


From: Martin Pala
Subject: Re: [monit] monit 4.10
Date: Tue, 06 Nov 2007 21:21:22 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.6) Gecko/20070802 Iceape/1.1.4 (Debian-1.1.4-1)

Thanks for report :)

This bug was introduced in monit 4.10 (and unfortunately passed the testing) - the message is delivered correctly, but monit reports the delivery failed.

If monit is configured with the event queue, then it will spool the alert and try to deliver it next cycle again, se the message will be delivered several times.


Fix is ready, i'll release monit-4.10.1 in few hours.


Martin



monit user wrote:
On Fedora 6/7/8 x86_64 I am getting :

error : Alert handler failed, retry scheduled for next cycle

for some reason. (monit 4.9 works fine)

selected portion of "strace -f monit -Iv" :

[pid 21753] select(8, [7], NULL, NULL, {0, 0}) = 0 (Timeout)
[pid 21753] write(7, "Monit instance changed Service 1"..., 214) = 214
[pid 21753] read(7, 0x8368284, 1024) = -1 EAGAIN (Resource temporarily unavailable)
[pid 21753] select(8, [7], NULL, NULL, {0, 0}) = 0 (Timeout)
[pid 21753] write(7, ".\r\n", 3)        = 3
[pid 21753] read(7, 0x8368284, 1024) = -1 EAGAIN (Resource temporarily unavailable) [pid 21753] select(8, [7], NULL, NULL, {5, 0}) = 1 (in [7], left {4, 961000})
[pid 21753] read(7, "250 2.0.0 Ok: queued as 83CE76D0"..., 1024) = 36
[pid 21753] read(7, 0x83682a8, 988) = -1 EAGAIN (Resource temporarily unavailable)
[pid 21753] select(8, [7], NULL, NULL, {0, 0}) = 0 (Timeout)
[pid 21753] read(7, 0x8368284, 1024) = -1 EAGAIN (Resource temporarily unavailable)
[pid 21753] select(8, [7], NULL, NULL, {0, 0}) = 0 (Timeout)
[pid 21753] write(7, "QUIT\r\n", 6)     = 6
[pid 21753] read(7, "221 2.0.0 Bye\r\n", 1024) = 15
[pid 21753] read(7, "", 1009)           = 0
[pid 21753] shutdown(7, 2 /* send and receive */) = 0
[pid 21753] close(7)                    = 0
[pid 21753] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
[pid 21753] write(2, "Alert handler failed, retry sche"..., 53Alert handler failed, retry scheduled for next cycle
) = 53
[pid 21753] time(NULL)                  = 1194351292
[pid 21753] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2819, ...}) = 0 [pid 21753] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2819, ...}) = 0 [pid 21753] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2819, ...}) = 0
[pid 21753] write(3, "[PST Nov  6 04:14:52] error    :"..., 33) = 33
[pid 21753] write(3, "Alert handler failed, retry sche"..., 53) = 53
[pid 21753] close(6)                    = 0
[pid 21753] munmap(0xb7f5f000, 4096)    = 0
[pid 21753] getdents64(5, /* 0 entries */, 4096) = 0
[pid 21753] close(5)                    = 0



# monit -Iv
monit: Debug: Adding credentials for user 'admin'.
Runtime constants:
 Control file       = /etc/monitrc
 Log file           = /var/log/monit/monit.log
 Pid file           = /var/run/monit.pid
 Debug              = True
 Log                = True
 Use syslog         = False
 Is Daemon          = True
 Use process engine = True
 Poll time          = 360 seconds
 Event queue        = base directory /var/lib/monit with 50 slots
 Mail server(s)     = 127.0.0.1:25
 Mail from          = (not defined)
 Mail subject       = (not defined)
 Mail message       = (not defined)
 Start monit httpd  = True
 httpd bind address = Any/All
 httpd portnumber   = 512
 httpd signature    = True
 Use ssl encryption = False
 httpd auth. style  = Basic Authentication
 Alert mail to      = address@hidden
   Alert on         = All events

The service list contains the following entries:

System Name           = 10.1.1.1
 Monitoring mode      = active
Load avg. (1min) = if greater than 1.0 1 times within 1 cycle(s) then alert else if passed 1 times within 1 cycle(s) then alert

-------------------------------------------------------------------------------
monit: pidfile '/var/run/monit.pid' does not exist
Starting monit daemon with http interface at [*:512]
Starting monit HTTP server at [*:512]
monit HTTP server started
Monit started
Monit instance changed notification is sent to address@hidden
monit: Adding event to the queue file /var/lib/monit/1194350287_10.1.1.1 for later delivery
Processing postponed events queue
monit: processing queued event /var/lib/monit/1194350287_10.1.1.1
Monit instance changed notification is sent to address@hidden
Alert handler failed, retry scheduled for next cycle
'10.1.1.1' loadavg(1min) check passed [current loadavg(1min)=0.0]
Monit has not changed
Processing postponed events queue
monit: processing queued event /var/lib/monit/1194350287_10.1.1.1
Monit instance changed notification is sent to address@hidden
Alert handler failed, retry scheduled for next cycle
'10.1.1.1' loadavg(1min) check passed [current loadavg(1min)=0.0]


--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general




reply via email to

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