Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
CPU usage per core in bash
Current Version
0.9.0
Last Release Date
2022-09-08
Owner
MikoĊaj
Download URL
https://gitlab.com/aleextra/nagios
License
GPL
Compatible With
Screen from default nagios chart
bash script for cpu monitoring
I was not able to find a correct solution for CPU utilization. I adopt a CPU monitor in bash to output Nagios format. At this moment it checks the avg CPU load (sum of % usage of each core and divided by the number of cores)
I am using nagios v4.4.6, but as I saw probably it will work also with the previous version.
usage: ./custom_cpu.sh {warning} {critical} example ./custom_cpu.sh 10 20 output: OK total CPU usage: 3%|cpu0=3.66667 cpu1=3.34448 cpu2=3.65449 cpu3=5.29801 cpu4=3.32226
Inside the code we are doing a sum of all cores values and dividing it by the core amount.
I have no ide why images are not working, hopefully it will work soon.
You must be logged in to submit a review.
To:
From:
We’ve completely redesigned the world’s largest repository of Nagios plugins and monitoring tools. Join thousands of users sharing monitoring solutions for servers, applications, and everything in between.
Due to our redesign, all existing accounts require a password reset to access your account again.
Ready to explore 6,100+ projects and contribute to the community?
Reset Password Create Account
Happy Monitoring!