Shell script example | cpu usage monitoring
#!/bin/shmemuse=$(ps -p $(pidof java) -o %mem | awk '{if(NR>1)print}');thresholdVal=50;if [ $memuse > $thresholdVal ]; then message="Memory usage for jboss service on application server exceeded threshold.nCurrent use is $memuse %." …
Continue Reading
Shell script example | cpu usage monitoring