mpellegrin / nagios-eventhandler-cachet

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

Nothing happens #5

Closed philshil closed 8 years ago

philshil commented 8 years ago

Hello, i have downloaded the files, edited the cachet_notify file with the address and API key. i can manually force it to add a new incident using ; /cachet_notify 'Insight' 'PSH' CRITICAL HARD 'The service is Critical'

however when i add event_handler cachet_notify!Insight nothing happens.

dpina000 commented 8 years ago

Hi,

Possible errors:

1) Do you have a cachet component called "Insight" ? Because that's what you'r parsing into cachet, and if there is a mistype nothing will happen.

2) Your event_handler is only called when the service goes down on nagios. Can you check on your nagios logs that the service X where you added the event_handler did in fact go down?

philshil commented 8 years ago

okay, i think i have found the issue 1450777352] wproc: stderr line 01: execvp(/usr/share/nagios3/plugins/eventhandlers/cachet_notify, ...) failed. errno is 2: No such file or directory

i can't find where to change to point it to the correct directory :/

dpina000 commented 8 years ago

You've configured the command as per the instructions most likely, so these lines should be in your config files:

define command { command_name cachet_notify command_line /usr/share/nagios3/plugins/eventhandlers/cachet_notify '$ARG1$' '$SERVICEDESC$' '$SERVICESTATE$' '$SERVICESTATETYPE$' '$SERVICEOUTPUT$' }

you can change the path there from /usr/share/nagios3/plugins/eventhandlers/ to something else.

philshil commented 8 years ago

Its posted now, hasn't changed the status but has created an incident thanks :+1: