Shell script for CPU usage, memory usage, disk partition space and service status

Hello All,
We have configured Nagios for server monitoring. But, this demand came from our client side. He wants us to write a script that will give them details of CPU Usage (Min, Max, Average), Memory Usage(Min, Max, Average), Disk partition space status and service up/down status on hourly basis.
I can fetch the current CPU usage or memory usages. But, I want to know how to write a script that will calculate last 1hour CPU usages(maximum, minimum and average) & Memory usages(maximum, minimum and average).

Please suggest.

This is what you looking for. This shell script created to monitor Linux CPU usage, Network, Disk Usage, Load Average, Uptime, etc…

1 Like

Yes sir…Thank you so much sir. :relaxed: