{"action":"opened","issue":{"url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-disk-checks/issues/33","repository_url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-disk-checks","labels_url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-disk-checks/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-disk-checks/issues/33/comments","events_url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-disk-checks/issues/33/events","html_url":"https://github.com/sensu-plugins/sensu-plugins-disk-checks/issues/33","id":139234790,"number":33,"title":"check-disk-usage always shows the non-magic usage under ‘OK’","user":{"login":"Debilski","id":216179,"avatar_url":"https://avatars.githubusercontent.com/u/216179?v=3","gravatar_id":"","url":"https://api.github.com/users/Debilski","html_url":"https://github.com/Debilski","followers_url":"https://api.github.com/users/Debilski/followers","following_url":"https://api.github.com/users/Debilski/following{/other_user}","gists_url":"https://api.github.com/users/Debilski/gists{/gist_id}","starred_url":"https://api.github.com/users/Debilski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Debilski/subscriptions","organizations_url":"https://api.github.com/users/Debilski/orgs","repos_url":"https://api.github.com/users/Debilski/repos","events_url":"https://api.github.com/users/Debilski/events{/privacy}","received_events_url":"https://api.github.com/users/Debilski/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-08T10:12:18Z","updated_at":"2016-03-08T10:12:18Z","closed_at":null,"body":"When ok is returned, the return text does not take the magic number into account and uses `config[:bwarn]`. This is especially confusing, when only one mount is being checked:\r\n\r\n    $ /opt/sensu/embedded/bin/check-disk-usage.rb -I /extra -m 1\r\n    CheckDisk CRITICAL: /extra 96.07% bytes usage (386 GiB/402 GiB)\r\n    $ /opt/sensu/embedded/bin/check-disk-usage.rb -I /extra -m 0.6\r\n    CheckDisk OK: All disk usage under 85% and inode usage under 85%\r\n\r\nObviously, the disk usage is *over* 85%.\r\n"}}