Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

DUPLICATED

Chef-Client v12.4.0 supports syslog, Thank you.


chef-client_syslog cookbook

Send chef-client log to syslog.

reference from: https://gist.github.com/3616423

Requirements

chef-client cookbook syslog-logger gem (will be installed)

Usage

add run_list recipe[chef-client_syslog::default]

Suggegsions

Use with cookbook[monit_bin]

Add monitoring setting for monit like below.

    "monit": {
      "process": {
        "targets": {
          "chef-client": {
            "type": "pid",
            "pidfile": "/var/run/chef-client.pid",
            "start_program": "/usr/bin/chef-client -d -i 1800 -s 300 -l warn -P /var/run/chef-client.pid",
            "stop_program": "/bin/bash -c '/bin/kill `cat /var/run/chef-client.pid`'",
            "policies": [
              "if 2 restarts within 3 cycles then timeout"
            ]
          }
        }
      }
    } 

chef-client daemon is watched by monit and controled under monit.

  • monit start/stop chef-client

Attributes

  • default['chef_client']['log']['syslog_facility'] = '::Syslog::LOG_DAEMON'

The syslog facility to log to

  • default['chef_client']['log']['syslog_progname'] = 'chef-client'

The program name reported to syslog

Recipes

  • default

Author

Author:: HiganWorks LLC (sawanoboriyu@higanworks.com)

About

send chef-client logs to syslog.

Resources

License

Packages

No packages published
You can’t perform that action at this time.