{"action":"created","issue":{"url":"https://api.github.com/repos/naparuba/shinken/issues/1799","labels_url":"https://api.github.com/repos/naparuba/shinken/issues/1799/labels{/name}","comments_url":"https://api.github.com/repos/naparuba/shinken/issues/1799/comments","events_url":"https://api.github.com/repos/naparuba/shinken/issues/1799/events","html_url":"https://github.com/naparuba/shinken/issues/1799","id":126430033,"number":1799,"title":"Macros does not work with timeperiods","user":{"login":"syruis","id":8721354,"avatar_url":"https://avatars.githubusercontent.com/u/8721354?v=3","gravatar_id":"","url":"https://api.github.com/users/syruis","html_url":"https://github.com/syruis","followers_url":"https://api.github.com/users/syruis/followers","following_url":"https://api.github.com/users/syruis/following{/other_user}","gists_url":"https://api.github.com/users/syruis/gists{/gist_id}","starred_url":"https://api.github.com/users/syruis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syruis/subscriptions","organizations_url":"https://api.github.com/users/syruis/orgs","repos_url":"https://api.github.com/users/syruis/repos","events_url":"https://api.github.com/users/syruis/events{/privacy}","received_events_url":"https://api.github.com/users/syruis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2016-01-13T14:33:00Z","updated_at":"2016-01-21T11:54:47Z","closed_at":null,"body":"Hi,\r\n\r\nI just want to use a macro to set a different timeperiod per host in the services\r\n\r\nI can use a macro to set the timeperiod, but when i do my config check :\r\n> +1: [[91m[1452695317] ERROR: [Shinken] [service::xxxx/xxxx] The check_period of the service 'xxx' named '$_HOSTMAGASINPERIOD$'\r\n\r\nit seems that macros aren't interpreted by shinken....\r\n\r\nExample:\r\n> define host{\r\n> [..]\r\n>          _MAGASINPERIOD longhours\r\n> }\r\n> define service{\r\n>          hostgroup_name                  xx\r\n>          service_description     xx\r\n>         use generic-service\r\n>          check_command           xx\r\n>\r\n>         check_period            $_HOSTMAGASINPERIOD$ ; <- does not work\r\n>          check_period    workhours                                      ; <- works....\r\n>          notes TEST MACRO $_HOSTMAGASINPERIOD$\r\n>}\r\nRegards,\r\n\r\n[FR]\r\nLe problème est assez simple j'aimerais \"simplement\", attribué une timeperiod vie une macro sur le host.\r\n\r\nCordialement,"},"comment":{"url":"https://api.github.com/repos/naparuba/shinken/issues/comments/173548665","html_url":"https://github.com/naparuba/shinken/issues/1799#issuecomment-173548665","issue_url":"https://api.github.com/repos/naparuba/shinken/issues/1799","id":173548665,"user":{"login":"syruis","id":8721354,"avatar_url":"https://avatars.githubusercontent.com/u/8721354?v=3","gravatar_id":"","url":"https://api.github.com/users/syruis","html_url":"https://github.com/syruis","followers_url":"https://api.github.com/users/syruis/followers","following_url":"https://api.github.com/users/syruis/following{/other_user}","gists_url":"https://api.github.com/users/syruis/gists{/gist_id}","starred_url":"https://api.github.com/users/syruis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syruis/subscriptions","organizations_url":"https://api.github.com/users/syruis/orgs","repos_url":"https://api.github.com/users/syruis/repos","events_url":"https://api.github.com/users/syruis/events{/privacy}","received_events_url":"https://api.github.com/users/syruis/received_events","type":"User","site_admin":false},"created_at":"2016-01-21T11:54:46Z","updated_at":"2016-01-21T11:54:46Z","body":"It seems working well in my testing env and in my production env...\r\nThanks for all,\r\nRegards,\r\nThomas."}}