Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
CPU Bash Multi Core Monitor
0.9.0
2022-09-08
- Nagios 4.x
GPL
2099
File | Description |
---|---|
cpu.png | Screen from default nagios chart |
check_cpu.sh | bash script for cpu monitoring |
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
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.
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.
Reviews (0)
Be the first to review this listing!