- From: Bryan Baugher <
>
- To:
- Subject: [chef] Re: Monitoring chef-client failures
- Date: Mon, 10 Oct 2011 12:56:45 -0500
Chef has built-in json reporting[1]. Just grab this cookbook from opscode[2] and apply the json_file recipe to each node. You will then get a massive report of each run at /var/chef/reports/.
If you also look at Chef's exception handling[1] they give you examples on how to use[2] and also how to expand your error handling.
Bryan
[1] -
http://wiki.opscode.com/display/chef/Exception+and+Report+Handlers[2] -
https://github.com/opscode/cookbooks/tree/master/chef_handler
On Mon, Oct 10, 2011 at 12:52 PM, Haim Ashkenazi
<
">
> wrote:
Hi
I was wondering if there's a way to monitor whether the last chef-client run failed? I can always parse the last few lines of /var/log/chef/client.log, but I was wondering if there's an easier way?
Thanks in advance
--
Haim
Archive powered by MHonArc 2.6.16.