could the code in this file be moved into the check-os-api.rb file, since it probably won't be used elsewhere, and isn't strictly speaking a sensu plugin on its own?