Package: monit
Version: 1:5.32.0-1~bpo11+1
Severity: normal
X-Debbugs-Cc: sujiannm...@gmail.com

Dear Maintainer,

   * What led up to the situation?
     My custom bash script called by Monit seems to be caching old failed 
results which caused monit to run the monitored service restart command 
unnecessarily.
     If I run the monitoring script manually, there is no error, but monit runs 
indicate otherwise.
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
     restarted monit
   * What was the outcome of this action?
     Custom script output reported correctly.


-- 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 48
drwxr-xr-x 2 root root  4096 May 23 13:59 conf-available
drwxr-xr-x 2 root root    95 May 23 13:59 conf-enabled
drwxr-xr-x 2 root root     6 Jul 13  2019 conf.d
-rwxr-xr-x 1 root root    45 Nov  1  2020 monit-start.sh
-rw------- 1 root root   653 Mar 30 23:11 monitrc
-rw------- 1 root root 13503 May 12  2022 monitrc.dpkg-dist
-rw------- 1 root root   589 Feb 28 23:55 monitrc.old
drwxr-xr-x 2 root root    53 Mar 30 23:08 templates

/etc/monit/conf-available:
total 88
-rw-r--r-- 1 root root  481 Jul 13  2019 acpid
-rw-r--r-- 1 root root  640 Jul 13  2019 apache2
-rw-r--r-- 1 root root  455 Jul 13  2019 at
-rw-r--r-- 1 root root  691 Jul 13  2019 cron
-rw-r--r-- 1 root root  258 Mar 29 09:38 dnsmasq
-rw-r--r-- 1 root root  129 Mar 20 19:22 internet
-rw-r--r-- 1 root root  602 Jul 13  2019 mdadm
-rw-r--r-- 1 root root  669 Jul 13  2019 memcached
-rw-r--r-- 1 root root  703 Jul 13  2019 mysql
-rw-r--r-- 1 root root  227 Mar 21 11:31 nginx
-rw-r--r-- 1 root root  521 Jul 13  2019 nginx.orig
-rw-r--r-- 1 root root  471 Jul 13  2019 openntpd
-rw-r--r-- 1 root root 1200 Oct 25  2020 openssh-server
-rw-r--r-- 1 root root 1114 May 23 13:59 openvpn
-rw-r--r-- 1 root root  683 Jul 13  2019 pdns-recursor
-rw-r--r-- 1 root root 1426 Jul 13  2019 postfix
-rw-r--r-- 1 root root  869 Jul 13  2019 rsyslog
-rw-r--r-- 1 root root  501 Jul 13  2019 smartmontools
-rw-r--r-- 1 root root  306 Jul 13  2019 snmpd
-rw-r--r-- 1 root root  139 Apr  1 17:59 speedtest
-rw-r--r-- 1 root root  299 Mar 20 19:23 squid

/etc/monit/conf-enabled:
total 0
lrwxrwxrwx 1 root root 25 Mar 20 19:43 dnsmasq -> ../conf-available/dnsmasq
lrwxrwxrwx 1 root root 26 Nov  1  2020 internet -> ../conf-available/internet
lrwxrwxrwx 1 root root 23 Mar 21 11:04 nginx -> ../conf-available/nginx
lrwxrwxrwx 1 root root 25 Nov  2  2020 openvpn -> ../conf-available/openvpn
lrwxrwxrwx 1 root root 27 Apr  1 17:59 speedtest -> ../conf-available/speedtest
lrwxrwxrwx 1 root root 23 Jun 25  2021 squid -> ../conf-available/squid

/etc/monit/conf.d:
total 0

/etc/monit/templates:
total 12
-rw-r--r-- 1 root root 164 Jul 13  2019 rootbin
-rw-r--r-- 1 root root 160 Jul 13  2019 rootrc
-rw-r--r-- 1 root root 164 Jul 13  2019 rootstrict


-- System Information:
Debian Release: 11.7
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 5.10.0-22-686-pae (SMP w/2 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages monit depends on:
ii  init-system-helpers  1.60
ii  libc6                2.31-13+deb11u6
ii  libcrypt1            1:4.4.18-4
ii  libpam0g             1.4.0-9+deb11u1
ii  libssl1.1            1.1.1n-0+deb11u4
ii  lsb-base             11.1.0
ii  zlib1g               1:1.2.11.dfsg-2+deb11u2

monit recommends no packages.

Versions of packages monit suggests:
ii  exim4-daemon-light [mail-transport-agent]  4.94.2-7
pn  sysvinit-core                              <none>

-- Configuration Files:
/etc/monit/conf-available/nginx changed [not included]
/etc/monit/monitrc [Errno 13] Permission denied: '/etc/monit/monitrc'

-- no debconf information

Reply via email to