Advertisement
Guest User

Untitled

a guest
May 18th, 2016
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.38 KB | None | 0 0
  1. smtpHost = ${env.BOSUN_MAIL_SERV}
  2. smtpUsername = ${env.BOSUN_MAIL_USER}
  3. smtpPassword = ${env.BOSUN_MAIL_PASS}
  4. emailFrom = ${env.BOSUN_MAIL_FROM}
  5. httpListen = :8070
  6. timeAndDate = 31
  7. stateFile = ../bosun.state
  8. ledisDir = ../ledis_data
  9. checkFrequency = 10s
  10. logstashElasticHosts = ${env.BOSUN_ES_HOSTS}
  11.  
  12. notification onError {
  13. email = elkarel@company.net
  14. print = true
  15. }
  16.  
  17. template generic {
  18. subject = Test alert
  19. body = `<p>Alert: {{.Alert.Name}} triggered </p>`
  20. }
  21.  
  22. alert company.errors.rate.exceeds0 {
  23. template = generic
  24. unknownIsNormal = true
  25. runEvery = 1
  26. $notes = "The rate of errors exceeds 1."
  27. crit = 1
  28. critNotification = onError
  29. }
  30.  
  31. elkarel@thinkPad-E550:~/Bosun$ ./bosun-linux-amd64-0.5.0-rc3 -c company.conf
  32. 2016/05/18 13:14:45 enabling syslog
  33. 2016/05/18 13:14:45 info: search.go:194: Loading last datapoints from redis
  34. 2016/05/18 13:14:45 info: search.go:201: Done
  35. 2016/05/18 13:14:45 info: bolt.go:53: RestoreState
  36. 2016/05/18 13:14:45 info: bolt.go:65: RestoreState done in 23.954µs
  37. 2016/05/18 13:14:45 info: check.go:513: check alert company.errors.rate.exceeds0 start
  38. 2016/05/18 13:14:45 info: check.go:537: check alert company.errors.rate.exceeds0 done (463.184µs): 1 crits, 0 warns, 0 unevaluated, 0 unknown
  39. 2016/05/18 13:14:45 info: web.go:154: bosun web listening on: :8070
  40. 2016/05/18 13:14:45 info: web.go:155: tsdb host:
  41. 2016/05/18 13:14:45 info: alertRunner.go:55: runHistory on company.errors.rate.exceeds0 took 11.525239ms
  42. 2016/05/18 13:14:55 info: check.go:513: check alert company.errors.rate.exceeds0 start
  43. 2016/05/18 13:14:55 info: check.go:537: check alert company.errors.rate.exceeds0 done (418.716µs): 1 crits, 0 warns, 0 unevaluated, 0 unknown
  44. 2016/05/18 13:14:55 info: alertRunner.go:55: runHistory on company.errors.rate.exceeds0 took 2.298315ms
  45.  
  46. 2016/05/18 13:15:05 info: notify.go:147: Batching and sending unknown notifications
  47. 2016/05/18 13:15:05 info: notify.go:177: Done sending unknown notifications
  48. 2016/05/18 13:15:05 info: check.go:513: check alert company.errors.rate.exceeds0 start
  49. 2016/05/18 13:15:05 info: check.go:537: check alert company.errors.rate.exceeds0 done (380.23µs): 1 crits, 0 warns, 0 unevaluated, 0 unknown
  50. 2016/05/18 13:15:05 info: alertRunner.go:55: runHistory on company.errors.rate.exceeds0 took 919.933µs
  51. 2016/05/18 13:15:15 info: check.go:513: check alert company.errors.rate.exceeds0 start
  52. 2016/05/18 13:15:15 info: check.go:537: check alert company.errors.rate.exceeds0 done (351.148µs): 1 crits, 0 warns, 0 unevaluated, 0 unknown
  53. 2016/05/18 13:15:15 info: alertRunner.go:55: runHistory on company.errors.rate.exceeds0 took 807.104µs
  54. 2016/05/18 13:15:25 info: notify.go:147: Batching and sending unknown notifications
  55. 2016/05/18 13:15:25 info: notify.go:177: Done sending unknown notifications
  56. 2016/05/18 13:15:25 info: check.go:513: check alert company.errors.rate.exceeds0 start
  57. 2016/05/18 13:15:25 info: check.go:537: check alert company.errors.rate.exceeds0 done (439.26µs): 1 crits, 0 warns, 0 unevaluated, 0 unknown
  58. 2016/05/18 13:15:25 info: alertRunner.go:55: runHistory on company.errors.rate.exceeds0 took 2.429369ms
  59.  
  60. elkarel@thinkPad-E550:~/Bosun$ ./bosun-linux-amd64-0.5.0-rc3 -c company.conf
  61. 2016/05/18 13:18:35 enabling syslog
  62. 2016/05/18 13:18:35 info: search.go:194: Loading last datapoints from redis
  63. 2016/05/18 13:18:35 info: search.go:201: Done
  64. 2016/05/18 13:18:35 info: bolt.go:53: RestoreState
  65. 2016/05/18 13:18:35 info: bolt.go:65: RestoreState done in 28.431µs
  66. 2016/05/18 13:18:35 info: check.go:513: check alert company.errors.rate.exceeds_newname start
  67. 2016/05/18 13:18:35 info: check.go:537: check alert company.errors.rate.exceeds_newname done (638.843µs): 1 crits, 0 warns, 0 unevaluated, 0 unknown
  68. 2016/05/18 13:18:35 info: web.go:154: bosun web listening on: :8070
  69. 2016/05/18 13:18:35 info: web.go:155: tsdb host:
  70. 2016/05/18 13:18:35 info: alertRunner.go:55: runHistory on company.errors.rate.exceeds_newname took 2.380886ms
  71. 2016/05/18 13:18:35 info: notify.go:57: Test alert
  72. 2016/05/18 13:18:36 info: notify.go:115: relayed alert company.errors.rate.exceeds_newname{} to [kcech@opentrends.net] sucessfully. Subject: 10 bytes. Body: 99 bytes.
  73. 2016/05/18 13:18:45 info: check.go:513: check alert company.errors.rate.exceeds_newname start
  74. 2016/05/18 13:18:45 info: check.go:537: check alert company.errors.rate.exceeds_newname done (558.396µs): 1 crits, 0 warns, 0 unevaluated, 0 unknown
  75. 2016/05/18 13:18:45 info: alertRunner.go:55: runHistory on company.errors.rate.exceeds_newname took 746.837µs
  76. 2016/05/18 13:18:55 info: notify.go:147: Batching and sending unknown notifications
  77. 2016/05/18 13:18:55 info: notify.go:177: Done sending unknown notifications
  78. 2016/05/18 13:18:55 info: check.go:513: check alert company.errors.rate.exceeds_newname start
  79. 2016/05/18 13:18:55 info: check.go:537: check alert company.errors.rate.exceeds_newname done (394.645µs): 1 crits, 0 warns, 0 unevaluated, 0 unknown
  80. 2016/05/18 13:18:55 info: alertRunner.go:55: runHistory on company.errors.rate.exceeds_newname took 956.957µs
  81. 2016/05/18 13:19:05 info: check.go:513: check alert company.errors.rate.exceeds_newname start
  82. 2016/05/18 13:19:05 info: check.go:537: check alert company.errors.rate.exceeds_newname done (404.464µs): 1 crits, 0 warns, 0 unevaluated, 0 unknown
  83. 2016/05/18 13:19:05 info: alertRunner.go:55: runHistory on company.errors.rate.exceeds_newname took 832.393µs
  84. 2016/05/18 13:19:15 info: notify.go:147: Batching and sending unknown notifications
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement