You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hertzbeat.apache.org by "liyfbeat (via GitHub)" <gi...@apache.org> on 2025/06/06 01:01:12 UTC

[D] windows_script collect timeout [hertzbeat]

GitHub user liyfbeat created a discussion: windows_script collect timeout

I use Windows Script to collect monitoring data of Windows servers. The collector has been deployed on the Windows server, but it often stops collecting server information after running for a few hours, while other tasks can be executed normally. Since security software is installed on the server, I suspect that it is caused by Windows Script calling PowerShell. The following logs will be displayed in the collector's error logs:
2025-06-05 20:11:01.403 [metrics-task-timeout-monitor-0] ERROR org.apache.hertzbeat.collector.dispatch.CommonDispatcher Line:168 - [Collect Timeout]: 
id: 516487926905600
app: "windows_script"
metrics: "top_mem_process"
priority: 5
time: 1749125461403
code: TIMEOUT
msg: "collect timeout"


Ps.
hertzbeat version is 1.6.1



GitHub link: https://github.com/apache/hertzbeat/discussions/3436

----
This is an automatically sent email for dev@hertzbeat.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@hertzbeat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hertzbeat.apache.org
For additional commands, e-mail: dev-help@hertzbeat.apache.org


Re: [D] windows_script collect timeout [hertzbeat]

Posted by "lx1229 (via GitHub)" <gi...@apache.org>.
GitHub user lx1229 added a comment to the discussion: windows_script collect timeout

Do u try to run command of 'top_mem_process' on terminal or power bash manually?

GitHub link: https://github.com/apache/hertzbeat/discussions/3436#discussioncomment-13394994

----
This is an automatically sent email for dev@hertzbeat.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@hertzbeat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hertzbeat.apache.org
For additional commands, e-mail: dev-help@hertzbeat.apache.org


Re: [D] windows_script collect timeout [hertzbeat]

Posted by "liyfbeat (via GitHub)" <gi...@apache.org>.
GitHub user liyfbeat added a comment to the discussion: windows_script collect timeout

It's possible, but I'm not certain what's causing this. After all, restarting the collector allows it to resume normal data collection, but it malfunctions again after running for a while.

GitHub link: https://github.com/apache/hertzbeat/discussions/3436#discussioncomment-13395950

----
This is an automatically sent email for dev@hertzbeat.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@hertzbeat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hertzbeat.apache.org
For additional commands, e-mail: dev-help@hertzbeat.apache.org


Re: [D] windows_script collect timeout [hertzbeat]

Posted by "liyfbeat (via GitHub)" <gi...@apache.org>.
GitHub user liyfbeat added a comment to the discussion: windows_script collect timeout

Certainly, either executing PowerShell commands directly in the operating system or performing data collection through HertzBeat is feasible.

GitHub link: https://github.com/apache/hertzbeat/discussions/3436#discussioncomment-13395938

----
This is an automatically sent email for dev@hertzbeat.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@hertzbeat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hertzbeat.apache.org
For additional commands, e-mail: dev-help@hertzbeat.apache.org


Re: [D] windows_script collect timeout [hertzbeat]

Posted by "tomsun28 (via GitHub)" <gi...@apache.org>.
GitHub user tomsun28 added a comment to the discussion: windows_script collect timeout

hi, based on the log analysis, it seems that the metric collection on Windows timed out. This needs to be investigated further to determine why the execution timed out — could it be due to pollshell?

GitHub link: https://github.com/apache/hertzbeat/discussions/3436#discussioncomment-13393355

----
This is an automatically sent email for dev@hertzbeat.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@hertzbeat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hertzbeat.apache.org
For additional commands, e-mail: dev-help@hertzbeat.apache.org


Re: [D] windows_script collect timeout [hertzbeat]

Posted by "liyfbeat (via GitHub)" <gi...@apache.org>.
GitHub user liyfbeat added a comment to the discussion: windows_script collect timeout

@tomsun28 Could U give me some suggestions?

GitHub link: https://github.com/apache/hertzbeat/discussions/3436#discussioncomment-13385169

----
This is an automatically sent email for dev@hertzbeat.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@hertzbeat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hertzbeat.apache.org
For additional commands, e-mail: dev-help@hertzbeat.apache.org


Re: [D] windows_script collect timeout [hertzbeat]

Posted by "liyfbeat (via GitHub)" <gi...@apache.org>.
GitHub user liyfbeat added a comment to the discussion: windows_script collect timeout

The issue is that after HertzBeat has been collecting data for some time, it stops. Upon investigating the cause, it is found that the PowerShell execution has timed out. Restarting the collector allows data collection to resume normally.

GitHub link: https://github.com/apache/hertzbeat/discussions/3436#discussioncomment-13395943

----
This is an automatically sent email for dev@hertzbeat.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@hertzbeat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hertzbeat.apache.org
For additional commands, e-mail: dev-help@hertzbeat.apache.org


Re: [D] windows_script collect timeout [hertzbeat]

Posted by "liyfbeat (via GitHub)" <gi...@apache.org>.
GitHub user liyfbeat edited a discussion: windows_script collect timeout

I use Windows Script to collect monitoring data of Windows servers. The collector has been deployed on the Windows server, but it often stops collecting server information after running for a few hours, while other tasks can be executed normally. Since security software is installed on the server, I suspect that it is caused by Windows Script calling PowerShell. The following logs will be displayed in the collector's error logs:
2025-06-05 20:11:01.403 [metrics-task-timeout-monitor-0] ERROR org.apache.hertzbeat.collector.dispatch.CommonDispatcher Line:168 - [Collect Timeout]: 
id: 516487926905600
app: "windows_script"
metrics: "top_mem_process"
priority: 5
time: 1749125461403
code: TIMEOUT
msg: "collect timeout"


I need to add that even if I stopped the security software on another server, the collect timeout still occurred, and then the windows script was completely stopped.

Ps.
hertzbeat version is 1.6.1



GitHub link: https://github.com/apache/hertzbeat/discussions/3436

----
This is an automatically sent email for dev@hertzbeat.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@hertzbeat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hertzbeat.apache.org
For additional commands, e-mail: dev-help@hertzbeat.apache.org


Re: [D] windows_script collect timeout [hertzbeat]

Posted by "lx1229 (via GitHub)" <gi...@apache.org>.
GitHub user lx1229 added a comment to the discussion: windows_script collect timeout

A wired issue! I will keep investigating this!  Let's try to find out the true reason

GitHub link: https://github.com/apache/hertzbeat/discussions/3436#discussioncomment-13411302

----
This is an automatically sent email for dev@hertzbeat.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@hertzbeat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hertzbeat.apache.org
For additional commands, e-mail: dev-help@hertzbeat.apache.org