Logic Machine Forum
Notify when CPU/IO is over threshold value - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Notify when CPU/IO is over threshold value (/showthread.php?tid=5406)



Notify when CPU/IO is over threshold value - Hadeel - 04.05.2024

Hi !
Is there any way to monitor the CPU/IO value of LM and trigger notification event when the value is over threshold?

Thank you for your help in advance (:


RE: Notify when CPU/IO is over threshold value - admin - 06.05.2024

You can use this script for monitoring CPU: https://forum.logicmachine.net/showthread.php?tid=2233&pid=13965#pid13965
Resident script sleep time controls the time for each CPU load calculation. For your task you should select a longer time to ignore short spikes in CPU load which is normal.
If you are having issues with high CPU load you should find out what's causing it. The usual causes are:
- KNX TP/IP loops where multiple routers are connected to the same TP line
- Infinite loops in scripts or event script loops where two scripts trigger each other