Your message dated Mon, 7 Oct 2019 14:07:38 +0300
with message-id <20191007110738.GA26769@note>
and subject line Re: monit: no systemctl file for monit
has caused the Debian Bug report #941075,
regarding monit: no systemctl file for monit
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
941075: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=941075
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: monit
Version: 1:5.26.0-1~bpo10+1
Severity: important
The current monit package does not include a systemctl file, often resulting in
monit not running. If I'd check the status with systemctl the result was:
active(exited) see also: https://unix.stackexchange.com/questions/241970/what-
does-status-active-exited-mean-for-a-systemd-service
Now for example puppet can't check it's not running because systemctl says it's
running when it isn't.
Easy fix: add a systemd file and remove the /etc/init.d/monit file
Here is an example which I installed with puppet, fixing this problem for me.
[Unit]
Description=Pro-active monitoring utility for unix systems
After=network.target
[Service]
Type=simple
ExecStart=/usr/bin/monit -I
ExecStop=/usr/bin/monit quit
ExecReload=/usr/bin/monit reload
[Install]
WantedBy=multi-user.target
-- 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 17 Aug 9 15:04 conf-available
drwxr-xr-x 2 root root 2 Jan 11 2017 conf-enabled
drwxr-xr-x 2 root root 2 Jan 11 2017 conf.d
drwx------ 2 root root 3 Sep 9 09:29 monit.d
-rw------- 1 root root 765 Aug 28 12:00 monitrc
-rw------- 1 root root 13111 Jul 13 07:21 monitrc.dpkg-dist
drwxr-xr-x 2 root root 5 Aug 9 15:04 templates
/etc/monit/conf-available:
total 68
-rw-r--r-- 1 root root 481 Jan 11 2017 acpid
-rw-r--r-- 1 root root 640 Jan 11 2017 apache2
-rw-r--r-- 1 root root 455 Jan 11 2017 at
-rw-r--r-- 1 root root 691 Jan 11 2017 cron
-rw-r--r-- 1 root root 602 Jan 11 2017 mdadm
-rw-r--r-- 1 root root 669 Jan 11 2017 memcached
-rw-r--r-- 1 root root 703 Jan 11 2017 mysql
-rw-r--r-- 1 root root 521 Jan 11 2017 nginx
-rw-r--r-- 1 root root 471 Jan 11 2017 openntpd
-rw-r--r-- 1 root root 831 Jul 13 07:21 openssh-server
-rw-r--r-- 1 root root 683 Jan 11 2017 pdns-recursor
-rw-r--r-- 1 root root 1426 Jul 13 07:21 postfix
-rw-r--r-- 1 root root 869 Jan 11 2017 rsyslog
-rw-r--r-- 1 root root 501 Jan 11 2017 smartmontools
-rw-r--r-- 1 root root 306 Jan 11 2017 snmpd
/etc/monit/conf-enabled:
total 0
/etc/monit/conf.d:
total 0
/bin/ls: cannot open directory '/etc/monit/monit.d': Permission denied
/etc/monit/templates:
total 14
-rw-r--r-- 1 root root 164 Jan 11 2017 rootbin
-rw-r--r-- 1 root root 160 Jan 11 2017 rootrc
-rw-r--r-- 1 root root 164 Jan 11 2017 rootstrict
-- System Information:
Debian Release: 10.1
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.0.21-2-pve (SMP w/4 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages monit depends on:
ii libc6 2.28-10
ii libpam0g 1.3.1-5
ii libssl1.1 1.1.1c-1
ii lsb-base 10.2019051400
ii zlib1g 1:1.2.11.dfsg-1
monit recommends no packages.
Versions of packages monit suggests:
ii postfix [mail-transport-agent] 3.4.5-1
pn sysvinit-core <none>
-- Configuration Files:
/etc/monit/monitrc [Errno 13] Permission denied: '/etc/monit/monitrc'
-- no debconf information
--- End Message ---
--- Begin Message ---
No signs of life, closing.
On Tue, 24 Sep 2019 11:38:52 +0200 Han Boetes <[email protected]> wrote:
> Package: monit
> Version: 1:5.26.0-1~bpo10+1
> Severity: important
>
> The current monit package does not include a systemctl file, often resulting
> in
> monit not running. If I'd check the status with systemctl the result was:
> active(exited) see also: https://unix.stackexchange.com/questions/241970/what-
> does-status-active-exited-mean-for-a-systemd-service
>
> Now for example puppet can't check it's not running because systemctl says
> it's
> running when it isn't.
>
> Easy fix: add a systemd file and remove the /etc/init.d/monit file
>
> Here is an example which I installed with puppet, fixing this problem for me.
>
> [Unit]
> Description=Pro-active monitoring utility for unix systems
> After=network.target
>
> [Service]
> Type=simple
> ExecStart=/usr/bin/monit -I
> ExecStop=/usr/bin/monit quit
> ExecReload=/usr/bin/monit reload
>
> [Install]
> WantedBy=multi-user.target
>
>
>
> -- 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 17 Aug 9 15:04 conf-available
> drwxr-xr-x 2 root root 2 Jan 11 2017 conf-enabled
> drwxr-xr-x 2 root root 2 Jan 11 2017 conf.d
> drwx------ 2 root root 3 Sep 9 09:29 monit.d
> -rw------- 1 root root 765 Aug 28 12:00 monitrc
> -rw------- 1 root root 13111 Jul 13 07:21 monitrc.dpkg-dist
> drwxr-xr-x 2 root root 5 Aug 9 15:04 templates
>
> /etc/monit/conf-available:
> total 68
> -rw-r--r-- 1 root root 481 Jan 11 2017 acpid
> -rw-r--r-- 1 root root 640 Jan 11 2017 apache2
> -rw-r--r-- 1 root root 455 Jan 11 2017 at
> -rw-r--r-- 1 root root 691 Jan 11 2017 cron
> -rw-r--r-- 1 root root 602 Jan 11 2017 mdadm
> -rw-r--r-- 1 root root 669 Jan 11 2017 memcached
> -rw-r--r-- 1 root root 703 Jan 11 2017 mysql
> -rw-r--r-- 1 root root 521 Jan 11 2017 nginx
> -rw-r--r-- 1 root root 471 Jan 11 2017 openntpd
> -rw-r--r-- 1 root root 831 Jul 13 07:21 openssh-server
--- End Message ---