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

Zabbix Agent on LXC Container - show wrong Uptime

    XMLWordPrintable

Details

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

    Description

      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.

      [[email protected] ~]# cat /proc/stat|grep btime
      btime 1661878328
      
      [email protected] ~]# 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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: