Advertisement
Guest User

Untitled

a guest
Aug 18th, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. define nagios::host (
  2. $address = $ipaddress,
  3. $alias = $hostname,
  4. $use = 'generic-host',
  5. $hostgroups = "generic-linux-host",
  6. #$hostgroups = ["generic-linux-host","$operatingsystem","$customer_code"],
  7. $notes = ["[${customer_code}] ${customer_name}"]
  8. )
  9. {
  10. @@nagios_host { "${name}":
  11. address => $address,
  12. alias => $alias,
  13. use => $use,
  14. hostgroups => $hostgroups,
  15. notes => $notes,
  16. }
  17.  
  18. if ($nagios_parents != '') {
  19. Nagios_host["${name}"] { parents => $nagios_parents }
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement