Issues have been disabled for this repository. Any issues with this cookbook should be raised here:
https://github.com/rcbops/chef-cookbooks/issues
Please title the issue as follows:
[monit]: <short description of problem>
In the issue description, please include a longer description of the issue, along with any relevant log/command/error output. If logfiles are extremely long, please place the relevant portion into the issue description, and link to a gist containing the entire logfile
Please see the contribution guidelines for more information about contributing to this cookbook.
Installs Monit.
Chef 11.0 or higher required (for Chef environment use).
This cookbook is actively tested on the following platforms/versions:
- Ubuntu-12.04
- CentOS-6.3
While not actively tested, this cookbook should also work the following platforms:
- Debian/Mint derivitives
- Amazon/Oracle/Scientific/RHEL
The following cookbooks are dependencies:
- osops-utils
The procmon resource can be used to configure monitoring of a process:
include_recipe "monit::server"
# matching a process name
monit_procmon "apache" do
process_name "apache2"
start_cmd "/etc/init.d/apache2 start"
stop_cmd "/etc/init.d/apache2 stop"
end
# using a pid file
monit_procmon "apache" do
pid_file "/var/run/httpd.pid"
start_cmd "/etc/init.d/apache2 start"
stop_cmd "/etc/init.d/apache2 stop"
end
Installs the monit package and configures the monit service
Installs the monit package and configures the monit service
default["monit"]["poll_interval"]
- The monitor polling intervaldefault["monit"]["poll_start_delay"]
- The delay time before starting pollingdefault["monit"]["bind_port"]
- The port to bind monit todefault["monit"]["bind_host"]
- The host/ip to find monit todefault["monit"]["login_user"]
- The monit login userdefault["monit"]["login_pass"]
- The monit login passworddefault["monit"]["allowed_hosts"]
- The list of hosts allowed to connect to monitdefault["monit"]["config_dir"]
- The monit configuration directory pathdefault["monit"]["conf.d_dir"]
- The monit config.d directory pathdefault["monit"]["service_bin"]
- The platform service management binarydefault["monit"]["config_file"]
- The monit configuration file pathdefault["monit"]["notify_email"]
- Enable/Disable email notificationsdefault["monit"]["mail_format"]["subject"]
- The email notification subjectdefault["monit"]["mail_format"]["from"]
- The email notifiation from addressdefault["monit"]["mail_format"]["message"]
- The email notification message template
default.monit.erb
- Upstart default file for monit servicemonitrc.erb
- Monit rc fileprocmon.erb
- Process monitoring config file template
Author:: Justin Shepherd (justin.shepherd@rackspace.com) Author:: Jason Cannavale (jason.cannavale@rackspace.com) Author:: Ron Pedde (ron.pedde@rackspace.com) Author:: Joseph Breu (joseph.breu@rackspace.com) Author:: William Kelly (william.kelly@rackspace.com) Author:: Darren Birkett (darren.birkett@rackspace.co.uk) Author:: Evan Callicoat (evan.callicoat@rackspace.com) Author:: Chris Laco (chris.laco@rackspace.com)
Copyright 2012-2013, Rackspace US, Inc.
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.