{"action":"created","issue":{"url":"https://api.github.com/repos/Icinga/icingaweb2-module-businessprocess/issues/206","repository_url":"https://api.github.com/repos/Icinga/icingaweb2-module-businessprocess","labels_url":"https://api.github.com/repos/Icinga/icingaweb2-module-businessprocess/issues/206/labels{/name}","comments_url":"https://api.github.com/repos/Icinga/icingaweb2-module-businessprocess/issues/206/comments","events_url":"https://api.github.com/repos/Icinga/icingaweb2-module-businessprocess/issues/206/events","html_url":"https://github.com/Icinga/icingaweb2-module-businessprocess/issues/206","id":414556967,"node_id":"MDU6SXNzdWU0MTQ1NTY5Njc=","number":206,"title":"New operand XOR or MAX 1","user":{"login":"slalomsk8er","id":100971,"node_id":"MDQ6VXNlcjEwMDk3MQ==","avatar_url":"https://avatars2.githubusercontent.com/u/100971?v=4","gravatar_id":"","url":"https://api.github.com/users/slalomsk8er","html_url":"https://github.com/slalomsk8er","followers_url":"https://api.github.com/users/slalomsk8er/followers","following_url":"https://api.github.com/users/slalomsk8er/following{/other_user}","gists_url":"https://api.github.com/users/slalomsk8er/gists{/gist_id}","starred_url":"https://api.github.com/users/slalomsk8er/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slalomsk8er/subscriptions","organizations_url":"https://api.github.com/users/slalomsk8er/orgs","repos_url":"https://api.github.com/users/slalomsk8er/repos","events_url":"https://api.github.com/users/slalomsk8er/events{/privacy}","received_events_url":"https://api.github.com/users/slalomsk8er/received_events","type":"User","site_admin":false},"labels":[{"id":158750376,"node_id":"MDU6TGFiZWwxNTg3NTAzNzY=","url":"https://api.github.com/repos/Icinga/icingaweb2-module-businessprocess/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-02-26T11:10:56Z","updated_at":"2019-02-28T09:01:26Z","closed_at":null,"author_association":"NONE","body":"<!--- Provide a general summary of the issue in the Title above -->\r\n\r\n<!-- Formatting tips:\r\n\r\nGitHub supports Markdown: https://guides.github.com/features/mastering-markdown/\r\nMulti-line code blocks either with three back ticks, or four space indent.\r\n\r\n```\r\nStacktrace ...\r\n<line>\r\n<line>\r\n```\r\n-->\r\n\r\n## Expected Behavior\r\nI would like to define a node in which only one of 2 children is allowed to be OK at the same time.\r\n\r\nCRITICAL + CRITICAL = CRITICAL\r\nOK + CRITICAL = OK\r\nCRITICAL + OK = OK\r\nOK + OK = CRITICAL\r\n\r\n<!--- If you're describing a bug, tell us what should happen -->\r\n<!--- If you're suggesting a change/improvement, tell us how it should work -->\r\n\r\n## Current Behavior\r\nOR works for the first 3 cases.\r\nMIN 1 works for the first 3 cases.\r\nNOT works for the last 3 cases.\r\n\r\n<!--- If describing a bug, tell us what happens instead of the expected behavior -->\r\n<!--- If suggesting a change/improvement, explain the difference from current behavior -->\r\n\r\n## Possible Solution\r\n<!--- Not obligatory, but suggest a fix/reason for the bug, -->\r\n<!--- or ideas how to implement:  the addition or change -->\r\nAddition of a new operand - XOR or MAX 1.\r\n\r\n## Context\r\n<!--- How has this issue affected you? What are you trying to accomplish? -->\r\n<!--- Providing context helps us come up with a solution that is most useful in the real world -->\r\nI have identical checks for a service on 2 servers but only one is allowed to run.\r\nIf both run race conditions and duplication of data could occur."},"comment":{"url":"https://api.github.com/repos/Icinga/icingaweb2-module-businessprocess/issues/comments/468192469","html_url":"https://github.com/Icinga/icingaweb2-module-businessprocess/issues/206#issuecomment-468192469","issue_url":"https://api.github.com/repos/Icinga/icingaweb2-module-businessprocess/issues/206","id":468192469,"node_id":"MDEyOklzc3VlQ29tbWVudDQ2ODE5MjQ2OQ==","user":{"login":"nilmerg","id":16668527,"node_id":"MDQ6VXNlcjE2NjY4NTI3","avatar_url":"https://avatars0.githubusercontent.com/u/16668527?v=4","gravatar_id":"","url":"https://api.github.com/users/nilmerg","html_url":"https://github.com/nilmerg","followers_url":"https://api.github.com/users/nilmerg/followers","following_url":"https://api.github.com/users/nilmerg/following{/other_user}","gists_url":"https://api.github.com/users/nilmerg/gists{/gist_id}","starred_url":"https://api.github.com/users/nilmerg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nilmerg/subscriptions","organizations_url":"https://api.github.com/users/nilmerg/orgs","repos_url":"https://api.github.com/users/nilmerg/repos","events_url":"https://api.github.com/users/nilmerg/events{/privacy}","received_events_url":"https://api.github.com/users/nilmerg/received_events","type":"User","site_admin":false},"created_at":"2019-02-28T09:01:26Z","updated_at":"2019-02-28T09:01:26Z","author_association":"CONTRIBUTOR","body":"Hi,\r\n\r\nthanks for the suggestion. That's definitely something I think is a good addition. Though, for now there's no chance it goes into the upcoming release. Maybe the next.\r\n\r\nIn case you can't wait, try this:\r\n\r\n```\r\nA = localhost;Hoststatus\r\ndisplay 0;A;A\r\n\r\nNOT A = ! A\r\ndisplay 0;NOT A;NOT A\r\n\r\nB = test-down-1;Hoststatus\r\ndisplay 0;B;B\r\n\r\nNOT B = ! B\r\ndisplay 0;NOT B;NOT B\r\n\r\nNOT A AND NOT B = NOT A & NOT B\r\ndisplay 0;NOT A AND NOT B;NOT A AND NOT B\r\n\r\nNOT (NOT A AND NOT B) = ! NOT A AND NOT B\r\ndisplay 0;NOT (NOT A AND NOT B);NOT (NOT A AND NOT B)\r\n\r\n\r\n\r\nA and B = A & B\r\ndisplay 0;A and B;A and B\r\n\r\nNOT A AND B = ! A and B\r\ndisplay 0;NOT A AND B;NOT A AND B\r\n\r\nXOR = NOT A AND B & NOT (NOT A AND NOT B)\r\ndisplay 1;XOR;XOR\r\n```\r\n\r\n:rofl: "}}
{"actor":{"display_login":"nilmerg"}}