Monit report wrong memory usage on Raspberry Pi 4

Issue #1022 duplicate
Dominique Da Silva created an issue

I actually have monit v5.25.2 installed with apt on my Raspberry Pi 4 and I wanted to update to the last release v5.29.0, I simply downloaded the binary for my architecture linux-arm32 and copied to /usr/bin

After starting this version, the memory usage reported by monit is wrong.

System 'rpi4'
  status                       Resource limit matched
  monitoring status            Monitored
  monitoring mode              active
  on reboot                    start
  load average                 [0.18] [0.22] [0.19]
  cpu                          0.8%usr 1.1%sys 0.0%nice 0.0%iowait 0.0%hardirq 0.0%softirq 0.0%steal 0.0%guest 0.0%guestnice
  memory usage                 16 EB [485528240128.0%]
  swap usage                   0 B [0.0%]
  uptime                       12h 42m
  boot time                    Wed, 08 Dec 2021 01:36:12
  filedescriptors              3968 [0.0% of 2147483647 limit]
  data collected               Wed, 08 Dec 2021 14:17:54

The configuration is:

check system $HOST
  if loadavg (1min) > 4 then alert
  if loadavg (5min) > 2 then alert
  if cpu usage > 95% for 10 cycles then alert
  if memory usage > 75% then alert
  if swap usage > 25% then alert

cat /proc/cpuinfo

MemTotal:        7904572 kB
MemFree:         5890932 kB
MemAvailable:    7195936 kB
Buffers:          219356 kB
Cached:          1325420 kB
SwapCached:            0 kB
Active:           806960 kB
Inactive:        1031468 kB

Comments (3)

  1. Dominique Da Silva reporter

    Thanks, I installed the 2.28.0 version in the meanwhile. Sorry for the additional issue.

  2. Log in to comment