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

Allow additional args to be passed to underlying tools #32

Closed tomduckering closed 7 years ago

tomduckering commented 8 years ago

We need to send a particular arg to checkrestart to filter out some false positives.

This change allows for any additional args to be passed through - rather than restricting to the current known args. We have allowed it for checkrestart and the needs-restarting tool since we don't know for sure what options needs-restarting can take.

Have also appeased rubocop in the command status checking.