Page MenuHomeMiraheze

Automate cachet status updates
Closed, InvalidPublic

Description

Cachet has an API that can supposedly be used to update status and incidents.

There's no officially supported plugin but I've coppied one from a github repo to /usr/bin/nagios/plugins on misc1 that is working but should be configured more.

It's currently using the API token for 'NagiosBot' which has the email operations (at) miraheze (dot) org.

Event Timeline

API is confirmed working per a curl:

curl -H "Content-Type: application/json;" -H "X-Cachet-Token: LOLNO" -d '{"name":"A test incident","message":"An example incident - DONT PANIC","status":4,"component_id":12,"component_status":4}' https://status.miraheze.org/api/v1/incidents

Must be the plugin?

Cachet accounts for sysadmins should also be made, so that we can have include reports of the error and how it's being fixed.

Cachet could be used to automate that but imo at least 'incident' should always be manual because it may give false impression that sysadmins are aware of the incident when it isn't -- when it's just automated script reporting.

Ofc status -- system's up? or down? can be automated, I think.

the new script should only mark individual components as 'okay' or 'performance issues' based on icinga. All 'incidents' will have to be manual.

Shitty update: the script at /usr/lib/nagios/plugins/cachet_notify doesn't work and needs more modification.

NDKilla lowered the priority of this task from High to Normal.Sep 19 2016, 19:59

Okay let's be honest, this is still on my wishlist but I'm not currently working on it.

@Samtar Please let me know if you have any ideas about P11

NDKilla removed NDKilla as the assignee of this task.Oct 4 2016, 13:38

Cachet was removed.