Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't create incident #10

Open
jonnymccullagh opened this issue Jun 6, 2016 · 2 comments
Open

Can't create incident #10

jonnymccullagh opened this issue Jun 6, 2016 · 2 comments

Comments

@jonnymccullagh
Copy link

I'm testing this eventhandler with cachethq v2.2.2 e.g.
/usr/lib64/nagios/plugins/eventhandlers/cachet_notify 'Whatever Web Access' 'My nagios service'
I get the following response:

CRITICAL HARD 'The service is Critical'                   
KO HARD: creating incident
Can't create incident

The arrary that is being sent to cachethq is as follows:

Array
(
[name] => [Nagios] This is a test
[message] => Blah
[status] => 1
[component_id] => 3
[notify] => 1
)
And the detailed response is:
400 {"errors":[{"id":"ed354db7-e726-41c2-a69c-791e3e8b521f","status":400,"title":"Bad Request","detail":"The request cannot be fulfilled due to bad syntax.","meta":{"details":["The status format is invalid."]}}]}

Any ideas?
Thanks,
jonny

@chooko
Copy link

chooko commented Jul 6, 2017

I'm having the same issue here. Perhaps since Cachet has been updated, the format of the Array is no longer valid?

Any help would be greatly appreciated.

@chooko
Copy link

chooko commented Jul 6, 2017

I figured out my issue. I was getting a 401 unauthorized error. Had the wrong API key copied into the script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants