I have done this: class nrpe inherits puppet::master { include nagios2::nrpe user { "nagios": groups => 'puppet', } file { "/usr/lib/nagios/plugins/check_puppet": ensure => "present", source => "puppet://$servername/puppet/check_puppet", mode => 755, notify => Service['nagios-nrpe-server'], require => Package['nagios-plugins-basic'] } line { check_puppet_line: file => "/etc/nagios/nrpe_local.cfg", line => "command[check_puppet]=/usr/lib/nagios/plugins/check_pup pet", notify => Service['nagios-nrpe-server'] } nagios2::service { "puppetlast": check_command => "check_nrpe_1arg!check_puppet" } }
The check_puppet command is this: http://hg.koumbit.net/module-puppet/file/tip/files/check_puppet Note that this creates one service for all hosts, whereas you may want to do this with NSCA (instead of NRPE) and report one service per host. I didn't go that fancy way, and would be interested in such a contribution. A. -- Le monochrome, c'est pour ceux qui s'intéressent (encore) au contenu. Usenet dans ces conditions, c'est comme le web avec lynx, on prend trop conscience du vide, c'est déprimant. - JLC dans le Guide du linuxien pervers: "Coup de cafard..."
signature.asc
Description: Digital signature