cpu and ram checks

check-cpu.rb can be used to alert on any of the cpu metrics available in /proc/stats or by default on total used cpu percentage. For ex this ceck can be used to check high iowait or steal time or idle time (in case you want to see if system is not too much idle which can identify a problem)
sleep is time to sleep between the two samples of /proc/stats

Usage: /etc/sensu/plugins/check-cpu.rb (options)
    -c CRIT
        --guest                      Check cpu guest instead of total cpu usage
        --idle                       Check cpu idle instead of total cpu usage
        --iowait                     Check cpu iowait instead of total cpu usage
        --irq                        Check cpu irq instead of total cpu usage
        --nice                       Check cpu nice instead of total cpu usage
        --sleep SLEEP
        --softirq                    Check cpu softirq instead of total cpu usage
        --steal                      Check cpu steal instead of total cpu usage
        --system                     Check cpu system instead of total cpu usage
        --user                       Check cpu user instead of total cpu usage
    -w WARN

check-ram.rb is to check hiow much free ram is left in megabytes or in percentage of total available ram

Usage: /etc/sensu/plugins/check-ram.rb (options)
    -c CRIT
    -m, --megabytes                  Unless --megabytes is specified the thresholds are in percents
    -w WARN