Skip to content

Instantly share code, notes, and snippets.

@MelanieGault
Last active August 29, 2015 14:05
Show Gist options
  • Save MelanieGault/4f5ba2dcae06919bab46 to your computer and use it in GitHub Desktop.
Save MelanieGault/4f5ba2dcae06919bab46 to your computer and use it in GitHub Desktop.
sample: add new check with icinga2 module for puppet
icinga2::nrpe::command { 'check_ntp_peer':
command_name => 'check_ntp_peer',
nrpe_plugin_liddir => '/usr/lib64/nagios/plugins/',
nrpe_plugin_name => 'check_ntp_peer',
nrpe_plugin_args => '-H localhost -w 1 -c 2',
}
@@icinga2::object::service { "${::fqdn}_ntp":
object_servicename => 'ntp',
display_name => 'ntp',
host_name => $::fqdn,
check_command => 'nrpe',
vars => {
nrpe_command => 'check_ntp_peer'
}
,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment