{"action":"created","issue":{"url":"https://api.github.com/repos/pynag/pynag/issues/219","labels_url":"https://api.github.com/repos/pynag/pynag/issues/219/labels{/name}","comments_url":"https://api.github.com/repos/pynag/pynag/issues/219/comments","events_url":"https://api.github.com/repos/pynag/pynag/issues/219/events","html_url":"https://github.com/pynag/pynag/issues/219","id":63188714,"number":219,"title":"Use of \"name\" attribute in definitions","user":{"login":"chsigi","id":141593,"avatar_url":"https://avatars.githubusercontent.com/u/141593?v=3","gravatar_id":"","url":"https://api.github.com/users/chsigi","html_url":"https://github.com/chsigi","followers_url":"https://api.github.com/users/chsigi/followers","following_url":"https://api.github.com/users/chsigi/following{/other_user}","gists_url":"https://api.github.com/users/chsigi/gists{/gist_id}","starred_url":"https://api.github.com/users/chsigi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chsigi/subscriptions","organizations_url":"https://api.github.com/users/chsigi/orgs","repos_url":"https://api.github.com/users/chsigi/repos","events_url":"https://api.github.com/users/chsigi/events{/privacy}","received_events_url":"https://api.github.com/users/chsigi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-20T08:27:18Z","updated_at":"2015-03-21T19:58:47Z","closed_at":"2015-03-21T19:58:47Z","body":"Given a valid icinga host definition\r\n\r\n    define host {\r\n        host_name         A\r\n        alias             Host A\r\n        max_check_attempts       10\r\n        notification_interval    10\r\n        check_period             24x7\r\n        notification_period      24x7\r\n    }\r\n\r\npynag assumes on various occasions (get_by_name(), reload_cache(), ....) that the\r\ndefinition should have an attribute called \"name\" and fails.\r\n\r\nAm I missing something here? I could find no reference to a \"name\" attribute in the icinga 1.11 documentation.\r\n\r\nIt seems as if the dynamically added name property should extract its value not from \"name\" but\r\n\"host_name\",  \"contact_name\", ...\r\n\r\nIf this is indeed a bug, I would be more than happy to help! "},"comment":{"url":"https://api.github.com/repos/pynag/pynag/issues/comments/84446621","html_url":"https://github.com/pynag/pynag/issues/219#issuecomment-84446621","issue_url":"https://api.github.com/repos/pynag/pynag/issues/219","id":84446621,"user":{"login":"palli","id":324719,"avatar_url":"https://avatars.githubusercontent.com/u/324719?v=3","gravatar_id":"","url":"https://api.github.com/users/palli","html_url":"https://github.com/palli","followers_url":"https://api.github.com/users/palli/followers","following_url":"https://api.github.com/users/palli/following{/other_user}","gists_url":"https://api.github.com/users/palli/gists{/gist_id}","starred_url":"https://api.github.com/users/palli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/palli/subscriptions","organizations_url":"https://api.github.com/users/palli/orgs","repos_url":"https://api.github.com/users/palli/repos","events_url":"https://api.github.com/users/palli/events{/privacy}","received_events_url":"https://api.github.com/users/palli/received_events","type":"User","site_admin":false},"created_at":"2015-03-21T19:58:47Z","updated_at":"2015-03-21T19:58:47Z","body":"Marking as closed until further notice. Don't hesitate to reopen if you believe there is a bug in here."}}