Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ramkumardevanathan/907f766ffac8efbd421e3a13a247c369 to your computer and use it in GitHub Desktop.
Save ramkumardevanathan/907f766ffac8efbd421e3a13a247c369 to your computer and use it in GitHub Desktop.
cpu bottleneck
# The CPU bottleneck symptom default is influenced mostly by the overall
# cpu utilization. Note that cpu utilization may be high even though
# there is no bottleneck. The run queue is an indicator processes are
# waiting for cpu resources, and that the cpu may be bottlenecked.
symptom CPU_Bottleneck type=CPU
rule GBL_CPU_TOTAL_UTIL > 75 prob 25
rule GBL_CPU_TOTAL_UTIL > 85 prob 25
rule GBL_CPU_TOTAL_UTIL > 90 prob 25
rule GBL_RUN_QUEUE > 2 prob 25
alarm CPU_Bottleneck > 50 for 5 minutes
type = "CPU"
start
if CPU_Bottleneck > 90 then
red alert "CPU Bottleneck probability= ", CPU_Bottleneck, "%"
else
yellow alert "CPU Bottleneck probability= ", CPU_Bottleneck, "%"
repeat every 10 minutes
if CPU_Bottleneck > 90 then
red alert "CPU Bottleneck probability= ", CPU_Bottleneck, "%"
else
yellow alert "CPU Bottleneck probability= ", CPU_Bottleneck, "%"
end
reset alert "End of CPU Bottleneck Alert"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment