sensu-plugins / sensu-plugins-cpu-checks

This plugin provides native CPU instrumentation for monitoring and metrics collection, including: CPU usage and metrics for user, nice, system, idle, iowait, irq, softirq, steal, and guest.
http://sensu-plugins.io
MIT License
13 stars 34 forks source link

option to check if cpu is less than given #20

Closed santhosh-tekuri closed 7 years ago

santhosh-tekuri commented 7 years ago

we want to perform following with Sensu:

if 80% of hosts in cluster has cpu usage less than 30%, then scale-down the cluster but cpu-check.rb does not allow to check to warn when cpu is less than given percentage.

this pull request addresses the above usecase

eheydrick commented 7 years ago

Thanks.