mpellegrin / nagios-eventhandler-cachet

A Nagios event handler to push Nagios notifications to Cachet API
MIT License
50 stars 17 forks source link

Raising issue doesn't change status of component #3

Open dpina000 opened 8 years ago

dpina000 commented 8 years ago

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 commented 8 years ago

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.