Last active
August 29, 2015 14:05
-
-
Save MelanieGault/4f5ba2dcae06919bab46 to your computer and use it in GitHub Desktop.
sample: add new check with icinga2 module for puppet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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