Need a windows powershell script to detect process using more than 25% cpu processor for x time, notify by email and stop process. The script will run every x time using task scheduler.
Hi
I can provide the Powershell script to monitor the CPU usage by process and if it is more than 25% for certain time period, stop the process and sent the alert.
We can discuss further details in chat
Hi There!! If it is a Linux server do you like to do this in a Shell script.
If yes ping me we can have a chat.
I have been working as Linux Administrator for 6+ years and have written many shell scripts and Ansible Playbook for automating projects.
I have been working in the vRealize Automation tool which has various Blueprints(45 in total including Application and DB) consisting of steps done in shell scripting.
I can create the script. We need figure it out what the first and second "x" are. Lets say if a process holds is using 30% of the CPU for 30 minutes, the script will terminate the process. Does the script also stops and then the task scheduler will launch it again or how will it work ?
Hi,
I am an automation engineer with rich experience in powershell and windows automation. I already have the script for your requirements kindly reach me for your further details.