Package: monit
Version: 1:5.19.0-1
Severity: normal

Here's the beginning or my /var/log/monit.log.1 file:

[CEST Sep  9 07:35:07] info     : 'zira' Monit reloaded
[CEST Sep  9 07:35:07] error    : Queued event file: unable to read event size 
-- end of file
[CEST Sep 19 19:09:34] info     : Monit daemon with pid [793] stopped
[CEST Sep 19 19:09:34] info     : 'zira' Monit 5.19.0 stopped
[CEST Sep 19 19:09:34] error    : Cannot create socket to [localhost]:25 -- 
Connection refused
[CEST Sep 19 19:09:34] error    : Cannot open a connection to the mailserver 
localhost:25 -- Operation now in progress
[CEST Sep 19 19:09:34] error    : Mail: Delivery failed -- no mail server is 
available
[CEST Sep 19 19:09:34] info     : Adding event to the queue file 
/var/lib/monit/events/1474304974_8cf8f0 for later delivery
[CEST Sep 19 19:10:11] info     : Starting Monit 5.19.0 daemon
[CEST Sep 19 19:10:11] info     : 'zira' Monit 5.19.0 started
[CEST Sep 19 19:10:11] error    : Cannot create socket to [localhost]:25 -- 
Connection refused
[CEST Sep 19 19:10:11] error    : Cannot open a connection to the mailserver 
localhost:25 -- Operation now in progress
[CEST Sep 19 19:10:11] error    : Mail: Delivery failed -- no mail server is 
available
[CEST Sep 19 19:10:11] info     : Adding event to the queue file 
/var/lib/monit/events/1474305011_1babb20 for later delivery
[CEST Sep 19 19:10:11] error    : Queued event file: unable to read event size 
-- end of file
[CEST Sep 19 19:10:11] error    : Cannot create socket to [localhost]:25 -- 
Connection refused
[CEST Sep 19 19:10:11] error    : Cannot open a connection to the mailserver 
localhost:25 -- Operation now in progress
[CEST Sep 19 19:10:11] error    : Mail: Delivery failed -- no mail server is 
available
[CEST Sep 19 19:10:11] error    : Alert handler failed, retry scheduled for 
next cycle
[CEST Sep 19 19:10:11] error    : 'eth0' link down
[CEST Sep 19 19:10:11] error    : Cannot create socket to [localhost]:25 -- 
Connection refused
[CEST Sep 19 19:10:11] error    : Cannot open a connection to the mailserver 
localhost:25 -- Operation now in progress
[CEST Sep 19 19:10:11] error    : Mail: Delivery failed -- no mail server is 
available
[CEST Sep 19 19:10:11] info     : Adding event to the queue file 
/var/lib/monit/events/1474305011_1bbbd00 for later delivery
[CEST Sep 19 19:12:11] error    : Queued event file: unable to read event size 
-- end of file
[CEST Sep 19 19:12:11] info     : 'eth0' link up
[CEST Sep 19 19:14:11] error    : Queued event file: unable to read event size 
-- end of file
[CEST Sep 19 19:16:11] error    : Queued event file: unable to read event size 
-- end of file
[CEST Sep 19 19:18:11] error    : Queued event file: unable to read event size 
-- end of file
[CEST Sep 19 19:20:11] error    : Queued event file: unable to read event size 
-- end of file
[CEST Sep 19 19:22:11] error    : Queued event file: unable to read event size 
-- end of file
[CEST Sep 19 19:24:11] error    : Queued event file: unable to read event size 
-- end of file
[CEST Sep 19 19:26:11] error    : Queued event file: unable to read event size 
-- end of file
[CEST Sep 19 19:28:11] error    : Queued event file: unable to read event size 
-- end of file
[CEST Sep 19 19:30:11] error    : Queued event file: unable to read event size 
-- end of file
[CEST Sep 19 19:32:11] error    : Queued event file: unable to read event size 
-- end of file
[...]

At reload, everything is fine. Then one gets some errors during a reboot
as Monit cannot connect to the mailserver at this time, which is normal
since the mail server has been stopped before Monit. This is not a
problem, as I will receive the mail after the reboot. The problem is
the "Queued event file: unable to read event size -- end of file" errors
every 2 minutes after the reboot, which fill my log file.

This may be a long-standing bug, which I hadn't noticed until now.

In my monitrc file, I have in particular:

set mailserver localhost
set alert [email protected]

-- Package-specific info:

Monit config file /etc/monit/monitrc is *NOT* readable by reportbug.
Please, consider to rerun reportbug as root and *carefully* examine
reportbug's output (e.g., monitrc content), before sending it out.

