Advertisement
Guest User

Untitled

a guest
May 25th, 2016
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.54 KB | None | 0 0
  1. init_config:
  2. # Change default path of trusted certificates
  3. # ca_certs: /etc/ssl/certs/ca-certificates.crt
  4.  
  5. instances:
  6. - name: TES Jobs
  7. url: https://www.tes.com/jobs/
  8. timeout: 3
  9.  
  10. # The (optional) content_match parameter will allow the check
  11. # to look for a particular string within the response. The check
  12. # will report as DOWN if the string is not found.
  13. #
  14. # content_match uses Python regular expressions which means that
  15. # you will have to escape the following "special" characters with
  16. # a backslash (\) if you're trying to match them in your content:
  17. # . ^ $ * + ? { } [ ] \ | ( )
  18. #
  19. # Examples:
  20. content_match: 'login'
  21. # content_match: '^(Bread|Apples|Very small rocks|Cider|Gravy|Cherries|Mud|Churches|Lead) float(s)? in water'
  22.  
  23. # If your service uses basic authentication, you can optionally
  24. # specify a username and password that will be used in the check.
  25. #
  26. # username: user
  27. # password: pass
  28.  
  29. # The (optional) http_response_status_code parameter will instruct the check
  30. # to look for a particular HTTP response status code or a Regex identifying
  31. # a set of possible status codes.
  32. # The check will report as DOWN if status code returned differs.
  33. # This defaults to 1xx, 2xx and 3xx HTTP status code: (1|2|3)\d\d.
  34. http_response_status_code: 200
  35.  
  36. # The (optional) window and threshold parameters allow you to trigger
  37. # alerts only if the check fails x times within the last y attempts
  38. # where x is the threshold and y is the window.
  39. #
  40. threshold: 3
  41. window: 5
  42.  
  43. # The (optional) include_content parameter will instruct the check
  44. # to include the first 200 characters of the HTTP response body
  45. # in notifications sent by this plugin. This is best used with
  46. # "healthcheck"-type URLs, where the body contains a brief, human-
  47. # readable summary of failure reasons in the case of errors. This
  48. # defaults to false.
  49. #
  50. # include_content: false
  51.  
  52. # The (optional) collect_response_time parameter will instruct the
  53. # check to create a metric 'network.http.response_time', tagged with
  54. # the url, reporting the response time in seconds.
  55. #
  56. collect_response_time: true
  57.  
  58. # The (optional) disable_ssl_validation will instruct the check
  59. # to skip the validation of the SSL certificate of the URL being tested.
  60. # This is mostly useful when checking SSL connections signed with
  61. # certificates that are not themselves signed by a public authority.
  62. # When true, the check logs a warning in collector.log
  63. # Defaults to true, set to false if you want SSL certificate validation.
  64. #
  65. disable_ssl_validation: false
  66.  
  67. # Path of trusted CA certificates used to validate the SSL certificate
  68. # for this url.
  69. # Overrides the default path and the one specified in init_config.
  70. #
  71. # ca_certs: /etc/ssl/certs/ca-certificates.crt
  72.  
  73. # The (optional) ssl_expire will instruct the check
  74. # to create a service check that checks the expiration of the
  75. # ssl certificate. Allow for a warning to occur when x days are
  76. # left in the certificate.
  77. # The SSL certificate will always be validated for this additional
  78. # service check regardless of the value of disable_ssl_validation
  79. #
  80. # check_certificate_expiration: true
  81. # days_warning: 14
  82.  
  83. # The (optional) headers parameter allows you to send extra headers
  84. # with the request. This is useful for explicitly specifying the host
  85. # header or perhaps adding headers for authorisation purposes. Note
  86. # that the http client library converts all headers to lowercase.
  87. # This is legal according to RFC2616
  88. # (See: http://tools.ietf.org/html/rfc2616#section-4.2)
  89. # but may be problematic with some HTTP servers
  90. # (See: https://code.google.com/p/httplib2/issues/detail?id=169)
  91. #
  92. # headers:
  93. # Host: alternative.host.example.com
  94. # X-Auth-Token: SOME-AUTH-TOKEN
  95.  
  96. # The (optional) skip_event parameter will instruct the check to not
  97. # create any event to avoid duplicates with a server side service check.
  98. # This default to False.
  99. #
  100. skip_event: true
  101.  
  102. tags:
  103. - url:https://www.tes.com/jobs/
  104. - env:VEN,LIVE
  105.  
  106.  
  107. - name: HCUK
  108. url: http://study.hcukonline.com/TSLKeepAlive.html/
  109. timeout: 3
  110. content_match: 'onlinee'
  111. http_response_status_code: 200
  112. threshold: 3
  113. window: 5
  114. collect_response_time: true
  115. skip_event: true
  116.  
  117. tags:
  118. - url:http://study.hcukonline.com/
  119. - env:VEN,LIVE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement