Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status

RSS

monit_bin (24) Versions 1.2.1

Installs/Configures monit_bin

Policyfile
Berkshelf
Knife
cookbook 'monit_bin', '= 1.2.1', :supermarket
cookbook 'monit_bin', '= 1.2.1'
knife supermarket install monit_bin
knife supermarket download monit_bin
README
Dependencies
Changelog
Quality 100%

monit_bin cookbook

Build Status

  • Install monit from source.
  • Include setting tools monitensite, monitdisite.
  • Add LWRP for created configs.

Requirements

  • make (build-essential)

Platform

  • ubuntu
  • SmartOS

Usage

recipe[monit] to default install.

call from other recipe

<pre><code>include_recipe "monit_bin"


put config from template to /etc/monit/conf.avail/

enable

monit_bin "myapp.conf"

disable

monit_bin "myapp.conf" do
enable false
end
</code></pre>

monitensite monitdisite

These tools contorol monit setting like a2ensite,a2disite.

Put your confing to /etc/monit/conf.avail/ and...

** To enable setting**

monitensite postfix.conf
monit reload

** To disable setting**

monitdisite postfix.conf
monit reload

Attributes

node['monit']['monitrc']['start_delay'] wait some time (in seconds) at startup before start checking services default:30

TODO: Write attributes...

Resources and Providers

monit_bin

Call monitensite and monit disite.

Example
<pre><code>monit_bin "postfix" do
action :enable
end</code></pre>

monti_bin_check_system

build config for system resource with poricy strings.

Example
<pre><code>monit_bin_check_system "localperf" do
action :create
policies ["if memory usage > 70 % then alert"]
end</code></pre>

monti_bin_check_filesystem

build config for filesystem resource with poricy strings.

Example
<pre><code>monit_bin_check_filesystem "rootfs" do
action :create
path "/"
policies ["if space usage > 70 % then alert"]
end</code></pre>

monti_bin_check_process

build config for process resource with poricy strings.

Example
<pre><code>monit_bin_check_process "sshd" do
action :create
type "pid"
pidfile "/var/run/sshd.pid "
start_program "/usr/sbin/service ssh start"
stop_program "/usr/sbin/service ssh stop"
end</code></pre>

Recipes

  • default: install monit from souce.
  • include: just define monit as service resource.
  • services: monitoring services. setting from attributes.
  • smartos_inittab: install and regist inittab for smartos. Smartos use this insted of default.

FAQ

monit status/summray doesn't work?

When using monit without m/monit, You should set 127.0.0.1 or 0.0.0.0 to node[:monit][:monitrc][:'http_address] attribute.

Test

kitchen test

Author

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

Dependent cookbooks

This cookbook has no specified dependencies.

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Changelog

v1.2.0

  • [feature] issue #7 Support restart service action in LWRP
  • [test] add config sshd

v1.1.3

  • [feature] update monit version to 5.8.1
  • [feature] create attribute for start delay

v1.1.1 and 1.1.2

  • [feature] support debian initscript.

v1.0.0

  • [feature] update monit version to 5.6
  • [feature] support test on smartos
  • [Tune] change monitrc permission from default to '0600' at smartos_inittab

v0.3.10

  • [feature] support test-kitchen 1.0.0.beta.x
  • [Tune] change monitrc permission from '0700' to '0600'

v0.3.9

  • [Bugfix] fix monitrc permission from default to '0700'

v0.3.8

  • [Bugfix] tell reload when monitrc update on smartos.

v0.3.7

  • [Bugfix] template <%= %>

v0.3.6

  • [Tune] add timeout to Process monitor for start/stop

v0.3.5

  • [Tune] Change default attribute system_check system_localperf to system_node[:fqdn]

v0.3.4

  • [Tune] Change default attribute http_address 0.0.0.0 to node[:ipaddress] HT: @iuliancostan

v0.3.3

  • [Tune] Swap usage alert smartos.

v0.3.2

  • [Bugfix] binpath to use attribute.
  • [Bugfix] process type matching does not work due typo.
  • [Tune] Default monitorinig process for smartos.

v0.3.1

  • [Bugfix] monitrc include_dir does not use attribute.

v0.3.0

  • Support Smartos
  • add test-kitchin for ubuntu

v0.2.1

  • BUGFIX: resource[check_process] attrebuts default values are wrong.

v0.2.0

  • add Resources[check_system, check_filesystem, check_process]

v0.1.0

  • install monit from source
  • control scripts and resource

Foodcritic Metric
            

1.2.1 passed this metric