Hi, I’m in need of a bash script that will monitor the CPU usage of each instance of java that is running. If any of the instances is running at 600% + CPU usage for longer than 2 mins, a command is run (that I will add later) with the variable called PID, with the processes PID. For now, you could just add echo $pid then reset the timer.
The script must also do the same for 300% usage, however on a 10 min timer.
The script must also log each time it echos the pid by writing the time, date, pid, user, and command.
Bellow briefly state your experience with bash, and how much you would charge for making the script for me. It’s something I could do myself, so I’m not looking to pay a great deal, but enough to save me the haste of writing and testing it, bash tends to irritate me.
Any questions, feel free to ask.
The script must also do the same for 300% usage, however on a 10 min timer.
The script must also log each time it echos the pid by writing the time, date, pid, user, and command.
Bellow briefly state your experience with bash, and how much you would charge for making the script for me. It’s something I could do myself, so I’m not looking to pay a great deal, but enough to save me the haste of writing and testing it, bash tends to irritate me.
Any questions, feel free to ask.
