Check to verify if a group of urls are respondig ok

Hi there.
I’m looking for a check (a multiple one or looping one) to check if a group of urls are responding correctly (up and giving the correct info). Do you know any?
Thanks!!

Hey Mariano,

  • check-http only checks for a 200 response (one or more urls), but you could probably create a new check based on it, that digs into the response body.

  • If your urls are actually JSON API endpoints, maybe check-http-json already does what you want?

If you end up creating a more flexible check based on either, I’m sure it would be a welcome addition to sensu-community-plugins :slight_smile:

Cheers,

Mat

···

On Mon, Dec 2, 2013 at 1:49 PM, Mariano González gonzalez.mariano.gabriel@gmail.com wrote:

Hi there.
I’m looking for a check (a multiple one or looping one) to check if a group of urls are responding correctly (up and giving the correct info). Do you know any?

Thanks!!

I’m the founder of Rock Solid Ops, a web operations and development consultancy.

I’m also the organizer of DevOpsMtl, a monthly event to discuss the challenges, tools and the culture surrounding the movement.

My main fields of expertise are web development with Ruby on Rails, DevOps and a bit of mobile development. If you need help scaling, monitoring, securing or managing your web infrastructure (Rails or not), get in touch!

Connect with me and read testimonials on my LinkedIn, follow me on twitter @webmat, or check out my blog at programblings.com.

Thanks Mathieu.

Indeed I’ve tested check-http plugin but it’s giving me this:

$ ./check-http.rb -u www.google.com.ar

CheckHTTP CRITICAL: Connection error: the scheme http does not accept registry part: :80 (or bad hostname?)

Thanks.

···

On 2 December 2013 15:56, Mathieu Martin webmat@gmail.com wrote:

Hey Mariano,

  • check-http only checks for a 200 response (one or more urls), but you could probably create a new check based on it, that digs into the response body.
  • If your urls are actually JSON API endpoints, maybe check-http-json already does what you want?

If you end up creating a more flexible check based on either, I’m sure it would be a welcome addition to sensu-community-plugins :slight_smile:

Cheers,

Mat


Mariano Gabriel González

On Mon, Dec 2, 2013 at 1:49 PM, Mariano González gonzalez.mariano.gabriel@gmail.com wrote:

Hi there.
I’m looking for a check (a multiple one or looping one) to check if a group of urls are responding correctly (up and giving the correct info). Do you know any?

Thanks!!

I’m the founder of Rock Solid Ops, a web operations and development consultancy.

I’m also the organizer of DevOpsMtl, a monthly event to discuss the challenges, tools and the culture surrounding the movement.

My main fields of expertise are web development with Ruby on Rails, DevOps and a bit of mobile development. If you need help scaling, monitoring, securing or managing your web infrastructure (Rails or not), get in touch!

Connect with me and read testimonials on my LinkedIn, follow me on twitter @webmat, or check out my blog at programblings.com.

And how do I explicit more than one url to check with http-check.rb?

···

On 2 December 2013 16:06, Mariano González gonzalez.mariano.gabriel@gmail.com wrote:

Thanks Mathieu.

Indeed I’ve tested check-http plugin but it’s giving me this:

$ ./check-http.rb -u www.google.com.ar

CheckHTTP CRITICAL: Connection error: the scheme http does not accept registry part: :80 (or bad hostname?)

Thanks.


Mariano Gabriel González

On 2 December 2013 15:56, Mathieu Martin webmat@gmail.com wrote:

Hey Mariano,

  • check-http only checks for a 200 response (one or more urls), but you could probably create a new check based on it, that digs into the response body.
  • If your urls are actually JSON API endpoints, maybe check-http-json already does what you want?

If you end up creating a more flexible check based on either, I’m sure it would be a welcome addition to sensu-community-plugins :slight_smile:

Cheers,

Mat

Mariano Gabriel González

On Mon, Dec 2, 2013 at 1:49 PM, Mariano González gonzalez.mariano.gabriel@gmail.com wrote:

Hi there.
I’m looking for a check (a multiple one or looping one) to check if a group of urls are responding correctly (up and giving the correct info). Do you know any?

Thanks!!

I’m the founder of Rock Solid Ops, a web operations and development consultancy.

I’m also the organizer of DevOpsMtl, a monthly event to discuss the challenges, tools and the culture surrounding the movement.

My main fields of expertise are web development with Ruby on Rails, DevOps and a bit of mobile development. If you need help scaling, monitoring, securing or managing your web infrastructure (Rails or not), get in touch!

Connect with me and read testimonials on my LinkedIn, follow me on twitter @webmat, or check out my blog at programblings.com.

I said that based on the doc. Worst case: run one check per URL to monitor :slight_smile:

HTH

···

On 2 December 2013 16:06, Mariano González gonzalez.mariano.gabriel@gmail.com wrote:

Thanks Mathieu.

Indeed I’ve tested check-http plugin but it’s giving me this:

$ ./check-http.rb -u www.google.com.ar

CheckHTTP CRITICAL: Connection error: the scheme http does not accept registry part: :80 (or bad hostname?)

Thanks.


Mariano Gabriel González

On 2 December 2013 15:56, Mathieu Martin webmat@gmail.com wrote:

Hey Mariano,

  • check-http only checks for a 200 response (one or more urls), but you could probably create a new check based on it, that digs into the response body.
  • If your urls are actually JSON API endpoints, maybe check-http-json already does what you want?

If you end up creating a more flexible check based on either, I’m sure it would be a welcome addition to sensu-community-plugins :slight_smile:

Cheers,

Mat

Mariano Gabriel González

On Mon, Dec 2, 2013 at 1:49 PM, Mariano González gonzalez.mariano.gabriel@gmail.com wrote:

Hi there.
I’m looking for a check (a multiple one or looping one) to check if a group of urls are responding correctly (up and giving the correct info). Do you know any?

Thanks!!

I’m the founder of Rock Solid Ops, a web operations and development consultancy.

I’m also the organizer of DevOpsMtl, a monthly event to discuss the challenges, tools and the culture surrounding the movement.

My main fields of expertise are web development with Ruby on Rails, DevOps and a bit of mobile development. If you need help scaling, monitoring, securing or managing your web infrastructure (Rails or not), get in touch!

Connect with me and read testimonials on my LinkedIn, follow me on twitter @webmat, or check out my blog at programblings.com.