Skip to content

Instantly share code, notes, and snippets.

View JingshanDu's full-sized avatar

Jingshan S. Du JingshanDu

View GitHub Profile
@JingshanDu
JingshanDu / apc-ups.ps1
Last active November 1, 2025 06:48
PRTG APCUPSD Custom Sensor
param(
[Parameter(Mandatory=$true)]
[string]$TargetHost,
[int]$Port = 3551
)
# Copy apcaccess.exe to the PRTG probe system and set its path below
$cmd = "C:\apcaccess.exe"
$endpoint = "${TargetHost}:$Port"