Advertisement
JoaquinHF

hostname.cfg

Aug 23rd, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. define host {
  2. use generic-host
  3. host_name hostname1
  4. alias hostname1
  5. check_interval 1
  6. address foo.bar.com
  7. max_check_attempts 5
  8. contact_groups admins
  9. check_command check_http! foo.bar.com
  10. }
  11. define service {
  12. use generic-service
  13. host_name hostname
  14. service_description HTTP
  15. check_command check_http! foo.bar.com
  16. max_check_attempts 5
  17. check_interval 5
  18. retry_interval 1
  19. }
  20. define host {
  21. use generic-host
  22. host_name hostname2
  23. alias hostname2
  24. check_interval 1
  25. address 192.168.2.4
  26. max_check_attempts 5
  27. contact_groups admins
  28. check_command check_http! 192.168.2.4
  29. }
  30. define service {
  31. use generic-service
  32. host_name hostname
  33. service_description HTTP
  34. check_command check_http! 192.168.2.4
  35. max_check_attempts 5
  36. check_interval 5
  37. retry_interval 1
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement