hsg8888 opened a new issue, #3907:
URL: https://github.com/apache/hertzbeat/issues/3907
### Is there an existing issue for this?
- [x] I have searched the existing issues
### Current Behavior
1.windows2008服务器,只要是powershell命令都取不到数据
2、自己添加的powersehll命令在服务器中执行没问题,但是添加导监控模板中取不到数据。
这是日志:2025-12-12 12:25:47.525 [583356124740608-windows_script-oggps-7208]
INFO org.apache.hertzbeat.collector.dispatch.MetricsCollect Line:471 -
[Collect Failed, Run 317ms, All 317ms] Reason: Script response data is null
命令:Write-Host "Program Status Group Lag
Time";$t=[System.IO.Path]::GetTempFileName();"info all`nexit"|Out-File
-FilePath $t -Encoding ASCII;& ^_^Path^_^\ggsci paramfile $t
2>&1|?{$_-match"^\s*(MANAGER|EXTRACT|REPLICAT)"-and$_-match"^\s*(?<p>\S+)\s+(?<s>\S+)\s+(?<g>\S+)?\s+(?<l>[\d:]+)?\s+(?<tm>[\d:]+)?"}|%{$l=if($matches['l']){$matches['l']-replace":",""-replace"^0+",""}else{"N/A"};$tm=if($matches['tm']){$matches['tm']-replace":",""-replace"^0+",""}else{"N/A"};if($l-eq""){$l="0"};if($tm-eq""){$tm="0"};Write-Host
($matches['p'].PadRight(10)+$matches['s'].PadRight(10)+$(if($matches['g']){$matches['g']}else{"N/A"}).PadRight(10)+$l.PadRight(8)+$tm)};Remove-Item
$t -Force
这是命令执行结果

### Expected Behavior
_No response_
### Steps To Reproduce
_No response_
### Environment
```markdown
HertzBeat version(s):
```
### Debug logs
_No response_
### Anything else?
_No response_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail:
[email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]