{"action":"created","issue":{"url":"https://api.github.com/repos/sensu/sensu-community-plugins/issues/1244","labels_url":"https://api.github.com/repos/sensu/sensu-community-plugins/issues/1244/labels{/name}","comments_url":"https://api.github.com/repos/sensu/sensu-community-plugins/issues/1244/comments","events_url":"https://api.github.com/repos/sensu/sensu-community-plugins/issues/1244/events","html_url":"https://github.com/sensu/sensu-community-plugins/issues/1244","id":114855707,"number":1244,"title":"check-fstab-mounts.rb gets confused about swap and UUIDs","user":{"login":"petere","id":105543,"avatar_url":"https://avatars.githubusercontent.com/u/105543?v=3","gravatar_id":"","url":"https://api.github.com/users/petere","html_url":"https://github.com/petere","followers_url":"https://api.github.com/users/petere/followers","following_url":"https://api.github.com/users/petere/following{/other_user}","gists_url":"https://api.github.com/users/petere/gists{/gist_id}","starred_url":"https://api.github.com/users/petere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petere/subscriptions","organizations_url":"https://api.github.com/users/petere/orgs","repos_url":"https://api.github.com/users/petere/repos","events_url":"https://api.github.com/users/petere/events{/privacy}","received_events_url":"https://api.github.com/users/petere/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-03T16:33:13Z","updated_at":"2016-01-12T11:04:13Z","closed_at":null,"body":"I have this line in `/etc/fstab`:\r\n\r\n    UUID=f63ec6bf-adb7-4684-8528-7c126cebf167 swap                    swap    defaults        0 0\r\n\r\nThis causes the check script to fail:\r\n\r\n```\r\n# ./check-fstab-mounts.rb\r\nCheck failed to run: No such file or directory - /etc/sensu/community/plugins/system/UUID=f63ec6bf-adb7-4684-8528-7c126cebf167, [\"./check-fstab-mounts.rb:61:in `realpath'\", \"./check-fstab-mounts.rb:61:in `realpath'\", \"./check-fstab-mounts.rb:61:in `block (2 levels) in check_mounts'\", \"./check-fstab-mounts.rb:61:in `select'\", \"./check-fstab-mounts.rb:61:in `block in check_mounts'\", \"./check-fstab-mounts.rb:52:in `each'\", \"./check-fstab-mounts.rb:52:in `check_mounts'\", \"./check-fstab-mounts.rb:67:in `run'\", \"/usr/lib64/ruby/gems/1.9.1/gems/sensu-plugin-1.2.0/lib/sensu-plugin/cli.rb:56:in `block in <class:CLI>'\"]\r\n```\r\n\r\nApparently, it does not know about the UUID syntax at all.\r\n\r\nIt would be great if there was a way to exclude file system types (opposite of `-t`), to exclude swap but check all other file system types."},"comment":{"url":"https://api.github.com/repos/sensu/sensu-community-plugins/issues/comments/170877165","html_url":"https://github.com/sensu/sensu-community-plugins/issues/1244#issuecomment-170877165","issue_url":"https://api.github.com/repos/sensu/sensu-community-plugins/issues/1244","id":170877165,"user":{"login":"analytically","id":254434,"avatar_url":"https://avatars.githubusercontent.com/u/254434?v=3","gravatar_id":"","url":"https://api.github.com/users/analytically","html_url":"https://github.com/analytically","followers_url":"https://api.github.com/users/analytically/followers","following_url":"https://api.github.com/users/analytically/following{/other_user}","gists_url":"https://api.github.com/users/analytically/gists{/gist_id}","starred_url":"https://api.github.com/users/analytically/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/analytically/subscriptions","organizations_url":"https://api.github.com/users/analytically/orgs","repos_url":"https://api.github.com/users/analytically/repos","events_url":"https://api.github.com/users/analytically/events{/privacy}","received_events_url":"https://api.github.com/users/analytically/received_events","type":"User","site_admin":false},"created_at":"2016-01-12T11:04:13Z","updated_at":"2016-01-12T11:04:13Z","body":"This repo is old. Can you try https://github.com/sensu-plugins/sensu-plugins-disk-checks?"}}