I tried to post this to puppet-dev but it doesn''t look like I have permission, so here it is on puppet-users for anybody to do something with. There seems to be a typo in the following file: [riffraff@hobbes puppet-0.25.0]$ diff -u ext/nagios/check_puppet.rb.orig ext/nagios/check_puppet.rb --- ext/nagios/check_puppet.rb.orig 2009-09-06 20:12:28.000000000 -0400 +++ ext/nagios/check_puppet.rb 2009-09-06 20:12:35.000000000 -0400 @@ -102,7 +102,7 @@ exitcode = 2 when 3 status = "UNKNOWN" - exitcide = 3 + exitcode = 3 end puts "PUPPET " + status + ": " + process + ", " + state -lsd --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
2009/9/7 lance dillon <riffraff000@gmail.com>:> I tried to post this to puppet-dev but it doesn''t look like I have > permission, so here it is on puppet-users for anybody to do something with. > There seems to be a typo in the following file:You shouldn''t need permission - you can just join the group. I don''t see a pending message from you? What error/return did you get? I''ll push your fix tonight. Regards James Turnbull -- Author of: * Pro Linux Systems Administration (http://tinyurl.com/linuxadmin) * Pulling Strings with Puppet (http://tinyurl.com/pupbook) * Pro Nagios 2.0 (http://tinyurl.com/pronagios) * Hardening Linux (http://tinyurl.com/hardeninglinux) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Todd Zullinger
2009-Sep-07 00:44 UTC
[Puppet Users] [PATCH/puppet] ext/nagios: Fix typo in check_puppet.rb script
From: Lance Dillon <riffraff000@gmail.com> --- lance dillon wrote:> I tried to post this to puppet-dev but it doesn''t look like I have > permission, so here it is on puppet-users for anybody to do something with. > There seems to be a typo in the following file: > > [riffraff@hobbes puppet-0.25.0]$ diff -u ext/nagios/check_puppet.rb.orig > ext/nagios/check_puppet.rb > --- ext/nagios/check_puppet.rb.orig 2009-09-06 20:12:28.000000000 -0400 > +++ ext/nagios/check_puppet.rb 2009-09-06 20:12:35.000000000 -0400 > @@ -102,7 +102,7 @@ > exitcode = 2 > when 3 > status = "UNKNOWN" > - exitcide = 3 > + exitcode = 3 > end > > puts "PUPPET " + status + ": " + process + ", " + state > > -lsdHere''s a git formatted patch, copied to puppet-dev. ext/nagios/check_puppet.rb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/ext/nagios/check_puppet.rb b/ext/nagios/check_puppet.rb index 00d9ac9..5013bc5 100755 --- a/ext/nagios/check_puppet.rb +++ b/ext/nagios/check_puppet.rb @@ -102,7 +102,7 @@ class CheckPuppet exitcode = 2 when 3 status = "UNKNOWN" - exitcide = 3 + exitcode = 3 end puts "PUPPET " + status + ": " + process + ", " + state -- 1.6.4.2 -- Todd OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Never attribute to malice that which can be adequately explained by stupidity. -- Hanlon''s Razor --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---