Ad Widget

Collapse

Unknown metric vm.memory.util Windows by Zabbix agent active

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Pilchu99
    Junior Member
    • Jul 2024
    • 4

    #1

    Unknown metric vm.memory.util Windows by Zabbix agent active

    Hello,

    I have a problem with the "Windows by Zabbix agent active" template. The "Memory utilization" item is not updating and has the status "Unknown metric vm.memory.util". When I switch the template to "Windows by Zabbix agent", the issue does not occur. Both the Zabbix server and Agent2 are version 7.0.1. This problem does not occur with a host using the "Linux by Zabbix agent active" template. Below is the agent config:
    LogType=file
    LogFile=C:\Program Files\Zabbix Agent 2\zabbix_agent2.log
    Server=my.zabbix.server
    ListenPort=10050
    ServerActive=my.zabbix.server
    Hostname=WINDOWS
    Include=C:\Program Files\Zabbix Agent 2\zabbix_agent2.d\
    ControlSocket=\\.\pipe\agent.sock
    TLSConnect=psk
    TLSAccept=psk
    TLSPSKIdentity=WINDOWS
    TLSPSKFile=C:\Program Files\Zabbix Agent 2\psk.key
    ForceActiveChecksOnStart=1
    Include=.\zabbix_agent2.d\plugins.d\*.conf

    Could you please help me resolve this issue?




  • Answer selected by Pilchu99 at 29-07-2024, 12:05.
    Markku
    Senior Member
    Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
    • Sep 2018
    • 1781

    There is no auto-update for the templates, you need to consider updating them one by one if needed.

    Markku

    Comment

    • Markku
      Senior Member
      Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
      • Sep 2018
      • 1781

      #2
      In the latest 7.0 template (https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/os/windows_agent_active/template_os_windows_agent_active.yaml?at=refs%2Fhe ads%2Frelease%2F7.0) there is a calculated item for vm.memory.util:

      Code:
       - uuid: 9b62965a4670472b8c672dc1021bb8fd
         name: 'Memory utilization'
         type: CALCULATED
         key: vm.memory.util
         value_type: FLOAT
         units: '%'
         params: 'last(//vm.memory.size[used]) / last(//vm.memory.size[total]) * 100'
         description: 'Memory utilization in %.'
      So maybe update the template? How is your current "Memory utilization" item configured?

      Markku

      Comment

      • Pilchu99
        Junior Member
        • Jul 2024
        • 4

        #3
        Markku,
        Thank you so much, it was that. My template was out of update. I didn't know that i have to manually update templates. Is there any method to automate this or can i bulk update all templates to 7.0?

        Comment

        • Markku
          Senior Member
          Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
          • Sep 2018
          • 1781

          #4
          There is no auto-update for the templates, you need to consider updating them one by one if needed.

          Markku

          Comment

          • Pilchu99
            Junior Member
            • Jul 2024
            • 4

            #5
            thanks for the explanation

            Comment

            • jhboricua
              Senior Member
              • Dec 2021
              • 113

              #6
              I wonder what is the rationale for not having the same key for memory utilization between Linux (vm.memory.utilization) and Windows (vm.memory.util) in the official templates, as they do for cpu utilization (system.cpu.util). Always end up having to modify the template to make them the same and not break my dashboards.

              Comment

              Working...