On Sonntag, 15. Juni 2014, 21:22:58 wrote David Greaves:
I'm not sure if this is a long-time problem or not but the check_http monitor needs to send an Accept: header or the rails router fails and 404's
ActionController::RoutingError (No route matches [GET] "/monitor")
yes, the api has no /monitor route. You may want to use /build/_workerstatus instead.
eg this works:
/usr/lib/nagios/plugins/check_http -S --sni -k 'Accept: text/html' -H 'build.opensuse.org' -u '/monitor' -v
yep, you switch to the webui routes via wanting html answers ...
In case this is useful to someone.
David
-- Adrian Schroeter email: adrian@suse.de SUSE LINUX GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 21284 (AG Nürnberg) Maxfeldstraße 5 90409 Nürnberg Germany -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org