Skip to content

Instantly share code, notes, and snippets.

@benjaminws
Created March 2, 2013 21:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benjaminws/5073451 to your computer and use it in GitHub Desktop.
Save benjaminws/5073451 to your computer and use it in GitHub Desktop.
nagios service example
@@nagios_service { "check_ssh_${::hostname}":
ensure => present,
use => 'local-service',
check_command => 'check_ssh',
service_description => 'SSH',
host_name => $::fqdn,
notifications_enabled => 1,
target => "/etc/nagios/servers/${::fqdn}_host.cfg",
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment