Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We are considering using chef to manage our application servers. So, we are creating recipes which configure resources for us as needed in certain situations.

But what happens if the execution fails? Do we have to manage for this cases manually? Are the logs of failing recipes posted somewhere for centralized monitoring? Are there common solutions for this cases like adding some kind of fail handler which notifies the interested parties?

UPDATE: We are running chef-client on the servers as a daemon with -d -i 60

share|improve this question

Chef logs output to STDOUT or a file. Sometimes that is not enough, though, especially if it fails when running as a daemon and the logs were rotated, or simply difficult to mine out of a centralized log server.

Chef has a reporting / exception handling API. It is documented in detail on the wiki, including links to example handlers written by the community.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.