Contents of /etc/monit/ directory:
/etc/monit:
total 32
drwxr-xr-x 2 root root  4096 2016-08-09 01:02:40 conf-available
drwxr-xr-x 2 root root  4096 2015-12-05 21:19:30 conf-enabled
drwxr-xr-x 2 root root  4096 2015-07-07 14:43:58 conf.d
-rw------- 1 root root 12176 2016-08-09 01:19:28 monitrc
drwxr-xr-x 2 root root  4096 2016-07-15 19:34:40 monitrc.d
drwxr-xr-x 2 root root  4096 2016-08-09 01:06:27 templates

/etc/monit/conf-available:
total 60
-rw-r--r-- 1 root root  481 2015-12-05 21:13:49 acpid
-rw-r--r-- 1 root root  640 2015-12-05 21:13:49 apache2
-rw-r--r-- 1 root root  455 2015-12-05 21:13:49 at
-rw-r--r-- 1 root root  691 2015-12-05 21:13:49 cron
-rw-r--r-- 1 root root  602 2015-12-05 21:13:49 mdadm
-rw-r--r-- 1 root root  669 2015-12-05 21:13:49 memcached
-rw-r--r-- 1 root root  703 2015-12-05 21:13:49 mysql
-rw-r--r-- 1 root root  521 2015-12-05 21:13:49 nginx
-rw-r--r-- 1 root root  471 2015-12-05 21:13:49 openntpd
-rw-r--r-- 1 root root  950 2015-12-05 21:13:49 openssh-server
-rw-r--r-- 1 root root  683 2015-12-05 21:13:49 pdns-recursor
-rw-r--r-- 1 root root 1421 2015-12-05 21:13:49 postfix
-rw-r--r-- 1 root root  869 2016-03-22 16:43:44 rsyslog
-rw-r--r-- 1 root root  501 2015-12-05 21:13:49 smartmontools
-rw-r--r-- 1 root root  306 2016-02-04 15:03:50 snmpd

/etc/monit/conf-enabled:
total 0

/etc/monit/conf.d:
total 4
-rw-r--r-- 1 root root 357 2015-07-07 14:43:58 eth0

/etc/monit/monitrc.d:
total 64
-rw-r--r-- 1 root root  481 2015-06-09 15:52:48 acpid
-rw-r--r-- 1 root root  640 2015-06-09 15:52:48 apache2
-rw-r--r-- 1 root root  455 2015-06-09 15:52:48 at
-rw-r--r-- 1 root root  691 2015-06-09 15:52:48 cron
-rw-r--r-- 1 root root  408 2015-04-29 06:12:16 fail2ban
-rw-r--r-- 1 root root  602 2015-06-09 15:52:48 mdadm
-rw-r--r-- 1 root root  669 2015-06-09 15:52:48 memcached
-rw-r--r-- 1 root root  703 2015-06-09 15:52:48 mysql
-rw-r--r-- 1 root root  521 2015-06-09 15:52:48 nginx
-rw-r--r-- 1 root root  471 2015-06-09 15:52:48 openntpd
-rw-r--r-- 1 root root  950 2015-06-09 15:52:48 openssh-server
-rw-r--r-- 1 root root  683 2015-06-09 15:52:48 pdns-recursor
-rw-r--r-- 1 root root 1421 2015-06-09 15:52:48 postfix
-rw-r--r-- 1 root root  867 2015-06-09 15:52:48 rsyslog
-rw-r--r-- 1 root root  501 2015-06-09 15:52:48 smartmontools
-rw-r--r-- 1 root root  310 2015-06-09 15:52:48 snmpd

/etc/monit/templates:
total 12
-rw-r--r-- 1 root root 164 2015-06-09 15:52:48 rootbin
-rw-r--r-- 1 root root 160 2015-06-09 15:52:48 rootrc
-rw-r--r-- 1 root root 164 2015-06-09 15:52:48 rootstrict


-- System Information:
Debian Release: stretch/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 
'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.7.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages monit depends on:
ii  libc6        2.24-3
ii  libpam0g     1.1.8-3.3
ii  libssl1.0.2  1.0.2j-1
ii  lsb-base     9.20160629

monit recommends no packages.

Versions of packages monit suggests:
ii  postfix [mail-transport-agent]  3.1.0-5+b1
pn  sysvinit-core                   <none>

-- Configuration Files:
/etc/monit/monitrc [Errno 13] Permission denied: u'/etc/monit/monitrc'

-- no debconf information

Reply via email to