Status API Call


#1

Is there a ping or status call through the server API that doesn’t
require authentication? Would like to healthcheck our chef server.

-J


#2

PyChef + chef.Client.list() is probably a good start. There isn’t a URL that doesn’t require the Opscode authentication headers though.

–Noah

-----Original Message-----
From: Jason J. W. Williams [mailto:jasonjwwilliams@gmail.com]
Sent: Wednesday, May 04, 2011 12:34 PM
To: chef@lists.opscode.com
Subject: [chef] Status API Call

Is there a ping or status call through the server API that doesn’t
require authentication? Would like to healthcheck our chef server.

-J


#3

On Wednesday, May 4, 2011 at 12:34 PM, Noah Kantrowitz wrote:
PyChef + chef.Client.list() is probably a good start. There isn’t a URL that doesn’t require the Opscode authentication headers though.

–Noah

-----Original Message-----
From: Jason J. W. Williams [mailto:jasonjwwilliams@gmail.com]
Sent: Wednesday, May 04, 2011 12:34 PM
To: chef@lists.opscode.com
Subject: [chef] Status API Call

Is there a ping or status call through the server API that doesn’t
require authentication? Would like to healthcheck our chef server.

-J
In 0.10, you should be able to hit the root URL without auth. However, the response will be the same regardless of whether Chef server can hit the database, rabbitmq, and solr. I’d like to put a status page there, but haven’t had the time.


Dan DeLeo


#4

PyChef + chef.Client.list() is probably a good start. There isn’t a URL that
doesn’t require the Opscode authentication headers though.

Yeah was hoping to just throw something up quick on Pingdom for the
time being. I’ll look into using PyChef with our Nagios install.

In 0.10, you should be able to hit the root URL without auth. However, the
response will be the same regardless of whether Chef server can hit the
database, rabbitmq, and solr. I’d like to put a status page there, but
haven’t had the time.

That would be optimal. Might be interesting if the HTTP code changed
when there was an issue too. Thank you for your hep.

-J