upload rate does not count traffic in an hour

Issue #1076 new
Andrea Davanzo created an issue

Configuration: virtual machine with Ubuntu 22.04, Monit 5.31.0, external server with M/Monit version 3.7.14-linux-x64.

@19:07:29 UTC 2023 ip -h -s link command reports

2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
    RX:  bytes packets errors dropped  missed   mcast           
          429M   1.16M      0       0       0       0 
    TX:  bytes packets errors dropped carrier collsns           
          922M    933k      0       0       0       0 

@20:05:03 UTC 2023 ip -h -s link command reports

2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
    RX:  bytes packets errors dropped  missed   mcast           
          492M   1.33M      0       0       0       0 
    TX:  bytes packets errors dropped carrier collsns           
         1.08G   1.07M      0       0       0       0 

The traffic in the last hour is about 160MB and not 1GB as reported by M/Monit: total upload 1.0 GB matches limit [upload rate > 1 GB in last 1 hour]

The problem does not happen with Ubuntu 18.04, Monit 5.25.1

Comments (2)

  1. hauk

    So either 1) there is a problem with the virtual machine on Ubuntu 22.04 or 2) with Monit 5.31.0. Could you test Monit 5.25.1 on Ubuntu 22.04 or Monit 5.31.0 on Ubuntu 18.04 to see if the problem is with Monit or with Ubuntu? I know it is tempting to assume the problem is with Monit, but it might not be the case.

  2. Log in to comment