Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 432a5b15c2
Fetching contributors…

Cannot retrieve contributors at this time

52 lines (47 sloc) 1.594 kb
#
# Cookbook Name:: monit
# Attributes:: default
#
# Copyright 2011, Phil Cohen
#
# 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.
#
default["monit"]["polling_frequency"] = "20"
default["monit"]["use_syslog"] = "true"
default["monit"]["logfile"] = "/var/log/monit.log"
default["monit"]["alert_email"] = "root@localhost"
default["monit"]["web_interface"] = {
:enable => true,
:port => 2812,
:address => "localhost",
:allow => ["localhost", "admin:b1gbr0th3r"]
}
default["monit"]["mail"] = {
:hostname => "localhost",
:port => 25,
:username => nil,
:password => nil,
:from => "monit@$HOST",
:subject => "$SERVICE $EVENT at $DATE",
:message => "Monit $ACTION $SERVICE at $DATE on $HOST,\n\nDutifully,\nMonit",
:tls => false,
:timeout => 30
}
case platform
when "redhat","centos","fedora"
default["monit"]["main_config_path"] = "/etc/monit.conf"
default["monit"]["includes_dir"] = "/etc/monit.d"
else
default["monit"]["main_config_path"] = "/etc/monit/monitrc"
default["monit"]["includes_dir"] = "/etc/monit/conf.d"
end
Jump to Line
Something went wrong with that request. Please try again.