Ad Widget

Collapse

CPU monitoring in GHz

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ozumu
    Junior Member
    • Jul 2024
    • 8

    #1

    CPU monitoring in GHz

    Hello, I have a problem that I don't know how to solve. I want to monitor the CPU usage in GHz (as attached in the image), and I can't find what to put in the Key to show it to me.

    Click image for larger version

Name:	image.png
Views:	336
Size:	45.5 KB
ID:	488755

    If anyone knows the corresponding key, it would be a great help.
  • Brambo
    Senior Member
    • Jul 2023
    • 245

    #2
    not sure if the agent can do this by default (doesn't seem like it). But with a system run command, doing the following powershell command will give you the current speed in Mhz
    Code:
    Get-WmiObject -Class Win32_Processor -Property CurrentClockSpeed | Select CurrentClockSpeed
    output is (in my current situation) which is actually the Base Speed of your screenshot.
    CurrentClockSpeed
    -----------------
    2000

    Optional if you want load per logical core:
    Code:
    Get-CimInstance -Query "select Name, PercentProcessorTime from Win32_PerfFormattedData_PerfOS_Processor" | Select Name, PercentProcessorTime
    gives output like
    Name PercentProcessorTime
    ---- --------------------
    0 23
    1 5
    2 40
    3 28
    4 23
    5 11
    6 0
    7 5
    _Total 17
    Total is sum of all divided by amount cores.
    With
    Code:
    Get-CimInstance -Query "select Name, PercentProcessorTime from Win32_PerfFormattedData_PerfOS_Processor" | Select Name, PercentProcessorTime | ConvertTo-Json
    You get a json output which you then can use in LLD to auto populate your host
    Last edited by Brambo; 01-08-2024, 08:38. Reason: added extra options

    Comment

    • ozumu
      Junior Member
      • Jul 2024
      • 8

      #3
      Thanks for the reply, I'm checking within my infrastructure, and I'm sharing a screenshot of vSphere accessing the server (which is Windows) and seeing the performance, I would like to be able to bring the value that is shown in that graph.
      If you could help me out on how to do this, I would appreciate it.
      Attached Files

      Comment

      • Brambo
        Senior Member
        • Jul 2023
        • 245

        #4
        Why do it the hard way then and not use the vmware: cpu usage item from the Vmware template.
        VMware hypervisor and VMware guest template both have this item.

        Comment

        • ozumu
          Junior Member
          • Jul 2024
          • 8

          #5
          I'll try it with the template.
          Thanks

          Comment

          Working...