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.2

Installs/Configures monit_bin

Policyfile
Berkshelf
Knife
cookbook 'monit_bin', '~> 1.2.2', :supermarket
cookbook 'monit_bin', '~> 1.2.2'
knife supermarket install monit_bin
knife supermarket download monit_bin
README
Dependencies
Changelog
Quality 17%

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.2

  • [feature] update monit version to 5.14 by default

v1.2.1

  • [feature] update monit version to 5.11 by default

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

Collaborator Number Metric
            

1.2.2 failed this metric

Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric
            

1.2.2 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file

Foodcritic Metric
            

1.2.2 failed this metric

FC064: Ensure issues_url is set in metadata: monit_bin/metadata.rb:1
FC065: Ensure source_url is set in metadata: monit_bin/metadata.rb:1
FC066: Ensure chef_version is set in metadata: monit_bin/metadata.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: monit_bin/providers/check_filesystem.rb:10
FC085: Resource using new_resource.updated_by_last_action to converge resource: monit_bin/providers/check_filesystem.rb:21
FC085: Resource using new_resource.updated_by_last_action to converge resource: monit_bin/providers/check_process.rb:18
FC085: Resource using new_resource.updated_by_last_action to converge resource: monit_bin/providers/check_process.rb:29
FC085: Resource using new_resource.updated_by_last_action to converge resource: monit_bin/providers/check_system.rb:9
FC085: Resource using new_resource.updated_by_last_action to converge resource: monit_bin/providers/check_system.rb:20
FC085: Resource using new_resource.updated_by_last_action to converge resource: monit_bin/providers/default.rb:6
FC085: Resource using new_resource.updated_by_last_action to converge resource: monit_bin/providers/default.rb:15
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

No Binaries Metric
            

1.2.2 passed this metric

Testing File Metric
            

1.2.2 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file

Version Tag Metric
            

1.2.2 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number