Skip to main content
Version: v1.6.x

Monitoring:Using Scripts to Monitor Windows Operating System

Preparation

To monitor the local machine, simply deploy Hertzbeat. To monitor other hosts, you need to deploy a collector on the target host. Refer to this link for step 5 of the installation process. When creating a monitoring task and selecting a collector, choose the corresponding collector deployed on the target host.

Configuration Parameters

Parameter NameParameter Description
Monitor HostThe IPv4, IPv6, or domain of the monitored endpoint. Note ⚠️ Do not include protocol headers (e.g., https://, http://).
Task NameThe name identifying this monitoring task, which needs to be unique.
CollectorSpecifies which collector will be used for data collection in this monitoring task.
Monitoring IntervalThe time interval for periodic data collection, in seconds.
Binding TagClassification management tags for monitoring resources.
Description NotesAdditional notes to describe this monitoring task. Users can add remarks here.

Metrics Collection

Metric Set: basic

Metric NameMetric UnitMetric Description
hostnameNoneName of the host
versionNoneOperating system version

Metric Set: cpu

Metric NameMetric UnitMetric Description
infoNoneCPU model
coresNumberNumber of CPU cores
interruptCountNumber of CPU interrupts
loadNoneAverage recent CPU load
context_switchCountCurrent number of context switches
usage%CPU usage percentage

Metric Set: memory

Metric NameMetric UnitMetric Description
totalPhysicalMbTotal physical memory capacity
freePhysicalMbFree physical memory capacity
totalVirtualMbTotal virtual memory capacity
freeVirtualMbFree virtual memory capacity

Metric Set: disk

Metric NameMetric UnitMetric Description
ModelNoneDisk model
SizeMbDisk size
BytesPerSectorBytesNumber of bytes per sector

Metric Set: disk_free

Metric NameMetric UnitMetric Description
CaptionNoneDisk label
FreeSpaceMbAvailable disk space
SizeMbTotal disk space

Metric Set: Top 10 Programs by CPU Usage

Metric NameMetric UnitMetric Description
nameNoneProcess name
idNoneProcess ID
cpuSecondsCPU usage time
wsMbMemory usage

Metric Set: Top 10 Programs by Memory Usage

Metric NameMetric UnitMetric Description
nameNoneProcess name
idNoneProcess ID
cpuSecondsCPU usage time
wsMbMemory usage