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 ([email protected]) Author:: Jason Cannavale ([email protected]) Author:: Ron Pedde ([email protected]) Author:: Joseph Breu ([email protected]) Author:: William Kelly ([email protected]) Author:: Darren Birkett ([email protected]) Author:: Evan Callicoat ([email protected]) Author:: Chris Laco ([email protected])
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.