{"action":"opened","issue":{"url":"https://api.github.com/repos/schubergphilis/nagios/issues/399","labels_url":"https://api.github.com/repos/schubergphilis/nagios/issues/399/labels{/name}","comments_url":"https://api.github.com/repos/schubergphilis/nagios/issues/399/comments","events_url":"https://api.github.com/repos/schubergphilis/nagios/issues/399/events","html_url":"https://github.com/schubergphilis/nagios/issues/399","id":81524093,"number":399,"title":"Setting custom macros","user":{"login":"jhammerman79","id":12447327,"avatar_url":"https://avatars.githubusercontent.com/u/12447327?v=3","gravatar_id":"","url":"https://api.github.com/users/jhammerman79","html_url":"https://github.com/jhammerman79","followers_url":"https://api.github.com/users/jhammerman79/followers","following_url":"https://api.github.com/users/jhammerman79/following{/other_user}","gists_url":"https://api.github.com/users/jhammerman79/gists{/gist_id}","starred_url":"https://api.github.com/users/jhammerman79/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhammerman79/subscriptions","organizations_url":"https://api.github.com/users/jhammerman79/orgs","repos_url":"https://api.github.com/users/jhammerman79/repos","events_url":"https://api.github.com/users/jhammerman79/events{/privacy}","received_events_url":"https://api.github.com/users/jhammerman79/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-27T16:43:09Z","updated_at":"2015-05-27T16:43:09Z","closed_at":null,"body":"Hi Nagios cookbook development team,\r\n\r\nNagios has a provision for custom macros:\r\n\r\nhttp://nagios.sourceforge.net/docs/3_0/customobjectvars.html\r\n\r\nI need to set this for my redis checks to function:\r\n\r\nhttp://support.nagios.com/forum/viewtopic.php?f=7&t=26608\r\n\r\nI tried this:\r\n\r\nnagios_host 'rds1' do\r\n  options 'alias'        => 'rds1.stg.prv',\r\n          'address'     => '172.16.2.40',\r\n          'hostgroups'  => 'rd_secondaries,redis',\r\n          '_SYSTEM_MEMORY'  => '3G'\r\nend\r\n\r\nBut the rendered file tosses the value out.\r\n\r\nWould this work if I created a template and inherited from that? Or is there some other facility for effecting this?\r\n\r\nI could open open up the hosts.cfg and rerender it with custom values, but Sander and I tried to do that with contacts.cfg in bug #395, and we had no joy.\r\n\r\nThanks in advance for any assistance you can provide,\r\nJoseph Hammerman"}}