Listing 2. /modules/nagios/manifests/export.pp # All agents (including the nagios server) will use this class nagios::export { @@nagios_host { $::hostname: address => $::ipaddress, check_command => 'check_host_alive!3000.0,80%!5000.0,100%!10', target => "/etc/nagios/resource.d/host_${::hostname}.cfg", } }