Skip to content

CPU

CPU collects and reports global CPU usage (percent) for the local Virtual Machine or server.

Configure

cpu:

  mycpucheck:
    enable: yes
    severity_max: notice
    threshold: 80.5              # percentage

Additional parameters

new v1.6

threshold: float ; percentage threshold before raising an alert

Alerts

Alert can be adjusted with common enable_pager and severity_max options.

Output to Metrology

This module sends one message with the following fields:

cmt_check: cpu
+
cmt_cpu:  #float - percentage of CPU in use

CLI usage and output

/dev/cmt_monitor$ ./cmt.py cpu

Check cpu 
cmt_cpu                13.5 % ()  - CPU Percentage
OK                     usage : 13.5 %