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
@@ -1,8 +1,8 @@
|
|
1
1
|
#################################################################
|
2
2
|
#
|
3
|
-
# CGI.CFG - Sample CGI Configuration File for Nagios 3.0
|
3
|
+
# CGI.CFG - Sample CGI Configuration File for Nagios 3.2.0
|
4
4
|
#
|
5
|
-
# Last Modified:
|
5
|
+
# Last Modified: 06-17-2009
|
6
6
|
#
|
7
7
|
#################################################################
|
8
8
|
|
@@ -173,6 +173,16 @@ authorized_for_all_host_commands=nagiosadmin
|
|
173
173
|
|
174
174
|
|
175
175
|
|
176
|
+
# READ-ONLY USERS
|
177
|
+
# A comma-delimited list of usernames that have read-only rights in
|
178
|
+
# the CGIs. This will block any service or host commands normally shown
|
179
|
+
# on the extinfo CGI pages. It will also block comments from being shown
|
180
|
+
# to read-only users.
|
181
|
+
|
182
|
+
#authorized_for_read_only=user1,user2
|
183
|
+
|
184
|
+
|
185
|
+
|
176
186
|
|
177
187
|
# STATUSMAP BACKGROUND IMAGE
|
178
188
|
# This option allows you to specify an image to be used as a
|
@@ -189,6 +199,20 @@ authorized_for_all_host_commands=nagiosadmin
|
|
189
199
|
|
190
200
|
|
191
201
|
|
202
|
+
|
203
|
+
# STATUSMAP TRANSPARENCY INDEX COLOR
|
204
|
+
# These options set the r,g,b values of the background color used the statusmap CGI,
|
205
|
+
# so normal browsers that can't show real png transparency set the desired color as
|
206
|
+
# a background color instead (to make it look pretty).
|
207
|
+
# Defaults to white: (R,G,B) = (255,255,255).
|
208
|
+
|
209
|
+
#color_transparency_index_r=255
|
210
|
+
#color_transparency_index_g=255
|
211
|
+
#color_transparency_index_b=255
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
|
192
216
|
# DEFAULT STATUSMAP LAYOUT METHOD
|
193
217
|
# This option allows you to specify the default layout method
|
194
218
|
# the statusmap CGI should use for drawing hosts. If you do
|
@@ -330,3 +354,4 @@ lock_author_names=1
|
|
330
354
|
#splunk_url=http://127.0.0.1:8000/
|
331
355
|
|
332
356
|
|
357
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
nagiosadmin:wSjr.2Tk17iAU
|
@@ -1,12 +1,12 @@
|
|
1
1
|
##############################################################################
|
2
2
|
#
|
3
|
-
# NAGIOS.CFG - Sample Main Config File for Nagios 3.0
|
3
|
+
# NAGIOS.CFG - Sample Main Config File for Nagios 3.2.0
|
4
4
|
#
|
5
5
|
# Read the documentation for more information on this configuration
|
6
6
|
# file. I've provided some comments here, but things may not be so
|
7
7
|
# clear without further explanation.
|
8
8
|
#
|
9
|
-
# Last Modified:
|
9
|
+
# Last Modified: 12-14-2008
|
10
10
|
#
|
11
11
|
##############################################################################
|
12
12
|
|
@@ -27,13 +27,13 @@ log_file=/usr/local/nagios/var/nagios.log
|
|
27
27
|
# if you wish (as shown below), or keep them all in a single config file.
|
28
28
|
|
29
29
|
# You can specify individual object config files as shown below:
|
30
|
-
cfg_file=/usr/local/nagios/etc/objects/commands.cfg
|
31
|
-
cfg_file=/usr/local/nagios/etc/objects/contacts.cfg
|
32
|
-
cfg_file=/usr/local/nagios/etc/objects/timeperiods.cfg
|
33
|
-
cfg_file=/usr/local/nagios/etc/objects/templates.cfg
|
30
|
+
# cfg_file=/usr/local/nagios/etc/objects/commands.cfg
|
31
|
+
# cfg_file=/usr/local/nagios/etc/objects/contacts.cfg
|
32
|
+
# cfg_file=/usr/local/nagios/etc/objects/timeperiods.cfg
|
33
|
+
# cfg_file=/usr/local/nagios/etc/objects/templates.cfg
|
34
34
|
|
35
35
|
# Definitions for monitoring the local (Linux) host
|
36
|
-
cfg_file=/usr/local/nagios/etc/objects/localhost.cfg
|
36
|
+
# cfg_file=/usr/local/nagios/etc/objects/localhost.cfg
|
37
37
|
|
38
38
|
# Definitions for monitoring a Windows machine
|
39
39
|
#cfg_file=/usr/local/nagios/etc/objects/windows.cfg
|
@@ -49,6 +49,9 @@ cfg_file=/usr/local/nagios/etc/objects/localhost.cfg
|
|
49
49
|
# extension) in a particular directory by using the cfg_dir
|
50
50
|
# directive as shown below:
|
51
51
|
|
52
|
+
cfg_dir=/usr/local/nagios/etc/objects
|
53
|
+
|
54
|
+
|
52
55
|
#cfg_dir=/usr/local/nagios/etc/servers
|
53
56
|
#cfg_dir=/usr/local/nagios/etc/printers
|
54
57
|
#cfg_dir=/usr/local/nagios/etc/switches
|
@@ -719,6 +722,31 @@ interval_length=60
|
|
719
722
|
|
720
723
|
|
721
724
|
|
725
|
+
# CHECK FOR UPDATES
|
726
|
+
# This option determines whether Nagios will automatically check to
|
727
|
+
# see if new updates (releases) are available. It is recommend that you
|
728
|
+
# enable this option to ensure that you stay on top of the latest critical
|
729
|
+
# patches to Nagios. Nagios is critical to you - make sure you keep it in
|
730
|
+
# good shape. Nagios will check once a day for new updates. Data collected
|
731
|
+
# by Nagios Enterprises from the update check is processed in accordance
|
732
|
+
# with our privacy policy - see http://api.nagios.org for details.
|
733
|
+
|
734
|
+
check_for_updates=1
|
735
|
+
|
736
|
+
|
737
|
+
|
738
|
+
# BARE UPDATE CHECK
|
739
|
+
# This option deterines what data Nagios will send to api.nagios.org when
|
740
|
+
# it checks for updates. By default, Nagios will send information on the
|
741
|
+
# current version of Nagios you have installed, as well as an indicator as
|
742
|
+
# to whether this was a new installation or not. Nagios Enterprises uses
|
743
|
+
# this data to determine the number of users running specific version of
|
744
|
+
# Nagios. Enable this option if you do not want this information to be sent.
|
745
|
+
|
746
|
+
bare_update_check=0
|
747
|
+
|
748
|
+
|
749
|
+
|
722
750
|
# AGGRESSIVE HOST CHECKING OPTION
|
723
751
|
# If you don't want to turn on aggressive host checking features, set
|
724
752
|
# this value to 0 (the default). Otherwise set this value to 1 to
|
@@ -192,10 +192,22 @@ connection_timeout=300
|
|
192
192
|
command[check_users]=/usr/local/nagios/libexec/check_users -w 5 -c 10
|
193
193
|
command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20
|
194
194
|
command[check_hda1]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /dev/hda1
|
195
|
+
command[check_sda1]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /dev/sda1
|
196
|
+
command[check_xvda1]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /dev/xvda1
|
197
|
+
command[check_xvda2]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /dev/xvda2
|
198
|
+
command[check_xvda3]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /dev/xvda3
|
199
|
+
command[check_postfix_satellite]=/usr/local/nagios/libexec/check_smtp -H localhost
|
195
200
|
command[check_zombie_procs]=/usr/local/nagios/libexec/check_procs -w 5 -c 10 -s Z
|
196
|
-
command[check_total_procs]=/usr/local/nagios/libexec/check_procs -w 150 -c 200
|
197
|
-
command[check_memory]=/usr/local/nagios/libexec/check_linux_free_memory.pl -w 10% -c 0%
|
198
|
-
|
201
|
+
command[check_total_procs]=/usr/local/nagios/libexec/check_procs -w 150 -c 200
|
202
|
+
command[check_memory]=/usr/local/nagios/libexec/check_linux_free_memory.pl -w 10% -c 0%
|
203
|
+
command[check_mysql]=/usr/local/nagios/libexec/check_mysql -H localhost -u root
|
204
|
+
command[check_mysql_slave]=/usr/local/nagios/libexec/check_mysql -H localhost -u root --check-slave
|
205
|
+
command[check_airbrush]=/usr/local/nagios/libexec/check_procs -C ruby -a airbrush -c 1:1
|
206
|
+
command[check_starling]=/usr/local/nagios/libexec/check_procs -C ruby -a starling -c 1:1
|
207
|
+
command[check_sphinx]=/usr/local/nagios/libexec/check_procs -C searchd -c 1:1
|
208
|
+
command[check_ar_sendmail]=/usr/local/nagios/libexec/check_procs -C ar_sendmail -c 1:1
|
209
|
+
command[check_ntp_time]=/usr/local/nagios/libexec/check_ntp_time -H ntp.ubuntu.com -w 0.5 -c 1
|
210
|
+
command[check_swap]=/usr/local/nagios/libexec/check_swap -w 50% -c 10%
|
199
211
|
|
200
212
|
|
201
213
|
# The following examples allow user-supplied arguments and can
|
@@ -1,5 +1,5 @@
|
|
1
1
|
###############################################################################
|
2
|
-
# COMMANDS.CFG - SAMPLE COMMAND DEFINITIONS FOR NAGIOS 3.0
|
2
|
+
# COMMANDS.CFG - SAMPLE COMMAND DEFINITIONS FOR NAGIOS 3.2.0
|
3
3
|
#
|
4
4
|
# Last Modified: 05-31-2007
|
5
5
|
#
|
@@ -125,7 +125,12 @@ define command{
|
|
125
125
|
command_name check_ftp
|
126
126
|
command_line $USER1$/check_ftp -H $HOSTADDRESS$ $ARG1$
|
127
127
|
}
|
128
|
-
|
128
|
+
|
129
|
+
# 'check_dns' command definition
|
130
|
+
define command{
|
131
|
+
command_name check_dns
|
132
|
+
command_line $USER1$/check_dns -H $HOSTADDRESS$
|
133
|
+
}
|
129
134
|
|
130
135
|
# 'check_hpjd' command definition
|
131
136
|
define command{
|
@@ -146,7 +151,23 @@ define command{
|
|
146
151
|
command_name check_http
|
147
152
|
command_line $USER1$/check_http -I $HOSTADDRESS$ $ARG1$
|
148
153
|
}
|
154
|
+
|
155
|
+
# 'check_url' command definition
|
156
|
+
define command{
|
157
|
+
command_name check_url
|
158
|
+
command_line $USER1$/check_http -H $ARG1$ -u $ARG2$
|
159
|
+
}
|
160
|
+
|
161
|
+
|
162
|
+
# 'check_apache_requests' command definition
|
163
|
+
define command{
|
164
|
+
command_name check_apache_requests
|
165
|
+
command_line /usr/local/bin/collectd-nagios -n 'apache/apache_requests' -s /usr/local/var/run/collectd.sock -H $ARG1$ -w $ARG2$ -c $ARG3$
|
166
|
+
}
|
167
|
+
|
168
|
+
# collectd-nagios -n 'apache/apache_requests' -s /usr/local/var/run/collectd.sock -H mon.failmode.com -w 20 -c 30
|
149
169
|
|
170
|
+
|
150
171
|
|
151
172
|
# 'check_ssh' command definition
|
152
173
|
define command{
|
@@ -237,4 +258,8 @@ define command{
|
|
237
258
|
command_line /usr/bin/printf "%b" "$LASTSERVICECHECK$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICESTATE$\t$SERVICEATTEMPT$\t$SERVICESTATETYPE$\t$SERVICEEXECUTIONTIME$\t$SERVICELATENCY$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$\n" >> /usr/local/nagios/var/service-perfdata.out
|
238
259
|
}
|
239
260
|
|
261
|
+
define command{
|
262
|
+
command_name check_nrpe
|
263
|
+
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$
|
264
|
+
}
|
240
265
|
|
@@ -53,3 +53,26 @@ define contactgroup{
|
|
53
53
|
alias Nagios Administrators
|
54
54
|
members nagiosadmin
|
55
55
|
}
|
56
|
+
|
57
|
+
|
58
|
+
###############################################################################
|
59
|
+
###############################################################################
|
60
|
+
#
|
61
|
+
# CONTACT TEMPLATES
|
62
|
+
#
|
63
|
+
###############################################################################
|
64
|
+
###############################################################################
|
65
|
+
|
66
|
+
# Generic contact definition template - This is NOT a real contact, just a template!
|
67
|
+
|
68
|
+
define contact{
|
69
|
+
name generic-contact ; The name of this contact template
|
70
|
+
service_notification_period 24x7 ; service notifications can be sent anytime
|
71
|
+
host_notification_period 24x7 ; host notifications can be sent anytime
|
72
|
+
service_notification_options w,u,c,r,f,s ; send notifications for all service states, flapping events, and scheduled downtime events
|
73
|
+
host_notification_options d,u,r,f,s ; send notifications for all host states, flapping events, and scheduled downtime events
|
74
|
+
service_notification_commands notify-service-by-email ; send service notifications via email
|
75
|
+
host_notification_commands notify-host-by-email ; send host notifications via email
|
76
|
+
register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL CONTACT, JUST A TEMPLATE!
|
77
|
+
}
|
78
|
+
|
@@ -10,6 +10,11 @@ define hostgroup{
|
|
10
10
|
hostgroup_name servers
|
11
11
|
}
|
12
12
|
|
13
|
+
define hostgroup{
|
14
|
+
hostgroup_name linux-servers ; The name of the hostgroup
|
15
|
+
alias Linux Servers ; Long name of the group
|
16
|
+
}
|
17
|
+
|
13
18
|
define hostgroup{
|
14
19
|
hostgroup_name app
|
15
20
|
}
|
@@ -22,6 +27,19 @@ define hostgroup{
|
|
22
27
|
hostgroup_name routers
|
23
28
|
}
|
24
29
|
|
30
|
+
define hostgroup{
|
31
|
+
hostgroup_name mysql_servers
|
32
|
+
}
|
33
|
+
|
34
|
+
define hostgroup{
|
35
|
+
hostgroup_name mysql_slaves
|
36
|
+
}
|
37
|
+
|
38
|
+
define hostgroup{
|
39
|
+
hostgroup_name mail
|
40
|
+
}
|
41
|
+
|
42
|
+
|
25
43
|
###############################################################################
|
26
44
|
###############################################################################
|
27
45
|
#
|
@@ -30,6 +48,16 @@ define hostgroup{
|
|
30
48
|
###############################################################################
|
31
49
|
###############################################################################
|
32
50
|
|
51
|
+
define host{
|
52
|
+
use linux-server ; Name of host template to use
|
53
|
+
; This host definition will inherit all variables that are defined
|
54
|
+
; in (or inherited by) the linux-server host template definition.
|
55
|
+
host_name localhost
|
56
|
+
hostgroups linux-servers
|
57
|
+
alias localhost
|
58
|
+
address 127.0.0.1
|
59
|
+
}
|
60
|
+
|
33
61
|
define host {
|
34
62
|
use server
|
35
63
|
host_name app01
|
@@ -40,7 +68,7 @@ define host {
|
|
40
68
|
define host {
|
41
69
|
use server
|
42
70
|
host_name app02
|
43
|
-
hostgroups servers
|
71
|
+
hostgroups servers,app
|
44
72
|
address app02
|
45
73
|
}
|
46
74
|
|
@@ -71,7 +99,7 @@ define host{
|
|
71
99
|
# Linux host definition template - This is NOT a real host, just a template!
|
72
100
|
|
73
101
|
define host{
|
74
|
-
name
|
102
|
+
name server ; The name of this host template
|
75
103
|
use generic-host ; This template inherits other values from the generic-host template
|
76
104
|
check_period 24x7 ; By default, Linux hosts are checked round the clock
|
77
105
|
check_interval 5 ; Actively check the host every 5 minutes
|
@@ -89,55 +117,3 @@ define host{
|
|
89
117
|
|
90
118
|
|
91
119
|
|
92
|
-
# Windows host definition template - This is NOT a real host, just a template!
|
93
|
-
|
94
|
-
define host{
|
95
|
-
name windows-server ; The name of this host template
|
96
|
-
use generic-host ; Inherit default values from the generic-host template
|
97
|
-
check_period 24x7 ; By default, Windows servers are monitored round the clock
|
98
|
-
check_interval 5 ; Actively check the server every 5 minutes
|
99
|
-
retry_interval 1 ; Schedule host check retries at 1 minute intervals
|
100
|
-
max_check_attempts 10 ; Check each server 10 times (max)
|
101
|
-
check_command check-host-alive ; Default command to check if servers are "alive"
|
102
|
-
notification_period 24x7 ; Send notification out at any time - day or night
|
103
|
-
notification_interval 30 ; Resend notifications every 30 minutes
|
104
|
-
notification_options d,r ; Only send notifications for specific host states
|
105
|
-
contact_groups admins ; Notifications get sent to the admins by default
|
106
|
-
hostgroups windows-servers ; Host groups that Windows servers should be a member of
|
107
|
-
register 0 ; DONT REGISTER THIS - ITS JUST A TEMPLATE
|
108
|
-
}
|
109
|
-
|
110
|
-
|
111
|
-
# We define a generic printer template that can be used for most printers we monitor
|
112
|
-
|
113
|
-
define host{
|
114
|
-
name generic-printer ; The name of this host template
|
115
|
-
use generic-host ; Inherit default values from the generic-host template
|
116
|
-
check_period 24x7 ; By default, printers are monitored round the clock
|
117
|
-
check_interval 5 ; Actively check the printer every 5 minutes
|
118
|
-
retry_interval 1 ; Schedule host check retries at 1 minute intervals
|
119
|
-
max_check_attempts 10 ; Check each printer 10 times (max)
|
120
|
-
check_command check-host-alive ; Default command to check if printers are "alive"
|
121
|
-
notification_period workhours ; Printers are only used during the workday
|
122
|
-
notification_interval 30 ; Resend notifications every 30 minutes
|
123
|
-
notification_options d,r ; Only send notifications for specific host states
|
124
|
-
contact_groups admins ; Notifications get sent to the admins by default
|
125
|
-
register 0 ; DONT REGISTER THIS - ITS JUST A TEMPLATE
|
126
|
-
}
|
127
|
-
|
128
|
-
|
129
|
-
# Define a template for switches that we can reuse
|
130
|
-
define host{
|
131
|
-
name generic-switch ; The name of this host template
|
132
|
-
use generic-host ; Inherit default values from the generic-host template
|
133
|
-
check_period 24x7 ; By default, switches are monitored round the clock
|
134
|
-
check_interval 5 ; Switches are checked every 5 minutes
|
135
|
-
retry_interval 1 ; Schedule host check retries at 1 minute intervals
|
136
|
-
max_check_attempts 10 ; Check each switch 10 times (max)
|
137
|
-
check_command check-host-alive ; Default command to check if routers are "alive"
|
138
|
-
notification_period 24x7 ; Send notifications at any time
|
139
|
-
notification_interval 30 ; Resend notifications every 30 minutes
|
140
|
-
notification_options d,r ; Only send notifications for specific host states
|
141
|
-
contact_groups admins ; Notifications get sent to the admins by default
|
142
|
-
register 0 ; DONT REGISTER THIS - ITS JUST A TEMPLATE
|
143
|
-
}
|
@@ -10,47 +10,6 @@
|
|
10
10
|
###############################################################################
|
11
11
|
|
12
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
13
|
###############################################################################
|
55
14
|
###############################################################################
|
56
15
|
#
|
@@ -1,3 +1,23 @@
|
|
1
|
+
###############################################################################
|
2
|
+
###############################################################################
|
3
|
+
#
|
4
|
+
# SERVICE GROUPS
|
5
|
+
#
|
6
|
+
###############################################################################
|
7
|
+
###############################################################################
|
8
|
+
|
9
|
+
define servicegroup{
|
10
|
+
servicegroup_name disk
|
11
|
+
}
|
12
|
+
|
13
|
+
define servicegroup{
|
14
|
+
servicegroup_name memory
|
15
|
+
}
|
16
|
+
define servicegroup{
|
17
|
+
servicegroup_name cpu
|
18
|
+
}
|
19
|
+
|
20
|
+
|
1
21
|
###############################################################################
|
2
22
|
###############################################################################
|
3
23
|
#
|
@@ -6,12 +26,28 @@
|
|
6
26
|
###############################################################################
|
7
27
|
###############################################################################
|
8
28
|
|
29
|
+
define service {
|
30
|
+
use generic-service ; Name of service template to use
|
31
|
+
hostgroup_name servers
|
32
|
+
service_description SSH
|
33
|
+
check_command check_ssh
|
34
|
+
}
|
35
|
+
|
36
|
+
define service{
|
37
|
+
use generic-service
|
38
|
+
hostgroup_name servers
|
39
|
+
service_description Memory
|
40
|
+
servicegroups memory
|
41
|
+
check_command check_nrpe!check_memory
|
42
|
+
}
|
43
|
+
|
9
44
|
define service{
|
10
45
|
use generic-service
|
11
46
|
hostgroup_name servers
|
12
47
|
service_description Swap
|
13
48
|
servicegroups memory
|
14
|
-
check_command check_nrpe!check_swap
|
49
|
+
check_command check_nrpe!check_swap
|
50
|
+
notifications_enabled 0
|
15
51
|
}
|
16
52
|
|
17
53
|
define service{
|
@@ -26,9 +62,59 @@ define service{
|
|
26
62
|
hostgroup_name servers
|
27
63
|
servicegroups disk
|
28
64
|
service_description Disk
|
29
|
-
check_command check_nrpe!
|
65
|
+
check_command check_nrpe!check_xvda2
|
30
66
|
}
|
31
67
|
|
68
|
+
define service{
|
69
|
+
use generic-service
|
70
|
+
hostgroup_name servers
|
71
|
+
service_description NTP Time
|
72
|
+
check_command check_nrpe!check_ntp_time
|
73
|
+
}
|
74
|
+
|
75
|
+
define service{
|
76
|
+
use generic-service
|
77
|
+
hostgroup_name servers
|
78
|
+
service_description DNS
|
79
|
+
check_command check_dns
|
80
|
+
}
|
81
|
+
|
82
|
+
define service {
|
83
|
+
use generic-service ; Name of service template to use
|
84
|
+
hostgroup_name mail
|
85
|
+
service_description postfix smtp
|
86
|
+
check_command check_nrpe!check_postfix_satellite
|
87
|
+
}
|
88
|
+
|
89
|
+
define service{
|
90
|
+
use generic-service
|
91
|
+
hostgroup_name mysql_servers
|
92
|
+
service_description Mysql
|
93
|
+
check_command check_nrpe!check_mysql
|
94
|
+
}
|
95
|
+
|
96
|
+
# Check requests per second to Apache (via collectd)
|
97
|
+
#
|
98
|
+
# define service{
|
99
|
+
# use generic-service
|
100
|
+
# host_name localhost
|
101
|
+
# service_description apache_requests
|
102
|
+
# normal_check_interval 1
|
103
|
+
# retry_check_interval 1
|
104
|
+
# check_command check_apache_requests!www.example.com!10!20
|
105
|
+
# }
|
106
|
+
|
107
|
+
# Check URl is responding
|
108
|
+
#
|
109
|
+
# define service{
|
110
|
+
# use generic-service
|
111
|
+
# host_name example_host
|
112
|
+
# service_description www.example.com
|
113
|
+
# check_command check_url!www.example.com!http:\/\/www.example.com/some/path
|
114
|
+
# notifications_enabled 1
|
115
|
+
# }
|
116
|
+
|
117
|
+
|
32
118
|
###############################################################################
|
33
119
|
###############################################################################
|
34
120
|
#
|