CastawayLabs / cachet-monitor

Distributed monitoring plugin for CachetHQ
https://castawaylabs.github.io/cachet-monitor/
MIT License
439 stars 126 forks source link

Incident creation failes #93

Open tomtom125 opened 6 years ago

tomtom125 commented 6 years ago

Hi,

I have almost the same problem like here: https://github.com/CastawayLabs/cachet-monitor/issues/28 Status change works but it doesn't create incident.

New incident error: Creating incident... 2018/06/27 12:25:50 /go/src/github.com/castawaylabs/cachet-monitor/cachet/incident.go:72: 400 {"errors":[{"id":"7xxxxxxx3","status":400,"title":"Bad Request","detail":"The request cannot be fulfilled due to bad syntax.","meta":{"details":["The status format is invalid."]}}]} 2018/06/27 12:25:50 /go/src/github.com/castawaylabs/cachet-monitor/cachet/incident.go:85: Could not create/update incident!

Incident resolved error: 2018/06/27 12:26:50 /go/src/github.com/castawaylabs/cachet-monitor/cachet/monitor.go:114: Updating incident to resolved... 2018/06/27 12:26:50 /go/src/github.com/castawaylabs/cachet-monitor/cachet/incident.go:72: 400 {"errors":[{"id":"5dxxxxxxxxxxxxxxxxx7f9","status":400,"title":"Bad Request","detail":"The request cannot be fulfilled due to bad syntax.","meta":{"details":["The status format is invalid."]}}]} 2018/06/27 12:26:50 /go/src/github.com/castawaylabs/cachet-monitor/cachet/incident.go:85: Could not create/update incident!

I'm using : cachethq/docker:2.3.14 and castawaylabs/cachet-monitor docker images

Can you help me?

Thanks Tom

callum22 commented 5 years ago

Also having the same issue with the docker version of cachet-monitor. I believe it's because Cachet requires you to pass the component_status when creating an incident and the code doesn't do this. Not sure if this project is being maintained at all but if it is it'd be great if this could be fixed.