- From: Paul Choi <
>
- To: "
" <
>
- Subject: [chef] RE: How to tell when recipes fail?
- Date: Mon, 8 Nov 2010 22:26:02 +0000
- Accept-language: en-US
I have a script that runs in cron, checking for the last time that a client
has checked in.
I found that node[ohai_time] records when a client has checked in. So if
threshold < Time.now - node[ohai_time], notify.
This is the code that runs via cron on my servers:
https://gist.github.com/668386
Please feel free to use it ifyou'd like, and feedback is welcome.
-Paul
-----Original Message-----
From: Mike Williams
[mailto:
Sent: Sunday, November 07, 2010 4:43 PM
To:
Subject: [chef] How to tell when recipes fail?
On the Chef web_ui "Status" page, I can see when each node last checked-in
with the server, but there does not appear to be any indication of failures
during running of recipes!
What's the recommended way of detecting and reporting on failures?
When chef-client uploads node state to the server, at the end of a run, does
it persist any information about the success/failure of the run_list?
Should I be registering an exception/report handler? And if so, has anyone
written a handler that persists saves the run-reports to a central DB of some
kind?
--
cheers,
Mike Williams
Archive powered by MHonArc 2.6.16.