sul-dlss / preservation_catalog

Rails application to track, audit and replicate archival artifacts associated with SDR objects.
https://sul-dlss.github.io/preservation_catalog/
Other
2 stars 2 forks source link

nagios checks should include API endpoint #1218

Open ndushay opened 4 years ago

ndushay commented 4 years ago

I recommend using the show endpoint for some object in prescat: https://github.com/sul-dlss/preservation_catalog/blob/master/app/controllers/objects_controller.rb#L9-L13

jmartin-sul commented 4 years ago

@ndushay: in order to migrate off sdr svcs app, we've been moving its functionality from sdr-services-app to preservation_catalog. we want nagios to monitor (one of) the new endpoints - see above recommending show endpoint for some object in prescat

jmartin-sul commented 4 years ago

how hard is it to have nagios provide a JWT? that'll be needed for this.

ndushay commented 1 year ago

@tallenaz has this been done? If so, please close ticket.

tallenaz commented 1 year ago

It looks like there's no more route to the endpoint we were monitoring with the 2019 nagios check:

ActionController::RoutingError (No route matches [GET] "/objects/bb001zc5754"):

We would need a path to check, and a JWT as well, if this 2020 comment is still valid