UserParameter=power.invoke,powershell -NoProfile -ExecutionPolicy Bypass -File "C:\zabbix\redisinfo.ps1" -MachineName %computername% -Property cpuredisinfo.ps1:param (
$MachineName,
$Property
)
$a = R:\redis\bin\redis-cli -h $MachineName INFO | select-string "${Property}:"
[regex]::match($a,':(.*)').Groups[1].Value
No comments:
Post a Comment