{"action":"created","issue":{"url":"https://api.github.com/repos/mickem/nscp/issues/171","labels_url":"https://api.github.com/repos/mickem/nscp/issues/171/labels{/name}","comments_url":"https://api.github.com/repos/mickem/nscp/issues/171/comments","events_url":"https://api.github.com/repos/mickem/nscp/issues/171/events","html_url":"https://github.com/mickem/nscp/issues/171","id":104263750,"number":171,"title":"[check_tasksched] problem with exit_code != 0","user":{"login":"garnier-quentin","id":9079781,"avatar_url":"https://avatars.githubusercontent.com/u/9079781?v=3","gravatar_id":"","url":"https://api.github.com/users/garnier-quentin","html_url":"https://github.com/garnier-quentin","followers_url":"https://api.github.com/users/garnier-quentin/followers","following_url":"https://api.github.com/users/garnier-quentin/following{/other_user}","gists_url":"https://api.github.com/users/garnier-quentin/gists{/gist_id}","starred_url":"https://api.github.com/users/garnier-quentin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garnier-quentin/subscriptions","organizations_url":"https://api.github.com/users/garnier-quentin/orgs","repos_url":"https://api.github.com/users/garnier-quentin/repos","events_url":"https://api.github.com/users/garnier-quentin/events{/privacy}","received_events_url":"https://api.github.com/users/garnier-quentin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-01T13:16:27Z","updated_at":"2015-11-18T10:57:19Z","closed_at":null,"body":"\r\nHi,\r\n\r\nI'm using NSClient 0.4.3-143.\r\nWhen i'm executing the following command with the 'exit_code > 0', it's working:\r\n```\r\n# check_nrpe -H xxxx -p 5666 -t 30 -u -c check_tasksched -a \"filter=enabled eq 1\" \"warning=exit_code > 0\" \"critical=\" \"perf-config=*(ignored:true)\" 'ok-syntax=%(status): All tasks are ok'\r\n/TestTask: 4567 != 0\r\n```\r\n\r\nBut with the following command and 'exit_code != 0', it don't work ??!!\r\n```\r\n# check_nrpe -H xxxx -p 5666 -t 30 -u -c check_tasksched -a \"filter=enabled eq 1\" \"warning=exit_code != 0\" \"critical=\" \"perf-config=*(ignored:true)\" 'ok-syntax=%(status): All tasks are ok'\r\n: All tasks are ok\r\n```\r\n\r\nThanks. "},"comment":{"url":"https://api.github.com/repos/mickem/nscp/issues/comments/157678568","html_url":"https://github.com/mickem/nscp/issues/171#issuecomment-157678568","issue_url":"https://api.github.com/repos/mickem/nscp/issues/171","id":157678568,"user":{"login":"garnier-quentin","id":9079781,"avatar_url":"https://avatars.githubusercontent.com/u/9079781?v=3","gravatar_id":"","url":"https://api.github.com/users/garnier-quentin","html_url":"https://github.com/garnier-quentin","followers_url":"https://api.github.com/users/garnier-quentin/followers","following_url":"https://api.github.com/users/garnier-quentin/following{/other_user}","gists_url":"https://api.github.com/users/garnier-quentin/gists{/gist_id}","starred_url":"https://api.github.com/users/garnier-quentin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garnier-quentin/subscriptions","organizations_url":"https://api.github.com/users/garnier-quentin/orgs","repos_url":"https://api.github.com/users/garnier-quentin/repos","events_url":"https://api.github.com/users/garnier-quentin/events{/privacy}","received_events_url":"https://api.github.com/users/garnier-quentin/received_events","type":"User","site_admin":false},"created_at":"2015-11-18T10:57:19Z","updated_at":"2015-11-18T10:57:19Z","body":"\r\n'!= 0' works if my exit code task is 1 (but not 2, 3). I don't think it's a escaping issue. I see the '!= 0' in the output of nrpe when my task exit code is 1."}}