Skip to content

Instantly share code, notes, and snippets.

@c4m4
Created February 5, 2018 09:55
Show Gist options
  • Save c4m4/e2ef9340dca2ff53372b8c3e8b3ea2ef to your computer and use it in GitHub Desktop.
Save c4m4/e2ef9340dca2ff53372b8c3e8b3ea2ef to your computer and use it in GitHub Desktop.
@@nagios_host { "${::ipaddress}":
address => $::ipaddress,
alias => $facts['ec2_metadata']['hostname'],
icon_image => 'linux40.jpg',
statusmap_image => 'linux40.gd2',
use => 'generic-host,host-pnp',
check_command => 'check-host-alive',
mode => '0644',
notes => $::application,
notes_url => "https://eu-central-1.console.aws.amazon.com/ec2/v2/home?region=eu-central-1#Instances:instanceId=${facts[ec2_metadata][instance-id]}",
hostgroups => $::application,
process_perf_data => '1',
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment