Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. Windows Temperature Monitoring Solution

Windows Temperature Monitoring Solution

Scheduled Pinned Locked Moved Support
2 Posts 2 Posters 113.8k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G
    G
    glenns
    wrote on last edited by
    #1

    Hi Guys,

    I thought some of you might find this useful, I've been working on a method to get temperature monitoring on our windows machines and this is working really well.

    First you'll need to install Open Hardware Monitor on the machine you wish to monitor.
    (http://openhardwaremonitor.org/downloads/)
    Once installed this will collect temperature, voltage, fan speed etc (depending on your hardware sensors) and make all this information available via WMI  🙂

    You will need the WMI Subagent in your agent config: SubAgent = wmi.nsm

    You will then need to create some DCI's to collect the information, for example:

    WMI.Query(root\OpenHardwareMonitor,SELECT * FROM Sensor WHERE Instanceid=3849, Value)
    

    The value of InstanceID can be found using another tool, WMI Explorer. (https://wmie.codeplex.com/)

    With WMI Explorer connect to the machine running Open Hardware Monitor, goto the root\OpenHardwareMonitor namespace, select the Sensor class and find the instance value of the Monitor you wish to collect information on.

    I have been trying to make some WMI queries that will work from templates.  By using a more complex SQL query to filter the results without having to lookup the InstanceID, I've had some success with the following example.

    WMI.Query(root\OpenHardwareMonitor,SELECT * FROM Sensor WHERE Name LIKE "'%CPU%'" AND SensorType="'Temperature'" AND Index=0 , Value)
    

    Hope you find this useful,

    1 Reply Last reply
    0
    • F
      F
      Benjamin Dill
      wrote on last edited by
      #2

      I've used this solution in past and it works very well.
      Actually I've added an ExternalList, so the available sensors can be discovered by instance discovery.

      Line in Agent config file:

      ExternalList = OpenHardwareMonitor.Sensors:powershell -NonInteractive -Command "& { get-wmiobject -namespace root\OpenHardwareMonitor -query 'select * from Sensor' | foreach { $$_.InstanceId } }"
      

      WMI.Query(root\OpenHardwareMonitor,"select * from Sensor where InstanceId='{instance}'",Value)
      

      SensorType 	= AgentReadParameter($node, "WMI.Query(root\OpenHardwareMonitor,\"select * from Sensor where InstanceId='" . $1 . "'\",SensorType)");
      Name 		= AgentReadParameter($node, "WMI.Query(root\OpenHardwareMonitor,\"select * from Sensor where InstanceId='" . $1 . "'\",Name)");
      Identifier 	= AgentReadParameter($node, "WMI.Query(root\OpenHardwareMonitor,\"select * from Sensor where InstanceId='" . $1 . "'\",Identifier)");
      
      return %(SensorType == "Temperature", $1, Name . "  [" . Identifier . "]");
      
      1 Reply Last reply
      0
      • A Alex Kirhenshtein unpinned this topic

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      Powered by NodeBB Contributors
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups