Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- define nagios::host (
- $address = $ipaddress,
- $alias = $hostname,
- $use = 'generic-host',
- $hostgroups = "generic-linux-host",
- #$hostgroups = ["generic-linux-host","$operatingsystem","$customer_code"],
- $notes = ["[${customer_code}] ${customer_name}"]
- )
- {
- @@nagios_host { "${name}":
- address => $address,
- alias => $alias,
- use => $use,
- hostgroups => $hostgroups,
- notes => $notes,
- }
- if ($nagios_parents != '') {
- Nagios_host["${name}"] { parents => $nagios_parents }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement