sensu-plugins / sensu-plugins-process-checks

This plugin provides native process instrumentation for monitoring and metrics collection, including: process status, uptime, thread count, and others.
http://sensu-plugins.io
MIT License
20 stars 55 forks source link

Use memory_info() instead of deprecated memory_info_ex() in metrics-per-process.py #42

Closed stuwil closed 7 years ago

stuwil commented 7 years ago

General

Purpose

psutil's memory_info_ex() method was deprecated in their 4.0.0 release. This uses the updated memory_info() method in 4.0.0+, and the old method in previous versions, to eliminate deprecation notice warnings from the check.

Known Compatibility Issues

None.

majormoses commented 7 years ago

@stuwil looks good to me, can you rebase please?

stuwil commented 7 years ago

Thanks @majormoses, rebased!

majormoses commented 7 years ago

released: https://rubygems.org/gems/sensu-plugins-process-checks/versions/2.3.0