This code is intended to be used with the brilliant https://github.com/aswen/puppet-module-icinga. It is quite incomplete, but it is in a working, basic state. Enjoy.