nagios-eventhandler-cachet icon indicating copy to clipboard operation
nagios-eventhandler-cachet copied to clipboard

Raising issue doesn't change status of component

Open dpina000 opened this issue 9 years ago • 1 comments

Currently using nagios-eventhandler-cachet with a cachet installation v2.0.0 RC5

When running the cachet_notify to change a component, it returns the correct task "KO HARD":

./cachet_notify 'component' 'nagios service' CRITICAL HARD 'The service is Critical'
KO HARD: creating incident
Can't create incident

Also raises an issue, but the component status is never changed.

Nginx returns code 400

"POST /api/v1/incidents HTTP/1.1" 400 219 "-" "-" "-"

dpina000 avatar Dec 03 '15 14:12 dpina000

It looks like there's more fields required when running a post/incident. Cachet doc seems to be out of date as well, but already made the query.

I've prepared a fix for nagios-eventhandler-cachet and will submit the code to project owner.

dpina000 avatar Dec 11 '15 13:12 dpina000