{"action":"closed","issue":{"url":"https://api.github.com/repos/naemon/naemon-core/issues/84","repository_url":"https://api.github.com/repos/naemon/naemon-core","labels_url":"https://api.github.com/repos/naemon/naemon-core/issues/84/labels{/name}","comments_url":"https://api.github.com/repos/naemon/naemon-core/issues/84/comments","events_url":"https://api.github.com/repos/naemon/naemon-core/issues/84/events","html_url":"https://github.com/naemon/naemon-core/issues/84","id":39432486,"number":84,"title":"Inconsistent code/docs for host check_period","user":{"login":"julianbrost","id":18552,"avatar_url":"https://avatars.githubusercontent.com/u/18552?v=3","gravatar_id":"","url":"https://api.github.com/users/julianbrost","html_url":"https://github.com/julianbrost","followers_url":"https://api.github.com/users/julianbrost/followers","following_url":"https://api.github.com/users/julianbrost/following{/other_user}","gists_url":"https://api.github.com/users/julianbrost/gists{/gist_id}","starred_url":"https://api.github.com/users/julianbrost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julianbrost/subscriptions","organizations_url":"https://api.github.com/users/julianbrost/orgs","repos_url":"https://api.github.com/users/julianbrost/repos","events_url":"https://api.github.com/users/julianbrost/events{/privacy}","received_events_url":"https://api.github.com/users/julianbrost/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-08-04T15:39:56Z","updated_at":"2016-05-06T08:29:57Z","closed_at":"2016-05-06T08:29:57Z","body":"The [docs on host objects](http://www.naemon.org/documentation/usersguide/objectdefinitions.html#host_definition) list `check_period` as a required attribute but Naemon starts fine (even without warnings) if it's not set. In this case I guess it works just like if the time period was set to `24x7`.\r\n\r\nFor services there is a check at [naemon/configuration.c:1505](https://github.com/naemon/naemon-core/blob/afd6912d90650af6d365421cd066f2edf3e9143d/naemon/configuration.c#L1505) but for hosts there is only a check at [naemon/configuration.c:1585](https://github.com/naemon/naemon-core/blob/afd6912d90650af6d365421cd066f2edf3e9143d/naemon/configuration.c#L1585) which only checks whether the timeperiod is valid if any is given.\r\n\r\nThis behavior should either be changed or documented. There might be similar problems for other attributes but `check_period` was the only one I looked at."}}