I need a bash scripot that collect these informations:
CPU load 1min
CPU load 5min
CPU load 15min
All values must be converted in percentage.
Multi cpu may be managed in some way.
Values are stored into variables and then sent to an external server using a link like this
The script will be lounched every 5 minutes by a cron in linux.
where server_address is a variable with the path to call
c1 = 16 is 16% of cpu total
c5 = 13 is 13% of cpu total
c15 = 11 is 11% of cpu total
d=45 is 45% usage of disk total
m=58 is 58% usage of memory total
20 freelancers estão ofertando em média €27 para este trabalho
Hi, I am a Linux developer with more than 7 years of experience in bash scripting. I can do this by simply writing a bash script and then setting that to run as cron job.
I have a lot expertise in monitoring systems, this task is normal in my daily work . I'am available to help you. Best Regards, Douglas Rodrigues - MaxSIT
I can do this script, I do scripts like You described long time. on bash. You said - cron will run it once per 5 minutes - may be per 1 minute??? as CPU statistic 1, 5, 15min needed
I know Shell script and Linux. I can finish this script for you. There are some commands and files contains the information. And curl can sends report to server.
I have 3 years of experience in writing scripts in bash for multiple purposes. This particular script I can deliver to you in 1 day after it passes my own sanity checks.