{"action":"created","issue":{"url":"https://api.github.com/repos/mickem/nscp/issues/74","labels_url":"https://api.github.com/repos/mickem/nscp/issues/74/labels{/name}","comments_url":"https://api.github.com/repos/mickem/nscp/issues/74/comments","events_url":"https://api.github.com/repos/mickem/nscp/issues/74/events","html_url":"https://github.com/mickem/nscp/issues/74","id":53625177,"number":74,"title":"Empty list after filter processing of check_process generates an OK state","user":{"login":"davmik","id":4082206,"avatar_url":"https://avatars.githubusercontent.com/u/4082206?v=3","gravatar_id":"","url":"https://api.github.com/users/davmik","html_url":"https://github.com/davmik","followers_url":"https://api.github.com/users/davmik/followers","following_url":"https://api.github.com/users/davmik/following{/other_user}","gists_url":"https://api.github.com/users/davmik/gists{/gist_id}","starred_url":"https://api.github.com/users/davmik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davmik/subscriptions","organizations_url":"https://api.github.com/users/davmik/orgs","repos_url":"https://api.github.com/users/davmik/repos","events_url":"https://api.github.com/users/davmik/events{/privacy}","received_events_url":"https://api.github.com/users/davmik/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-07T11:58:32Z","updated_at":"2015-01-07T23:00:47Z","closed_at":"2015-01-07T23:00:47Z","body":"If a special filter (for example for command_line matching) is used with default warn and crit criteria there is a bug when the filter results in an empty process list (as it probably will when the process is not running). The return state is always OK.\r\n\r\nIf I extend the default critical criteria to \"critical=state = 'stopped' OR count=0\" it still results in:\r\nOK: |'count'=0;0;0\r\n\r\nIf I use \"crit=count = 0\" it results correctly for the count but a state is not checked anymore if there is a non empty list:\r\nCRITICAL: |'count'=0;0;0"},"comment":{"url":"https://api.github.com/repos/mickem/nscp/issues/comments/69108395","html_url":"https://github.com/mickem/nscp/issues/74#issuecomment-69108395","issue_url":"https://api.github.com/repos/mickem/nscp/issues/74","id":69108395,"user":{"login":"mickem","id":1434697,"avatar_url":"https://avatars.githubusercontent.com/u/1434697?v=3","gravatar_id":"","url":"https://api.github.com/users/mickem","html_url":"https://github.com/mickem","followers_url":"https://api.github.com/users/mickem/followers","following_url":"https://api.github.com/users/mickem/following{/other_user}","gists_url":"https://api.github.com/users/mickem/gists{/gist_id}","starred_url":"https://api.github.com/users/mickem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mickem/subscriptions","organizations_url":"https://api.github.com/users/mickem/orgs","repos_url":"https://api.github.com/users/mickem/repos","events_url":"https://api.github.com/users/mickem/events{/privacy}","received_events_url":"https://api.github.com/users/mickem/received_events","type":"User","site_admin":false},"created_at":"2015-01-07T23:00:47Z","updated_at":"2015-01-07T23:00:47Z","body":"Should be fixed in the next build"}}