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

Add metrics-numastat.rb #8

Closed maoe closed 8 years ago

maoe commented 8 years ago

Pull Request Checklist

Is this in reference to an existing issue?

General

This plugin is a wrapper around the numastat command.

% /opt/sensu/embedded/bin/ruby ./metrics-numastat.rb -s numastat
numastat.node0.numa_hit 70109703 1459233325
numastat.node1.numa_hit 71051265 1459233325
numastat.node0.numa_miss 0 1459233325
numastat.node1.numa_miss 0 1459233325
numastat.node0.numa_foreign 0 1459233325
numastat.node1.numa_foreign 0 1459233325
numastat.node0.interleave_hit 21142 1459233325
numastat.node1.interleave_hit 22049 1459233325
numastat.node0.local_node 70101065 1459233325
numastat.node1.local_node 71037602 1459233325
numastat.node0.other_node 8638 1459233325
numastat.node1.other_node 13663 1459233325

Known Compatablity Issues

I've tested this on Ubuntu Trusty. No known issues so far.

maoe commented 8 years ago

Thanks for quick turnaround. Would you mind releasing a new version?