Shameless plug.
I wrote a module to do pretty much what you are trying to achieve.
http://forge.puppetlabs.com/rendhalver/monitoring
It currently works on CentOS and Fedora. Debian/Ubuntu support is in progress.
I also have a couple of other modules for managing nrpe and icinga
Feel free to have a look at the code on github for inspiration even if
you don't install it.

Pete.

On 28 June 2013 02:07, Christian Reiß <reiss.symgen...@gmail.com> wrote:
> Hello folks,
>
> I am currently using Puppet to forge the nagios configuration files. Using
> exported ressources it really works well - to a point.
>
> The one thing I am banging my head against is the service definitions. The
> services use stuff like remote-nrpe-zombie-procs, which of course, is not
> defined anywhere:
>
> define service {
>     ## --PUPPET_NAME-- (called '_naginator_name' in the manifest)
> check_zombie_procs_gaming
>     use                            remote-nrpe-zombie-procs
>     host_name                      gaming.alpha-labs.net
> }
>
> So far I am letting puppet generate the three configs:
>
> nagios_host.cfg
> nagios_hostextinfo.cfg
> nagios_service.cfg
>
> Tho for this to work I would need a corresponding commands.cfg and all the
> Howtos out there do not seem to have my problem. The important snipplet from
> my config would be this:
>
>
>  Nagios_host <<||>> {
>      require => File[resource-d],
>      notify => Service[icinga],
>  }
>
>  Nagios_service <<||>> {
>      require => File[resource-d],
>      notify => Service[icinga],
>  }
>
>  Nagios_hostextinfo <<||>> {
>      require => File[resource-d],
>      notify => Service[icinga],
>  }
>
>  Nagios_command <<||>> {
>      require => File[resource-d],
>      notify => Service[icinga],
>  }
>
>
> After banging my head for 3 evenings on this I really need your help.
> Thanks for any pointers.
>
> -Chris.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to puppet-users+unsubscr...@googlegroups.com.
> To post to this group, send email to puppet-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/puppet-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to