-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi *! How do you monitor when the last puppet transaction was successful on a node? I''m searching for something easy like a timestamp, so I can put a nagios watch on this. Regards, David - -- - - hallo... wie gehts heute? - - *hust* gut *rotz* *keuch* - - gott sei dank kommunizieren wir über ein septisches medium ;) -- Matthias Leeb, Uni f. angewandte Kunst, 2005-02-15 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFF/phM/Pp1N6Uzh0URAkeJAKCcqn7xi+DnDoMEZLmoqfH3Y5pX9ACfXYBZ +1ocvkQiPHM88vwoy8DZu/s=PZya -----END PGP SIGNATURE-----
On Mar 19, 2007, at 9:03 AM, David Schmitt wrote:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi *! > > > How do you monitor when the last puppet transaction was successful > on a node? > I''m searching for something easy like a timestamp, so I can put a > nagios watch > on this.Most people collect and parse the reports on the server. Since the reports are stored in YAML, it''s easy to write a simple ruby script that can do whatever you want with them. -- Neonle will continue to be rude, and will nretend that you had a small stroke which makes you unable to say or see the letter "n". Stunid nractical joke, if you ask me. Bunch of noon-heads, huh? -- Fred Barling, Humorscope --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com
On Mon, Mar 19, 2007 at 03:03:53PM +0100, David Schmitt wrote:> How do you monitor when the last puppet transaction was successful on a node? > I''m searching for something easy like a timestamp, so I can put a nagios watch > on this.The mtime of /var/lib/puppet/state/state.yaml works for me. - Matt -- "I have a cat, so I know that when she digs her very sharp claws into my chest or stomach it''s really a sign of affection, but I don''t see any reason for programming languages to show affection with pain." -- Erik Naggum, comp.lang.lisp
On Apr 15, 2007, at 11:46 PM, Matt Palmer wrote:> On Mon, Mar 19, 2007 at 03:03:53PM +0100, David Schmitt wrote: >> How do you monitor when the last puppet transaction was successful >> on a node? >> I''m searching for something easy like a timestamp, so I can put a >> nagios watch >> on this. > > The mtime of /var/lib/puppet/state/state.yaml works for me.Depending on what you''re monitoring tool is, it might also make sense to use the time from the latest report. I know multiple people have simple ruby scripts to create a status page for all of their machines on the master from the reports. -- The brain is a wonderful organ. It starts working the moment you get up in the morning and does not stop until you get into the office. --Robert Frost --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com
--On Monday, April 16, 2007 2:46 PM +1000 Matt Palmer <mpalmer@hezmatt.org> wrote:> On Mon, Mar 19, 2007 at 03:03:53PM +0100, David Schmitt wrote: >> How do you monitor when the last puppet transaction was successful on a >> node? I''m searching for something easy like a timestamp, so I can put a >> nagios watch on this. > > The mtime of /var/lib/puppet/state/state.yaml works for me. > > - MattWhat about on the server side? What if I want to build a check that can determine which servers haven''t checked in in some time? I thought about using storeconfigs but I''ve been reading about bugs/problems/limitations with that. -- Digant C Kasundra <digant@stanford.edu> Technical Lead, ITS Unix Systems and Applications, Stanford University
On Apr 16, 2007, at 1:28 PM, Digant C Kasundra wrote:> What about on the server side? What if I want to build a check > that can > determine which servers haven''t checked in in some time? I thought > about > using storeconfigs but I''ve been reading about bugs/problems/ > limitations > with that.The date of the last report is the last time the client connected. You could pretty easily write your own Puppet report processor that just stuck this data into a database, or you could write a stand- alone processor that read the files on disk and produced this content. Multiple people have already done this, but no one has posted it, AFAIK. -- While one person hesitates because he feels inferior, the other is busy making mistakes and becoming superior. -- Henry C. Link --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com
On Mon, Apr 16, 2007 at 11:28:53AM -0700, Digant C Kasundra wrote:> --On Monday, April 16, 2007 2:46 PM +1000 Matt Palmer <mpalmer@hezmatt.org> > wrote: > > > On Mon, Mar 19, 2007 at 03:03:53PM +0100, David Schmitt wrote: > >> How do you monitor when the last puppet transaction was successful on a > >> node? I''m searching for something easy like a timestamp, so I can put a > >> nagios watch on this. > > > > The mtime of /var/lib/puppet/state/state.yaml works for me. > > What about on the server side? What if I want to build a check that can > determine which servers haven''t checked in in some time? I thought about > using storeconfigs but I''ve been reading about bugs/problems/limitations > with that.There''s a field in the database which is supposed to store the last time the client connected. It was broken, but I think I fixed it a while ago. - Matt
On Apr 16, 2007, at 5:10 PM, Matt Palmer wrote:> > There''s a field in the database which is supposed to store the last > time the > client connected. It was broken, but I think I fixed it a while ago.The fields should all work now (with 0.22.3 and the current bzr version of puppetshow on my site), but you''ll need to enable storeconfigs to get this functionality, and it''s probably not fast enough for most people. You can get similar behaviour in a 20 line custom report without the hassle of storeconfigs. -- Humphrey''s Law of the Efficacy of Prayer: In a dangerous world there will always be more people around whose prayers for their own safety have been answered than those whose prayers have not. --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com