deprec 2.0.15 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG +7 -1
- data/lib/deprec/capistrano_extensions.rb +1 -1
- data/lib/deprec/recipes/collectd.rb +60 -79
- data/lib/deprec/recipes/haproxy.rb +105 -0
- data/lib/deprec/recipes/nagios.rb +90 -72
- data/lib/deprec/recipes/postfix.rb +1 -1
- data/lib/deprec/recipes/ssh.rb +1 -1
- data/lib/deprec/recipes/syslog.rb +63 -0
- data/lib/deprec/recipes/utils.rb +1 -1
- data/lib/deprec/recipes_minus_rails.rb +2 -0
- data/lib/deprec/templates/collectd/collectd.conf.erb +686 -0
- data/lib/deprec/templates/nagios/{cgi.cfg → cgi.cfg.erb} +27 -2
- data/lib/deprec/templates/nagios/htpasswd.users +1 -0
- data/lib/deprec/templates/nagios/{nagios.cfg → nagios.cfg.erb} +35 -7
- data/lib/deprec/templates/nagios/nrpe.cfg.erb +15 -3
- data/lib/deprec/templates/nagios/nrpe.xinetd.erb +1 -1
- data/lib/deprec/templates/nagios/objects/{commands.cfg → commands.cfg.erb} +27 -2
- data/lib/deprec/templates/nagios/objects/{contacts.cfg → contacts.cfg.erb} +23 -0
- data/lib/deprec/templates/nagios/{hosts.cfg.erb → objects/hosts.cfg.erb} +30 -54
- data/lib/deprec/templates/{old → nagios/objects}/localhost.cfg.erb +0 -41
- data/lib/deprec/templates/nagios/{services.cfg.erb → objects/services.cfg.erb} +88 -2
- data/lib/deprec/templates/{old → nagios/objects}/timeperiods.cfg.erb +0 -0
- data/lib/deprec/templates/{old → nagios}/resource.cfg.erb +1 -1
- data/lib/deprec/templates/syslog/syslog.conf.erb +71 -0
- data/lib/deprec/templates/syslog/syslogd.erb +13 -0
- metadata +16 -22
- data/lib/deprec/templates/nagios/objects/localhost.cfg +0 -157
- data/lib/deprec/templates/nagios/objects/templates.cfg +0 -190
- data/lib/deprec/templates/nagios/objects/timeperiods.cfg +0 -94
- data/lib/deprec/templates/nagios/resource.cfg +0 -34
- data/lib/deprec/templates/nagios_config.tgz +0 -0
- data/lib/deprec/templates/old/apache_vhost.erb +0 -45
- data/lib/deprec/templates/old/cgi.cfg.erb +0 -321
- data/lib/deprec/templates/old/commands.cfg.erb +0 -240
- data/lib/deprec/templates/old/contacts.cfg.erb +0 -57
- data/lib/deprec/templates/old/htpasswd.users +0 -1
- data/lib/deprec/templates/old/templates.cfg.erb +0 -9
File without changes
|
@@ -0,0 +1,71 @@
|
|
1
|
+
# /etc/syslog.conf Configuration file for syslogd.
|
2
|
+
#
|
3
|
+
# For more information see syslog.conf(5)
|
4
|
+
# manpage.
|
5
|
+
|
6
|
+
#
|
7
|
+
# First some standard logfiles. Log by facility.
|
8
|
+
#
|
9
|
+
|
10
|
+
*.* <%= syslog_server %>
|
11
|
+
auth,authpriv.* /var/log/auth.log
|
12
|
+
*.*;auth,authpriv.none -/var/log/syslog
|
13
|
+
#cron.* /var/log/cron.log
|
14
|
+
daemon.* -/var/log/daemon.log
|
15
|
+
kern.* -/var/log/kern.log
|
16
|
+
lpr.* -/var/log/lpr.log
|
17
|
+
mail.* -/var/log/mail.log
|
18
|
+
user.* -/var/log/user.log
|
19
|
+
|
20
|
+
#
|
21
|
+
# Logging for the mail system. Split it up so that
|
22
|
+
# it is easy to write scripts to parse these files.
|
23
|
+
#
|
24
|
+
mail.info -/var/log/mail.info
|
25
|
+
mail.warn -/var/log/mail.warn
|
26
|
+
mail.err /var/log/mail.err
|
27
|
+
|
28
|
+
# Logging for INN news system
|
29
|
+
#
|
30
|
+
news.crit /var/log/news/news.crit
|
31
|
+
news.err /var/log/news/news.err
|
32
|
+
news.notice -/var/log/news/news.notice
|
33
|
+
|
34
|
+
#
|
35
|
+
# Some `catch-all' logfiles.
|
36
|
+
#
|
37
|
+
*.=debug;\
|
38
|
+
auth,authpriv.none;\
|
39
|
+
news.none;mail.none -/var/log/debug
|
40
|
+
*.=info;*.=notice;*.=warn;\
|
41
|
+
auth,authpriv.none;\
|
42
|
+
cron,daemon.none;\
|
43
|
+
mail,news.none -/var/log/messages
|
44
|
+
|
45
|
+
#
|
46
|
+
# Emergencies are sent to everybody logged in.
|
47
|
+
#
|
48
|
+
*.emerg *
|
49
|
+
|
50
|
+
#
|
51
|
+
# I like to have messages displayed on the console, but only on a virtual
|
52
|
+
# console I usually leave idle.
|
53
|
+
#
|
54
|
+
#daemon,mail.*;\
|
55
|
+
# news.=crit;news.=err;news.=notice;\
|
56
|
+
# *.=debug;*.=info;\
|
57
|
+
# *.=notice;*.=warn /dev/tty8
|
58
|
+
|
59
|
+
# The named pipe /dev/xconsole is for the `xconsole' utility. To use it,
|
60
|
+
# you must invoke `xconsole' with the `-file' option:
|
61
|
+
#
|
62
|
+
# $ xconsole -file /dev/xconsole [...]
|
63
|
+
#
|
64
|
+
# NOTE: adjust the list below, or you'll go crazy if you have a reasonably
|
65
|
+
# busy site..
|
66
|
+
#
|
67
|
+
daemon.*;mail.*;\
|
68
|
+
news.err;\
|
69
|
+
*.=debug;*.=info;\
|
70
|
+
*.=notice;*.=warn |/dev/xconsole
|
71
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: deprec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Bailey
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-08-
|
12
|
+
date: 2009-08-24 00:00:00 +10:00
|
13
13
|
default_executable: depify
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -61,6 +61,7 @@ files:
|
|
61
61
|
- lib/deprec/recipes/example.rb
|
62
62
|
- lib/deprec/recipes/git.rb
|
63
63
|
- lib/deprec/recipes/gitosis.rb
|
64
|
+
- lib/deprec/recipes/haproxy.rb
|
64
65
|
- lib/deprec/recipes/heartbeat.rb
|
65
66
|
- lib/deprec/recipes/integrity.rb
|
66
67
|
- lib/deprec/recipes/logrotate.rb
|
@@ -80,6 +81,7 @@ files:
|
|
80
81
|
- lib/deprec/recipes/ssl.rb
|
81
82
|
- lib/deprec/recipes/starling.rb
|
82
83
|
- lib/deprec/recipes/svn.rb
|
84
|
+
- lib/deprec/recipes/syslog.rb
|
83
85
|
- lib/deprec/recipes/trac.rb
|
84
86
|
- lib/deprec/recipes/ubuntu.rb
|
85
87
|
- lib/deprec/recipes/users.rb
|
@@ -100,6 +102,7 @@ files:
|
|
100
102
|
- lib/deprec/templates/ar_sendmail/monit.conf.erb
|
101
103
|
- lib/deprec/templates/chef/chef.json.erb
|
102
104
|
- lib/deprec/templates/chef/solo.rb
|
105
|
+
- lib/deprec/templates/collectd/collectd.conf.erb
|
103
106
|
- lib/deprec/templates/ddclient/ddclient.conf.erb
|
104
107
|
- lib/deprec/templates/ddclient/ddclient.erb
|
105
108
|
- lib/deprec/templates/deprec/caprc.erb
|
@@ -125,24 +128,22 @@ files:
|
|
125
128
|
- lib/deprec/templates/mysql/my.cnf.erb
|
126
129
|
- lib/deprec/templates/mysql/sphinx.conf.prod
|
127
130
|
- lib/deprec/templates/mysql/sphinx.conf.stage
|
128
|
-
- lib/deprec/templates/nagios/cgi.cfg
|
131
|
+
- lib/deprec/templates/nagios/cgi.cfg.erb
|
129
132
|
- lib/deprec/templates/nagios/check_linux_free_memory.pl
|
130
133
|
- lib/deprec/templates/nagios/check_mongrel_cluster.rb
|
131
|
-
- lib/deprec/templates/nagios/hosts.cfg.erb
|
132
134
|
- lib/deprec/templates/nagios/htpasswd.users
|
133
135
|
- lib/deprec/templates/nagios/mrtg.cfg
|
134
|
-
- lib/deprec/templates/nagios/nagios.cfg
|
136
|
+
- lib/deprec/templates/nagios/nagios.cfg.erb
|
135
137
|
- lib/deprec/templates/nagios/nrpe.cfg.erb
|
136
138
|
- lib/deprec/templates/nagios/nrpe.xinetd.erb
|
137
|
-
- lib/deprec/templates/nagios/objects/commands.cfg
|
138
|
-
- lib/deprec/templates/nagios/objects/contacts.cfg
|
139
|
-
- lib/deprec/templates/nagios/objects/
|
140
|
-
- lib/deprec/templates/nagios/objects/
|
141
|
-
- lib/deprec/templates/nagios/objects/
|
139
|
+
- lib/deprec/templates/nagios/objects/commands.cfg.erb
|
140
|
+
- lib/deprec/templates/nagios/objects/contacts.cfg.erb
|
141
|
+
- lib/deprec/templates/nagios/objects/hosts.cfg.erb
|
142
|
+
- lib/deprec/templates/nagios/objects/localhost.cfg.erb
|
143
|
+
- lib/deprec/templates/nagios/objects/services.cfg.erb
|
144
|
+
- lib/deprec/templates/nagios/objects/timeperiods.cfg.erb
|
142
145
|
- lib/deprec/templates/nagios/README
|
143
|
-
- lib/deprec/templates/nagios/resource.cfg
|
144
|
-
- lib/deprec/templates/nagios/services.cfg.erb
|
145
|
-
- lib/deprec/templates/nagios_config.tgz
|
146
|
+
- lib/deprec/templates/nagios/resource.cfg.erb
|
146
147
|
- lib/deprec/templates/network/hostname.erb
|
147
148
|
- lib/deprec/templates/network/hosts.erb
|
148
149
|
- lib/deprec/templates/network/interfaces.erb
|
@@ -155,15 +156,6 @@ files:
|
|
155
156
|
- lib/deprec/templates/nginx/nothing.conf
|
156
157
|
- lib/deprec/templates/nginx/rails_nginx_vhost.conf.erb
|
157
158
|
- lib/deprec/templates/ntp/ntp.conf.erb
|
158
|
-
- lib/deprec/templates/old/apache_vhost.erb
|
159
|
-
- lib/deprec/templates/old/cgi.cfg.erb
|
160
|
-
- lib/deprec/templates/old/commands.cfg.erb
|
161
|
-
- lib/deprec/templates/old/contacts.cfg.erb
|
162
|
-
- lib/deprec/templates/old/htpasswd.users
|
163
|
-
- lib/deprec/templates/old/localhost.cfg.erb
|
164
|
-
- lib/deprec/templates/old/resource.cfg.erb
|
165
|
-
- lib/deprec/templates/old/templates.cfg.erb
|
166
|
-
- lib/deprec/templates/old/timeperiods.cfg.erb
|
167
159
|
- lib/deprec/templates/passenger/apache_vhost.erb
|
168
160
|
- lib/deprec/templates/passenger/logrotate.conf.erb
|
169
161
|
- lib/deprec/templates/passenger/passenger.conf.erb
|
@@ -181,6 +173,8 @@ files:
|
|
181
173
|
- lib/deprec/templates/starling/monit.conf.erb
|
182
174
|
- lib/deprec/templates/starling/starling-init-script.erb
|
183
175
|
- lib/deprec/templates/subversion/svn.apache.vhost.erb
|
176
|
+
- lib/deprec/templates/syslog/syslog.conf.erb
|
177
|
+
- lib/deprec/templates/syslog/syslogd.erb
|
184
178
|
- lib/deprec/templates/trac/apache_vhost.conf.erb
|
185
179
|
- lib/deprec/templates/trac/nginx_vhost.conf.erb
|
186
180
|
- lib/deprec/templates/trac/trac.ini.erb
|
@@ -1,157 +0,0 @@
|
|
1
|
-
###############################################################################
|
2
|
-
# LOCALHOST.CFG - SAMPLE OBJECT CONFIG FILE FOR MONITORING THIS MACHINE
|
3
|
-
#
|
4
|
-
# Last Modified: 05-31-2007
|
5
|
-
#
|
6
|
-
# NOTE: This config file is intended to serve as an *extremely* simple
|
7
|
-
# example of how you can create configuration entries to monitor
|
8
|
-
# the local (Linux) machine.
|
9
|
-
#
|
10
|
-
###############################################################################
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
###############################################################################
|
16
|
-
###############################################################################
|
17
|
-
#
|
18
|
-
# HOST DEFINITION
|
19
|
-
#
|
20
|
-
###############################################################################
|
21
|
-
###############################################################################
|
22
|
-
|
23
|
-
# Define a host for the local machine
|
24
|
-
|
25
|
-
define host{
|
26
|
-
use linux-server ; Name of host template to use
|
27
|
-
; This host definition will inherit all variables that are defined
|
28
|
-
; in (or inherited by) the linux-server host template definition.
|
29
|
-
host_name localhost
|
30
|
-
alias localhost
|
31
|
-
address 127.0.0.1
|
32
|
-
}
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
###############################################################################
|
37
|
-
###############################################################################
|
38
|
-
#
|
39
|
-
# HOST GROUP DEFINITION
|
40
|
-
#
|
41
|
-
###############################################################################
|
42
|
-
###############################################################################
|
43
|
-
|
44
|
-
# Define an optional hostgroup for Linux machines
|
45
|
-
|
46
|
-
define hostgroup{
|
47
|
-
hostgroup_name linux-servers ; The name of the hostgroup
|
48
|
-
alias Linux Servers ; Long name of the group
|
49
|
-
members localhost ; Comma separated list of hosts that belong to this group
|
50
|
-
}
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
###############################################################################
|
55
|
-
###############################################################################
|
56
|
-
#
|
57
|
-
# SERVICE DEFINITIONS
|
58
|
-
#
|
59
|
-
###############################################################################
|
60
|
-
###############################################################################
|
61
|
-
|
62
|
-
|
63
|
-
# Define a service to "ping" the local machine
|
64
|
-
|
65
|
-
define service{
|
66
|
-
use local-service ; Name of service template to use
|
67
|
-
host_name localhost
|
68
|
-
service_description PING
|
69
|
-
check_command check_ping!100.0,20%!500.0,60%
|
70
|
-
}
|
71
|
-
|
72
|
-
|
73
|
-
# Define a service to check the disk space of the root partition
|
74
|
-
# on the local machine. Warning if < 20% free, critical if
|
75
|
-
# < 10% free space on partition.
|
76
|
-
|
77
|
-
define service{
|
78
|
-
use local-service ; Name of service template to use
|
79
|
-
host_name localhost
|
80
|
-
service_description Root Partition
|
81
|
-
check_command check_local_disk!20%!10%!/
|
82
|
-
}
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
# Define a service to check the number of currently logged in
|
87
|
-
# users on the local machine. Warning if > 20 users, critical
|
88
|
-
# if > 50 users.
|
89
|
-
|
90
|
-
define service{
|
91
|
-
use local-service ; Name of service template to use
|
92
|
-
host_name localhost
|
93
|
-
service_description Current Users
|
94
|
-
check_command check_local_users!20!50
|
95
|
-
}
|
96
|
-
|
97
|
-
|
98
|
-
# Define a service to check the number of currently running procs
|
99
|
-
# on the local machine. Warning if > 250 processes, critical if
|
100
|
-
# > 400 users.
|
101
|
-
|
102
|
-
define service{
|
103
|
-
use local-service ; Name of service template to use
|
104
|
-
host_name localhost
|
105
|
-
service_description Total Processes
|
106
|
-
check_command check_local_procs!250!400!RSZDT
|
107
|
-
}
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
# Define a service to check the load on the local machine.
|
112
|
-
|
113
|
-
define service{
|
114
|
-
use local-service ; Name of service template to use
|
115
|
-
host_name localhost
|
116
|
-
service_description Current Load
|
117
|
-
check_command check_local_load!5.0,4.0,3.0!10.0,6.0,4.0
|
118
|
-
}
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
# Define a service to check the swap usage the local machine.
|
123
|
-
# Critical if less than 10% of swap is free, warning if less than 20% is free
|
124
|
-
|
125
|
-
define service{
|
126
|
-
use local-service ; Name of service template to use
|
127
|
-
host_name localhost
|
128
|
-
service_description Swap Usage
|
129
|
-
check_command check_local_swap!20!10
|
130
|
-
}
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
# Define a service to check SSH on the local machine.
|
135
|
-
# Disable notifications for this service by default, as not all users may have SSH enabled.
|
136
|
-
|
137
|
-
define service{
|
138
|
-
use local-service ; Name of service template to use
|
139
|
-
host_name localhost
|
140
|
-
service_description SSH
|
141
|
-
check_command check_ssh
|
142
|
-
notifications_enabled 0
|
143
|
-
}
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
# Define a service to check HTTP on the local machine.
|
148
|
-
# Disable notifications for this service by default, as not all users may have HTTP enabled.
|
149
|
-
|
150
|
-
define service{
|
151
|
-
use local-service ; Name of service template to use
|
152
|
-
host_name localhost
|
153
|
-
service_description HTTP
|
154
|
-
check_command check_http
|
155
|
-
notifications_enabled 0
|
156
|
-
}
|
157
|
-
|
@@ -1,190 +0,0 @@
|
|
1
|
-
###############################################################################
|
2
|
-
# TEMPLATES.CFG - SAMPLE OBJECT TEMPLATES
|
3
|
-
#
|
4
|
-
# Last Modified: 10-03-2007
|
5
|
-
#
|
6
|
-
# NOTES: This config file provides you with some example object definition
|
7
|
-
# templates that are refered by other host, service, contact, etc.
|
8
|
-
# definitions in other config files.
|
9
|
-
#
|
10
|
-
# You don't need to keep these definitions in a separate file from your
|
11
|
-
# other object definitions. This has been done just to make things
|
12
|
-
# easier to understand.
|
13
|
-
#
|
14
|
-
###############################################################################
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
###############################################################################
|
19
|
-
###############################################################################
|
20
|
-
#
|
21
|
-
# CONTACT TEMPLATES
|
22
|
-
#
|
23
|
-
###############################################################################
|
24
|
-
###############################################################################
|
25
|
-
|
26
|
-
# Generic contact definition template - This is NOT a real contact, just a template!
|
27
|
-
|
28
|
-
define contact{
|
29
|
-
name generic-contact ; The name of this contact template
|
30
|
-
service_notification_period 24x7 ; service notifications can be sent anytime
|
31
|
-
host_notification_period 24x7 ; host notifications can be sent anytime
|
32
|
-
service_notification_options w,u,c,r,f,s ; send notifications for all service states, flapping events, and scheduled downtime events
|
33
|
-
host_notification_options d,u,r,f,s ; send notifications for all host states, flapping events, and scheduled downtime events
|
34
|
-
service_notification_commands notify-service-by-email ; send service notifications via email
|
35
|
-
host_notification_commands notify-host-by-email ; send host notifications via email
|
36
|
-
register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL CONTACT, JUST A TEMPLATE!
|
37
|
-
}
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
###############################################################################
|
43
|
-
###############################################################################
|
44
|
-
#
|
45
|
-
# HOST TEMPLATES
|
46
|
-
#
|
47
|
-
###############################################################################
|
48
|
-
###############################################################################
|
49
|
-
|
50
|
-
# Generic host definition template - This is NOT a real host, just a template!
|
51
|
-
|
52
|
-
define host{
|
53
|
-
name generic-host ; The name of this host template
|
54
|
-
notifications_enabled 1 ; Host notifications are enabled
|
55
|
-
event_handler_enabled 1 ; Host event handler is enabled
|
56
|
-
flap_detection_enabled 1 ; Flap detection is enabled
|
57
|
-
failure_prediction_enabled 1 ; Failure prediction is enabled
|
58
|
-
process_perf_data 1 ; Process performance data
|
59
|
-
retain_status_information 1 ; Retain status information across program restarts
|
60
|
-
retain_nonstatus_information 1 ; Retain non-status information across program restarts
|
61
|
-
notification_period 24x7 ; Send host notifications at any time
|
62
|
-
register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
|
63
|
-
}
|
64
|
-
|
65
|
-
|
66
|
-
# Linux host definition template - This is NOT a real host, just a template!
|
67
|
-
|
68
|
-
define host{
|
69
|
-
name linux-server ; The name of this host template
|
70
|
-
use generic-host ; This template inherits other values from the generic-host template
|
71
|
-
check_period 24x7 ; By default, Linux hosts are checked round the clock
|
72
|
-
check_interval 5 ; Actively check the host every 5 minutes
|
73
|
-
retry_interval 1 ; Schedule host check retries at 1 minute intervals
|
74
|
-
max_check_attempts 10 ; Check each Linux host 10 times (max)
|
75
|
-
check_command check-host-alive ; Default command to check Linux hosts
|
76
|
-
notification_period workhours ; Linux admins hate to be woken up, so we only notify during the day
|
77
|
-
; Note that the notification_period variable is being overridden from
|
78
|
-
; the value that is inherited from the generic-host template!
|
79
|
-
notification_interval 120 ; Resend notifications every 2 hours
|
80
|
-
notification_options d,u,r ; Only send notifications for specific host states
|
81
|
-
contact_groups admins ; Notifications get sent to the admins by default
|
82
|
-
register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
|
83
|
-
}
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
# Windows host definition template - This is NOT a real host, just a template!
|
88
|
-
|
89
|
-
define host{
|
90
|
-
name windows-server ; The name of this host template
|
91
|
-
use generic-host ; Inherit default values from the generic-host template
|
92
|
-
check_period 24x7 ; By default, Windows servers are monitored round the clock
|
93
|
-
check_interval 5 ; Actively check the server every 5 minutes
|
94
|
-
retry_interval 1 ; Schedule host check retries at 1 minute intervals
|
95
|
-
max_check_attempts 10 ; Check each server 10 times (max)
|
96
|
-
check_command check-host-alive ; Default command to check if servers are "alive"
|
97
|
-
notification_period 24x7 ; Send notification out at any time - day or night
|
98
|
-
notification_interval 30 ; Resend notifications every 30 minutes
|
99
|
-
notification_options d,r ; Only send notifications for specific host states
|
100
|
-
contact_groups admins ; Notifications get sent to the admins by default
|
101
|
-
hostgroups windows-servers ; Host groups that Windows servers should be a member of
|
102
|
-
register 0 ; DONT REGISTER THIS - ITS JUST A TEMPLATE
|
103
|
-
}
|
104
|
-
|
105
|
-
|
106
|
-
# We define a generic printer template that can be used for most printers we monitor
|
107
|
-
|
108
|
-
define host{
|
109
|
-
name generic-printer ; The name of this host template
|
110
|
-
use generic-host ; Inherit default values from the generic-host template
|
111
|
-
check_period 24x7 ; By default, printers are monitored round the clock
|
112
|
-
check_interval 5 ; Actively check the printer every 5 minutes
|
113
|
-
retry_interval 1 ; Schedule host check retries at 1 minute intervals
|
114
|
-
max_check_attempts 10 ; Check each printer 10 times (max)
|
115
|
-
check_command check-host-alive ; Default command to check if printers are "alive"
|
116
|
-
notification_period workhours ; Printers are only used during the workday
|
117
|
-
notification_interval 30 ; Resend notifications every 30 minutes
|
118
|
-
notification_options d,r ; Only send notifications for specific host states
|
119
|
-
contact_groups admins ; Notifications get sent to the admins by default
|
120
|
-
register 0 ; DONT REGISTER THIS - ITS JUST A TEMPLATE
|
121
|
-
}
|
122
|
-
|
123
|
-
|
124
|
-
# Define a template for switches that we can reuse
|
125
|
-
define host{
|
126
|
-
name generic-switch ; The name of this host template
|
127
|
-
use generic-host ; Inherit default values from the generic-host template
|
128
|
-
check_period 24x7 ; By default, switches are monitored round the clock
|
129
|
-
check_interval 5 ; Switches are checked every 5 minutes
|
130
|
-
retry_interval 1 ; Schedule host check retries at 1 minute intervals
|
131
|
-
max_check_attempts 10 ; Check each switch 10 times (max)
|
132
|
-
check_command check-host-alive ; Default command to check if routers are "alive"
|
133
|
-
notification_period 24x7 ; Send notifications at any time
|
134
|
-
notification_interval 30 ; Resend notifications every 30 minutes
|
135
|
-
notification_options d,r ; Only send notifications for specific host states
|
136
|
-
contact_groups admins ; Notifications get sent to the admins by default
|
137
|
-
register 0 ; DONT REGISTER THIS - ITS JUST A TEMPLATE
|
138
|
-
}
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
###############################################################################
|
144
|
-
###############################################################################
|
145
|
-
#
|
146
|
-
# SERVICE TEMPLATES
|
147
|
-
#
|
148
|
-
###############################################################################
|
149
|
-
###############################################################################
|
150
|
-
|
151
|
-
# Generic service definition template - This is NOT a real service, just a template!
|
152
|
-
|
153
|
-
define service{
|
154
|
-
name generic-service ; The 'name' of this service template
|
155
|
-
active_checks_enabled 1 ; Active service checks are enabled
|
156
|
-
passive_checks_enabled 1 ; Passive service checks are enabled/accepted
|
157
|
-
parallelize_check 1 ; Active service checks should be parallelized (disabling this can lead to major performance problems)
|
158
|
-
obsess_over_service 1 ; We should obsess over this service (if necessary)
|
159
|
-
check_freshness 0 ; Default is to NOT check service 'freshness'
|
160
|
-
notifications_enabled 1 ; Service notifications are enabled
|
161
|
-
event_handler_enabled 1 ; Service event handler is enabled
|
162
|
-
flap_detection_enabled 1 ; Flap detection is enabled
|
163
|
-
failure_prediction_enabled 1 ; Failure prediction is enabled
|
164
|
-
process_perf_data 1 ; Process performance data
|
165
|
-
retain_status_information 1 ; Retain status information across program restarts
|
166
|
-
retain_nonstatus_information 1 ; Retain non-status information across program restarts
|
167
|
-
is_volatile 0 ; The service is not volatile
|
168
|
-
check_period 24x7 ; The service can be checked at any time of the day
|
169
|
-
max_check_attempts 3 ; Re-check the service up to 3 times in order to determine its final (hard) state
|
170
|
-
normal_check_interval 10 ; Check the service every 10 minutes under normal conditions
|
171
|
-
retry_check_interval 2 ; Re-check the service every two minutes until a hard state can be determined
|
172
|
-
contact_groups admins ; Notifications get sent out to everyone in the 'admins' group
|
173
|
-
notification_options w,u,c,r ; Send notifications about warning, unknown, critical, and recovery events
|
174
|
-
notification_interval 60 ; Re-notify about service problems every hour
|
175
|
-
notification_period 24x7 ; Notifications can be sent out at any time
|
176
|
-
register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE!
|
177
|
-
}
|
178
|
-
|
179
|
-
|
180
|
-
# Local service definition template - This is NOT a real service, just a template!
|
181
|
-
|
182
|
-
define service{
|
183
|
-
name local-service ; The name of this service template
|
184
|
-
use generic-service ; Inherit default values from the generic-service definition
|
185
|
-
max_check_attempts 4 ; Re-check the service up to 4 times in order to determine its final (hard) state
|
186
|
-
normal_check_interval 5 ; Check the service every 5 minutes under normal conditions
|
187
|
-
retry_check_interval 1 ; Re-check the service every minute until a hard state can be determined
|
188
|
-
register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE!
|
189
|
-
}
|
190
|
-
|