acaiafa / monit-cookbook

monit-cookbook

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Monit Cookbook

License

Application cookbook which installs and configures the monit process monitoring daemon. Currently it defaults to ubuntu.

Usage

Supports

  • Ubuntu
  • RHEL

Dependencies

Name Description
poise Library cookbook built to aide in writing reusable cookbooks.
poise-service Library cookbook built to abstract service management.

Attributes

The basic attributes to get the services up/running/monitored are available in the library. Anything additional please create a PR.

Resources/Providers

monit_config

Example below:

monit_config 'your_dope_service' do
  check  'process'
  with   'pidfile "/var/run/your_dope_service"'
  start_program   "/bin/bash -c '/bin/sleep 5; /etc/init.d/your_dope_service start'"
  stop_program    '/etc/init.d/your_dope_service stop'
  notifies :restart, "service[monit_#{new_resource.instance_name}]", :immediately
end

License & Authors

Copyright 2015 Bloomberg Finance L.P.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

monit-cookbook

License:Other


Languages

Language:Ruby 95.3%Language:HTML 4.7%