mpellegrin/nagios-eventhandler-cachet

The status format is invalid message comes even the format is correct

Closed this issue · 3 comments

When I'm trying to create an event, I get the following error laravel.log

production.ERROR: exception 'AltThree\Validator\ValidationException' with message 'Validation has failed.' in /var/www/Cachet/vendor/alt-three/validator/src/ValidatingObserver.php:89
Validation errors:
The status format is invalid.

Tried this as explained in doc.

./cachet_notify my.website apache CRITICAL HARD 'The service is DOWN'

Note that since @LHorace 's link doesn't work for me, I figured I'd include the script I added to Miraheze's puppet repo. Note that the api token and url have to be changed from this, but it adds component_states :)

miraheze/puppet@086ed60

@NDKilla Great! And btw, my link is fixed now.

Additionally, I created a slightly improved version here https://scm.lhprojects.net/LHProjects-Network/Scripts/files/2c99db69699164f8985c7f73bc635ff63647b73e/cachet_notifyV2.php. AFAIK, it works!

Regards