12/9/2023 0 Comments Processor temp monitor powershellIn this case, store your file in the following subfolder of the PRTG program directory: If your executable or script returns XML or JSON, you use it with the EXE/Script Advanced sensor. For the standard EXE/Script sensor, this is the following subfolder of the PRTG program directory: bat), VBS scripts (.vbs), or PowerShell scripts (.ps1) into a subfolder of the PRTG program directory. Place executables (.exe), batch files (.cmd. In a cluster, you must store it on each cluster node. You must create the sensor as a file and store it in a specific subfolder on the probe system. Escape Special Characters and Whitespaces in Parameters.Advanced Script, HTTP Data, and REST Custom Sensors: Elements.Advanced Script, HTTP Data, and REST Custom Sensors.Return Values for EXE/BAT/CMD/VBS/PowerShell/SSH Sensors.Interface Definition for EXE/BAT/CMD/VBS/PowerShell/SSH Sensors.Standard and Advanced SSH Script Sensor.Standard and Advanced EXE/Script Sensor.vbs, or PowerShell file, as well as a Python or Secure Shell (SSH) script. The defined XML and JSON formats for the advanced sensors are also used for advanced HTTP data sensors and the REST Custom sensor.įor more information about custom sensors based on SNMP, Windows Management Instrumentation (WMI), Packet Sniffing, and Flow (NetFlow, jFlow, sFlow, IPFIX), see the respective custom sensors.įor each sensor interval, PRTG can run an external process. The following documentation describes the custom EXE/Script, Python Script, and SSH Script sensors. exe file, using any Windows software development tool, and you can request any Representational State Transfer (REST) application programming interface (API) that returns JavaScript Object Notation (JSON) or Extensible Markup Language (XML) and map the results to channels. Apart from parameterized versions of Simple Network Management Protocol (SNMP), Packet Sniffer, and NetFlow sensors, you can create your own sensors using Windows Management Instrumentation Query Language (WQL) or Python, by compiling an. _PATH : \\Demo-PC\root\wmi:MSAcpi_ThermalZoneTemperature.Custom sensors can perform a number of monitoring tasks that extend the standard sensor set. _RELPATH : MSAcpi_ThermalZoneTemperature.InstanceName=”ACPI\\ThermalZone\\PCHZ_0″ _RELPATH : MSAcpi_ThermalZoneTemperature.InstanceName=”ACPI\\ThermalZone\\CHGZ_0″ _PATH : \\Demo-PC\root\wmi:MSAcpi_ThermalZoneTemperature.InstanceName=”ACPI\\ThermalZone\\BATZ_0″ _RELPATH : MSAcpi_ThermalZoneTemperature.InstanceName=”ACPI\\ThermalZone\\BATZ_0″ _PATH : \\Demo-PC\root\wmi:MSAcpi_ThermalZoneTemperature.InstanceName=”ACPI\\ThermalZone\\LOCZ_0″ _RELPATH : MSAcpi_ThermalZoneTemperature.InstanceName=”ACPI\\ThermalZone\\LOCZ_0″ _PATH : \\Demo-PC\root\wmi:MSAcpi_ThermalZoneTemperature.InstanceName=”ACPI\\ThermalZone\\EXTZ_0″ _RELPATH : MSAcpi_ThermalZoneTemperature.InstanceName=”ACPI\\ThermalZone\\EXTZ_0″ _PATH : \\Demo-PC\root\wmi:MSAcpi_ThermalZoneTemperature.InstanceName=”ACPI\\ThermalZone\\GFXZ_0″ _RELPATH : MSAcpi_ThermalZoneTemperature.InstanceName=”ACPI\\ThermalZone\\GFXZ_0″ _PATH : \\Demo-PC\root\wmi:MSAcpi_ThermalZoneTemperature.InstanceName=”ACPI\\ThermalZone\\CPUZ_0″ _RELPATH : MSAcpi_ThermalZoneTemperature.InstanceName=”ACPI\\ThermalZone\\CPUZ_0″ _PATH : \\Demo-PC\root\wmi:MSAcpi_ThermalZoneTemperature.InstanceName=”ACPI\\ThermalZone\\HEPZ_0″ _RELPATH : MSAcpi_ThermalZoneTemperature.InstanceName=”ACPI\\ThermalZone\\HEPZ_0″ Get-CimInstance -Namespace root/WMI -ClassName MSAcpi_ThermalZoneTemperature If your laptop comes on inside your bag and gets hot, it will shutdown automatically. You may need to modify ACPI\ThermalZone\ CPUZ_0 to ACPI\ThermalZone\ CPUZ_1…2…3, etc., until you find the appropriate CPU. Other CPUs may be listed as TZ0_0, TZ00_0, TZ001_0, THM0_0.Īdd script to task scheduler as a task (check every 15 to 30 minutes, or so). Write-host "Current Temperature: $Fahrenheit F" $temperatures = Get-WmiObject MSAcpi_ThermalZoneTemperature -Namespace "root/wmi" | Select-Object -Property InstanceName,CurrentTemperature | where InstanceName -eq "ACPI\ThermalZone\CPUZ_0"
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |