All Projects → sous-chefs → smartmontools

sous-chefs / smartmontools

Licence: Apache-2.0 license
Development repository for the smartmontools cookbook

Programming Languages

HTML
75241 projects
ruby
36898 projects - #4 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to smartmontools

rsync
Development repository for the rsync cookbook
Stars: ✭ 25 (+108.33%)
Mutual labels:  chef-cookbook, chef, chef-resource, managed-by-terraform
line
Development repository for the line cookbook
Stars: ✭ 96 (+700%)
Mutual labels:  chef-cookbook, chef, chef-resource, managed-by-terraform
freebsd
Development repository for the freebsd cookbook
Stars: ✭ 27 (+125%)
Mutual labels:  chef-cookbook, chef, chef-resource, managed-by-terraform
kafka
Development repository for the kafka cookbook
Stars: ✭ 87 (+625%)
Mutual labels:  chef-cookbook, chef, chef-resource, managed-by-terraform
ossec
Development repository for the ossec cookbook
Stars: ✭ 42 (+250%)
Mutual labels:  chef-cookbook, chef, chef-resource, managed-by-terraform
transmission
Development repository for the transmission cookbook
Stars: ✭ 14 (+16.67%)
Mutual labels:  chef-cookbook, chef, chef-resource, managed-by-terraform
memcached
Development repository for the memcached cookbook
Stars: ✭ 50 (+316.67%)
Mutual labels:  chef-cookbook, chef, chef-resource, managed-by-terraform
samba
Development repository for the samba cookbook
Stars: ✭ 30 (+150%)
Mutual labels:  chef-cookbook, chef, chef-resource, managed-by-terraform
golang
Development repository for the golang cookbook
Stars: ✭ 48 (+300%)
Mutual labels:  chef-cookbook, chef, chef-resource, managed-by-terraform
github
Development repository for the github cookbook
Stars: ✭ 22 (+83.33%)
Mutual labels:  chef-cookbook, chef, chef-resource, managed-by-terraform
squid
Development repository for the squid cookbook
Stars: ✭ 27 (+125%)
Mutual labels:  chef-cookbook, chef, chef-resource, managed-by-terraform
selinux
Development repository for the selinux cookbook
Stars: ✭ 57 (+375%)
Mutual labels:  chef-cookbook, chef, chef-resource, managed-by-terraform
firewall
Development repository for the firewall cookbook
Stars: ✭ 97 (+708.33%)
Mutual labels:  chef-cookbook, chef, chef-resource, managed-by-terraform
rundeck
Development repository for the rundeck cookbook
Stars: ✭ 45 (+275%)
Mutual labels:  chef-cookbook, chef, chef-resource, managed-by-terraform
confluence
Development repository for the confluence cookbook
Stars: ✭ 42 (+250%)
Mutual labels:  chef-cookbook, chef, chef-resource, managed-by-terraform
sssd ldap
Development repository for the sssd_ldap cookbook
Stars: ✭ 17 (+41.67%)
Mutual labels:  chef-cookbook, chef, chef-resource, managed-by-terraform
vagrant
Development repository for the vagrant cookbook
Stars: ✭ 54 (+350%)
Mutual labels:  chef-cookbook, chef, chef-resource, managed-by-terraform
apparmor
Development repository for the apparmor cookbook
Stars: ✭ 13 (+8.33%)
Mutual labels:  chef-cookbook, chef, chef-resource, managed-by-terraform
yum-epel
Development repository for the yum-epel cookbook
Stars: ✭ 23 (+91.67%)
Mutual labels:  chef-cookbook, chef, chef-resource, managed-by-terraform
drbd
Development repository for the drbd cookbook
Stars: ✭ 19 (+58.33%)
Mutual labels:  chef-cookbook, chef, chef-resource, managed-by-terraform

Smartmontools Cookbook

Cookbook Version Build Status OpenCollective OpenCollective License

This cookbook will install the smartmontools package and enable the service. It will also configure default email reports.

Maintainers

