{"action":"created","issue":{"url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-postgres/issues/17","repository_url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-postgres","labels_url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-postgres/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-postgres/issues/17/comments","events_url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-postgres/issues/17/events","html_url":"https://github.com/sensu-plugins/sensu-plugins-postgres/issues/17","id":171951641,"number":17,"title":"check-postgres-connections -w AND -c","user":{"login":"mnietz","id":8960791,"avatar_url":"https://avatars.githubusercontent.com/u/8960791?v=3","gravatar_id":"","url":"https://api.github.com/users/mnietz","html_url":"https://github.com/mnietz","followers_url":"https://api.github.com/users/mnietz/followers","following_url":"https://api.github.com/users/mnietz/following{/other_user}","gists_url":"https://api.github.com/users/mnietz/gists{/gist_id}","starred_url":"https://api.github.com/users/mnietz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mnietz/subscriptions","organizations_url":"https://api.github.com/users/mnietz/orgs","repos_url":"https://api.github.com/users/mnietz/repos","events_url":"https://api.github.com/users/mnietz/events{/privacy}","received_events_url":"https://api.github.com/users/mnietz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-18T17:04:16Z","updated_at":"2016-10-19T17:10:20Z","closed_at":null,"body":"When i try to specify -w and -c together the plugin reports a warning state when it should report a critical one.\r\n\r\nExample:\r\n\r\n```\r\ncheck-postgres-connections.rb -h localhost -d template1 -u sensu -p sensu -w 5 -c 6\r\nCheckPostgresConnections WARNING: PostgreSQL connections at 8 out of 10 connections\r\n```\r\n\r\nSpecifying only -w or -c works as expected. It doesn't make any difference using -a or not. \r\n\r\nSensu: 0.25.7 latest version of the plugin."},"comment":{"url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-postgres/issues/comments/254878207","html_url":"https://github.com/sensu-plugins/sensu-plugins-postgres/issues/17#issuecomment-254878207","issue_url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-postgres/issues/17","id":254878207,"user":{"login":"alex-pw","id":15898569,"avatar_url":"https://avatars.githubusercontent.com/u/15898569?v=3","gravatar_id":"","url":"https://api.github.com/users/alex-pw","html_url":"https://github.com/alex-pw","followers_url":"https://api.github.com/users/alex-pw/followers","following_url":"https://api.github.com/users/alex-pw/following{/other_user}","gists_url":"https://api.github.com/users/alex-pw/gists{/gist_id}","starred_url":"https://api.github.com/users/alex-pw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alex-pw/subscriptions","organizations_url":"https://api.github.com/users/alex-pw/orgs","repos_url":"https://api.github.com/users/alex-pw/repos","events_url":"https://api.github.com/users/alex-pw/events{/privacy}","received_events_url":"https://api.github.com/users/alex-pw/received_events","type":"User","site_admin":false},"created_at":"2016-10-19T17:10:19Z","updated_at":"2016-10-19T17:10:19Z","body":"Thanks for the great plugins!  I can confirm this behavior.  Critical value needs to be checked prior to warning value.  Workaround is to use only -c as @mnietz reports."}}
{"actor":{"display_login":"alex-pw"}}