This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Thu, 07 Oct 2010 15:48:21 -0700] INFO: Starting Chef Run | |
[Thu, 07 Oct 2010 15:48:44 -0700] INFO: Storing updated cookbooks/configure-site/recipes/default.rb in the cache. | |
[Thu, 07 Oct 2010 15:48:55 -0700] INFO: Ran execute[apt-get-update] successfully | |
Installing lib mysq client... | |
Installing mysql-common... | |
Installing mysql-client... | |
Installing mysql gem... | |
x86_64 | |
[Thu, 07 Oct 2010 15:48:59 -0700] INFO: backend-app | |
[Thu, 07 Oct 2010 15:49:00 -0700] INFO: Ran execute[apt-get-update] successfully |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#source code is from: http://community.nagios.org/2010/10/06/quick-ruby-class-for-writing-nagios-plugins/ | |
# by Aaron Brown | |
class NagiosCheck | |
OK,WARN,CRIT,UNKNOWN = 0,1,2,3 | |
OK_STR = "OK" | |
WARN_STR = "WARNING" | |
CRIT_STR = "CRITICAL" | |
UNKNOWN_STR = "UNKNOWN" | |
attr_reader :exit_code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Chef Client Config File | |
# Automatically grabs configuration from ohai ec2 metadata. | |
require 'ohai' | |
require 'json' | |
o = Ohai::System.new | |
o.all_plugins | |
chef_config = JSON.parse(o[:ec2][:userdata]) | |
if chef_config.kind_of?(Array) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
PATH=/opt/ruby-enterprise/lib/ruby/gems/1.8/bin:/opt/ruby-enterprise/bin:/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin | |
exec 2>&1 | |
exec /usr/bin/env chef-client -i 1800 -s 20 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/opt/ruby-enterprise/bin/ruby | |
# Chef Client Config File | |
# Automatically grabs configuration from ohai ec2 metadata. | |
require 'ohai' | |
require 'json' | |
o = Ohai::System.new | |
o.all_plugins | |
chef_config = JSON.parse(o[:ec2][:userdata]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2011-02-10_21:12:17.81813 sh: Syntax error: "(" unexpected | |
2011-02-10_21:12:17.82319 sh: Syntax error: "(" unexpected | |
2011-02-10_21:12:17.82999 sh: Syntax error: "(" unexpected | |
2011-02-10_21:12:17.85169 sh: Syntax error: "(" unexpected | |
2011-02-10_21:12:17.88475 sh: Syntax error: "(" unexpected | |
2011-02-10_21:12:17.89229 sh: Syntax error: "(" unexpected | |
2011-02-10_21:12:17.89786 sh: Syntax error: "(" unexpected | |
2011-02-10_21:12:17.90354 sh: Syntax error: "(" unexpected | |
2011-02-10_21:12:17.90969 sh: Syntax error: "(" unexpected | |
2011-02-10_21:12:17.91580 sh: Syntax error: "(" unexpected |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Thu, 10 Feb 2011 13:51:41 -0800] WARN: ***************************************** | |
[Thu, 10 Feb 2011 13:51:41 -0800] WARN: Can not find config file: /etc/chef/client.rb, using defaults. | |
[Thu, 10 Feb 2011 13:51:41 -0800] WARN: undefined method `[]' for nil:NilClass | |
[Thu, 10 Feb 2011 13:51:41 -0800] WARN: ***************************************** | |
[Thu, 10 Feb 2011 13:51:43 -0800] INFO: Client key /etc/chef/client.pem is not present - registering | |
[Thu, 10 Feb 2011 13:51:43 -0800] FATAL: Failed to read the private key /etc/chef/validation.pem: #<Errno::ENOENT: No such file or directory - /etc/chef/validation.pem>, /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/rest/auth_credentials.rb:59:in `read'/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/rest/auth_credentials.rb:59:in `load_signing_key'/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/rest/auth_credentials.rb:33:in `initialize'/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/.. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2011-02-10_23:55:26.74852 sh: Syntax error: "(" unexpected | |
2011-02-10_23:55:26.75520 sh: Syntax error: "(" unexpected | |
2011-02-10_23:55:26.77078 sh: Syntax error: "(" unexpected | |
2011-02-10_23:55:26.78066 sh: Syntax error: "(" unexpected | |
2011-02-10_23:55:26.78552 sh: Syntax error: "(" unexpected | |
2011-02-10_23:55:26.79013 sh: Syntax error: "(" unexpected | |
2011-02-10_23:55:26.79475 sh: Syntax error: "(" unexpected | |
2011-02-10_23:55:26.81420 sh: Syntax error: "(" unexpected | |
2011-02-10_23:55:26.85343 sh: Syntax error: "(" unexpected | |
2011-02-10_23:55:26.85928 sh: Syntax error: "(" unexpected |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2011-02-11_00:36:46.25591 sh: Syntax error: "(" unexpected | |
2011-02-11_00:36:46.26345 sh: Syntax error: "(" unexpected | |
2011-02-11_00:36:46.28291 sh: Syntax error: "(" unexpected | |
2011-02-11_00:36:46.28892 sh: Syntax error: "(" unexpected | |
2011-02-11_00:36:46.31942 sh: Syntax error: "(" unexpected | |
2011-02-11_00:36:46.32716 sh: Syntax error: "(" unexpected | |
2011-02-11_00:36:46.33490 sh: Syntax error: "(" unexpected | |
2011-02-11_00:36:46.34335 sh: Syntax error: "(" unexpected | |
2011-02-11_00:36:46.35729 sh: Syntax error: "(" unexpected | |
2011-02-11_00:36:46.36506 sh: Syntax error: "(" unexpected |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
PATH=/opt/ruby-enterprise/lib/ruby/gems/1.8/bin:/opt/ruby-enterprise/bin:/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin | |
exec 2>&1 | |
#exec /usr/bin/env chef-client -i 1800 -s 20 | |
exec /opt/ruby-enterprise/bin/chef-client -i 1800 -s 20 |