This cookbook is maintained by the Sous Chefs. The Sous Chefs are a community of Chef cookbook maintainers working together to maintain important cookbooks. If you’d like to know more please visit sous-chefs.org or come chat with us on the Chef Community Slack in #sous-chefs.

Requirements

Platforms

  • Ubuntu
  • RHEL family (Redhat Enterprise, CentOS, etc)
  • Debian

Chef

  • Chef 13+

Cookbooks

  • none

Attributes

  • node['smartmontools']['smartd_opts'] - sets the value for the smartd_opts in /etc/default/smartmontools. Default is "", which leaves the option commented.
  • node['smartmontools']['start_smartd'] - whether to start smartd service in /etc/default/smartmontools. Default is "yes".
  • node['smartmontools']['devices'] - Array of devices to monitor with the options used in smartd.conf. May also be a hash to provide different options for each device. Default is []. See Usage.
  • node['smartmontools']['device_opts'] - If set, these options will be used by default in /etc/smartd.conf for each of the devices above. Default is "-H -l error -l selftest".
  • node['smartmontools']['run_d'] - Array of scripts to drop off in /etc/smartmontools/run.d. Default is ["10mail"].

Templates

/etc/smartd.conf

Note: The default /etc/smartd.conf configuration file from the package itself does not recommend using DEVICESCAN, despite it being enabled by default. The template will only use DEVICESCAN if node['smartmontools']['devices'] is not set.

The template for this file will iterate over the node['smartmontools']['devices'] attribute and write the configuration out. If no specific options are set for a device, it will get the options from node['smartmontools']['device_opts']. See Usage below.

/etc/default/smartmontools

Starts smartd by default using node['smartmontools']['start_smartd']. The enable_smart option is not recommended by smartmontools per the comment and is not managed via the template. Modify your local copy of the template if you wish to change this.

Cookbook Files

/etc/smartmontools/run.d/*

Each filename in the array node['smartmontools']['run_d'] will be dropped off via a cookbook file. By default the only one is 10mail, which exists, and came from the package. These files should be in files/default.

Usage

By default, the recipe is not set up to monitor any particular devices in smartd.conf, and will use DEVICESCAN. Set the attribute node['smartmontools']['devices'] to monitor a specific list of disk devices. If you don't require device specific options, this should be an array. A default set of options will be used for all disks from the node['smartmontools']['device_opts'] attribute.

For example:

name "base"
...
default_attributes(
  "smartmontools" => {
    "devices" => ['sda','sdb','sr0'],
    "device_opts" => "-H -l error -l selftest -m [email protected]"
  }
)

If you need different configuration options for each device, specify the devices as Hash with the device name as key and the options as value. If the value for a device is nil, the default options from the node['smartmontools']['device_opts'] attribute are used. For example:

name "base"
...
default_attributes(
  "smartmontools" => {
    "devices" => {
      "hda" => "-a -o on -S on -s (S/../.././02|L/../../6/03)",
      "hdb" => nil,
      "hdc" => nil
    },
    "device_opts" => "-H -l error -l selftest -m [email protected]"
  }
)

For different kinds of hard drive configurations in your data center, use default_attributes in separate roles. For example if web servers have only a single internal disk, but database servers have two disks:

name "webserver"
...
default_attributes(
    "smartmontools" => {
      "devices" => ['sda']
    }
)

name "database_server
...
default_attributes(
    "smartmontools" => {
      "devices" => ['sda', "sdb"]
    }
)

Contributors

This project exists thanks to all the people who contribute.

Backers

Thank you to all our backers!

https://opencollective.com/sous-chefs#backers

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website.

https://opencollective.com/sous-chefs/sponsor/0/website https://opencollective.com/sous-chefs/sponsor/1/website https://opencollective.com/sous-chefs/sponsor/2/website https://opencollective.com/sous-chefs/sponsor/3/website https://opencollective.com/sous-chefs/sponsor/4/website https://opencollective.com/sous-chefs/sponsor/5/website https://opencollective.com/sous-chefs/sponsor/6/website https://opencollective.com/sous-chefs/sponsor/7/website https://opencollective.com/sous-chefs/sponsor/8/website https://opencollective.com/sous-chefs/sponsor/9/website

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].