Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-8004

Zabbix Agent on LXC Container - show wrong Uptime

XMLWordPrintable

    • Icon: Change Request Change Request
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 6.0.9
    • Agent (G)
    • None
    • Rocky Linux

      Dear DevTeam,
      I have seen a strange behaviour on a LXC container during my lab tests.
      The Item key "system.uptime" show the "uptime" of the main host (HyperVisor...) and not the right one exposed on "/proc/uptime".
      From my research could be related on where the Zabbix Agent collect this information, some other monitoring tool are looking on "/proc/stat" btime value. In this case on my system the value represent the "host uptime" and not the Container uptime.

      [root@lab1 ~]# cat /proc/stat|grep btime
      btime 1661878328
      
      root@lab1 ~]# uptime
       10:57:58 up 5 days, 17:53,  2 users,  load average: 1.55, 1.87, 1.80
      

      This behaviour could be fixed from Zabbix Agent side or is related to LXC?
      Thanks

            vso Vladislavs Sokurenko
            dimitri.bellini Dimitri Bellini
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: