deprec 2.0.13 → 2.0.15
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +8 -0
- data/lib/deprec/recipes/app/passenger.rb +12 -1
- data/lib/deprec/recipes/collectd.rb +112 -0
- data/lib/deprec/recipes/nagios.rb +82 -75
- data/lib/deprec/recipes/rails.rb +5 -0
- data/lib/deprec/recipes/utils.rb +17 -17
- data/lib/deprec/recipes/web/apache.rb +1 -0
- data/lib/deprec/recipes/xen.rb +6 -5
- data/lib/deprec/recipes_minus_rails.rb +1 -0
- data/lib/deprec/templates/nagios/README +32 -0
- data/lib/deprec/templates/nagios/cgi.cfg +332 -0
- data/lib/deprec/templates/nagios/htpasswd.users +0 -1
- data/lib/deprec/templates/nagios/mrtg.cfg +180 -0
- data/lib/deprec/templates/nagios/{nagios.cfg.erb → nagios.cfg} +37 -14
- data/lib/deprec/templates/nagios/objects/commands.cfg +240 -0
- data/lib/deprec/templates/nagios/objects/contacts.cfg +55 -0
- data/lib/deprec/templates/nagios/{localhost.cfg.erb → objects/localhost.cfg} +0 -0
- data/lib/deprec/templates/nagios/objects/templates.cfg +190 -0
- data/lib/deprec/templates/nagios/{timeperiods.cfg.erb → objects/timeperiods.cfg} +0 -0
- data/lib/deprec/templates/nagios/resource.cfg +34 -0
- data/lib/deprec/templates/nagios_config.tgz +0 -0
- data/lib/deprec/templates/{nagios/nagios_apache_vhost.conf.erb → old/apache_vhost.erb} +0 -0
- data/lib/deprec/templates/{nagios → old}/cgi.cfg.erb +0 -0
- data/lib/deprec/templates/{nagios → old}/commands.cfg.erb +0 -0
- data/lib/deprec/templates/{nagios → old}/contacts.cfg.erb +0 -0
- data/lib/deprec/templates/old/htpasswd.users +1 -0
- data/lib/deprec/templates/old/localhost.cfg.erb +157 -0
- data/lib/deprec/templates/{nagios → old}/resource.cfg.erb +0 -0
- data/lib/deprec/templates/{nagios → old}/templates.cfg.erb +0 -0
- data/lib/deprec/templates/old/timeperiods.cfg.erb +94 -0
- data/lib/deprec/templates/passenger/apache_vhost.erb +3 -0
- data/lib/deprec/templates/passenger/logrotate.conf.erb +12 -0
- metadata +24 -11
data/lib/deprec/recipes/xen.rb
CHANGED
@@ -3,6 +3,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
3
3
|
namespace :deprec do
|
4
4
|
namespace :xen do
|
5
5
|
|
6
|
+
set :xen_volume_group_name, 'xendisks'
|
6
7
|
# Config variables for migration
|
7
8
|
default(:xen_slice) { Capistrano::CLI.ui.ask("Slice name") }
|
8
9
|
default(:xen_old_host) { Capistrano::CLI.ui.ask("Old Xen host") }
|
@@ -126,7 +127,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
126
127
|
# Get user input for these values
|
127
128
|
xen_old_host && xen_new_host && xen_disk_size && xen_swap_size && xen_slice
|
128
129
|
|
129
|
-
|
130
|
+
copy_disk
|
130
131
|
copy_slice_config
|
131
132
|
create_lvm_disks
|
132
133
|
build_slice_from_tarball
|
@@ -135,7 +136,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
135
136
|
task :copy_disk do
|
136
137
|
mnt_dir = "/mnt/#{xen_slice}-disk"
|
137
138
|
tarball = "/tmp/#{xen_slice}-disk.tar"
|
138
|
-
lvm_disk = "/dev
|
139
|
+
lvm_disk = "/dev/#{xen_volume_group_name}/#{xen_slice}-disk"
|
139
140
|
|
140
141
|
# Shutdown slice
|
141
142
|
sudo "xm list | grep #{xen_slice} && #{sudo} xm shutdown #{xen_slice} && sleep 10; exit 0", :hosts => xen_old_host
|
@@ -168,15 +169,15 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
168
169
|
disks = {"#{xen_slice}-disk" => xen_disk_size, "#{xen_slice}-swap" => xen_swap_size}
|
169
170
|
disks.each { |disk, size|
|
170
171
|
puts "Creating #{disk} (#{size} GB)"
|
171
|
-
sudo "lvcreate -L #{size}G -n #{disk}
|
172
|
-
sudo "mkfs.ext3 /dev
|
172
|
+
sudo "lvcreate -L #{size}G -n #{disk} #{xen_volume_group_name}", :hosts => xen_new_host
|
173
|
+
sudo "mkfs.ext3 /dev/#{xen_volume_group_name}/#{disk}", :hosts => xen_new_host
|
173
174
|
}
|
174
175
|
end
|
175
176
|
|
176
177
|
task :build_slice_from_tarball do
|
177
178
|
mnt_dir = "/mnt/#{xen_slice}-disk"
|
178
179
|
tarball = "/tmp/#{xen_slice}-disk.tar"
|
179
|
-
lvm_disk = "/dev
|
180
|
+
lvm_disk = "/dev/#{xen_volume_group_name}/#{xen_slice}-disk"
|
180
181
|
|
181
182
|
# untar archive into lvm disk
|
182
183
|
sudo "test -d #{mnt_dir} || #{sudo} mkdir #{mnt_dir}; exit 0", :hosts => xen_new_host
|
@@ -44,6 +44,7 @@ require "#{File.dirname(__FILE__)}/recipes/memcache"
|
|
44
44
|
require "#{File.dirname(__FILE__)}/recipes/monit"
|
45
45
|
require "#{File.dirname(__FILE__)}/recipes/network"
|
46
46
|
require "#{File.dirname(__FILE__)}/recipes/nagios"
|
47
|
+
require "#{File.dirname(__FILE__)}/recipes/collectd"
|
47
48
|
require "#{File.dirname(__FILE__)}/recipes/heartbeat"
|
48
49
|
|
49
50
|
require "#{File.dirname(__FILE__)}/recipes/ubuntu"
|
@@ -0,0 +1,32 @@
|
|
1
|
+
=========================
|
2
|
+
SAMPLE CONFIG FILE README
|
3
|
+
=========================
|
4
|
+
|
5
|
+
This directory contains *sample* configuration files for Nagios.
|
6
|
+
You should read the HTML documentation for information on
|
7
|
+
customizing these config files to suit your needs.
|
8
|
+
|
9
|
+
A description of the sample config files and subdirectories
|
10
|
+
contained here follows:
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
CONTENTS:
|
15
|
+
---------
|
16
|
+
|
17
|
+
cgi.cfg - This is a sample CGI config file
|
18
|
+
|
19
|
+
nagios.cfg - This is a sample main config file
|
20
|
+
|
21
|
+
resource.cfg - This is a sample resource config file, used for definining
|
22
|
+
custom macros, storing sensitive data, etc.
|
23
|
+
|
24
|
+
httpd.conf - This file contains sample snippets that you'll need to
|
25
|
+
include in your Apache web server config file if you want
|
26
|
+
to use the web interface.
|
27
|
+
|
28
|
+
template-object/ - This directory contains sample object config files. You'll
|
29
|
+
need to define object config files like these before you can
|
30
|
+
actually start to monitor anything.
|
31
|
+
|
32
|
+
|
@@ -0,0 +1,332 @@
|
|
1
|
+
#################################################################
|
2
|
+
#
|
3
|
+
# CGI.CFG - Sample CGI Configuration File for Nagios 3.0.6
|
4
|
+
#
|
5
|
+
# Last Modified: 11-30-2008
|
6
|
+
#
|
7
|
+
#################################################################
|
8
|
+
|
9
|
+
|
10
|
+
# MAIN CONFIGURATION FILE
|
11
|
+
# This tells the CGIs where to find your main configuration file.
|
12
|
+
# The CGIs will read the main and host config files for any other
|
13
|
+
# data they might need.
|
14
|
+
|
15
|
+
main_config_file=/usr/local/nagios/etc/nagios.cfg
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
# PHYSICAL HTML PATH
|
20
|
+
# This is the path where the HTML files for Nagios reside. This
|
21
|
+
# value is used to locate the logo images needed by the statusmap
|
22
|
+
# and statuswrl CGIs.
|
23
|
+
|
24
|
+
physical_html_path=/usr/local/nagios/share
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
# URL HTML PATH
|
29
|
+
# This is the path portion of the URL that corresponds to the
|
30
|
+
# physical location of the Nagios HTML files (as defined above).
|
31
|
+
# This value is used by the CGIs to locate the online documentation
|
32
|
+
# and graphics. If you access the Nagios pages with an URL like
|
33
|
+
# http://www.myhost.com/nagios, this value should be '/nagios'
|
34
|
+
# (without the quotes).
|
35
|
+
|
36
|
+
url_html_path=/nagios
|
37
|
+
|
38
|
+
|
39
|
+
|
40
|
+
# CONTEXT-SENSITIVE HELP
|
41
|
+
# This option determines whether or not a context-sensitive
|
42
|
+
# help icon will be displayed for most of the CGIs.
|
43
|
+
# Values: 0 = disables context-sensitive help
|
44
|
+
# 1 = enables context-sensitive help
|
45
|
+
|
46
|
+
show_context_help=0
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
# PENDING STATES OPTION
|
51
|
+
# This option determines what states should be displayed in the web
|
52
|
+
# interface for hosts/services that have not yet been checked.
|
53
|
+
# Values: 0 = leave hosts/services that have not been check yet in their original state
|
54
|
+
# 1 = mark hosts/services that have not been checked yet as PENDING
|
55
|
+
|
56
|
+
use_pending_states=1
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
# AUTHENTICATION USAGE
|
62
|
+
# This option controls whether or not the CGIs will use any
|
63
|
+
# authentication when displaying host and service information, as
|
64
|
+
# well as committing commands to Nagios for processing.
|
65
|
+
#
|
66
|
+
# Read the HTML documentation to learn how the authorization works!
|
67
|
+
#
|
68
|
+
# NOTE: It is a really *bad* idea to disable authorization, unless
|
69
|
+
# you plan on removing the command CGI (cmd.cgi)! Failure to do
|
70
|
+
# so will leave you wide open to kiddies messing with Nagios and
|
71
|
+
# possibly hitting you with a denial of service attack by filling up
|
72
|
+
# your drive by continuously writing to your command file!
|
73
|
+
#
|
74
|
+
# Setting this value to 0 will cause the CGIs to *not* use
|
75
|
+
# authentication (bad idea), while any other value will make them
|
76
|
+
# use the authentication functions (the default).
|
77
|
+
|
78
|
+
use_authentication=1
|
79
|
+
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
# x509 CERT AUTHENTICATION
|
84
|
+
# When enabled, this option allows you to use x509 cert (SSL)
|
85
|
+
# authentication in the CGIs. This is an advanced option and should
|
86
|
+
# not be enabled unless you know what you're doing.
|
87
|
+
|
88
|
+
use_ssl_authentication=0
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
# DEFAULT USER
|
94
|
+
# Setting this variable will define a default user name that can
|
95
|
+
# access pages without authentication. This allows people within a
|
96
|
+
# secure domain (i.e., behind a firewall) to see the current status
|
97
|
+
# without authenticating. You may want to use this to avoid basic
|
98
|
+
# authentication if you are not using a secure server since basic
|
99
|
+
# authentication transmits passwords in the clear.
|
100
|
+
#
|
101
|
+
# Important: Do not define a default username unless you are
|
102
|
+
# running a secure web server and are sure that everyone who has
|
103
|
+
# access to the CGIs has been authenticated in some manner! If you
|
104
|
+
# define this variable, anyone who has not authenticated to the web
|
105
|
+
# server will inherit all rights you assign to this user!
|
106
|
+
|
107
|
+
#default_user_name=guest
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
# SYSTEM/PROCESS INFORMATION ACCESS
|
112
|
+
# This option is a comma-delimited list of all usernames that
|
113
|
+
# have access to viewing the Nagios process information as
|
114
|
+
# provided by the Extended Information CGI (extinfo.cgi). By
|
115
|
+
# default, *no one* has access to this unless you choose to
|
116
|
+
# not use authorization. You may use an asterisk (*) to
|
117
|
+
# authorize any user who has authenticated to the web server.
|
118
|
+
|
119
|
+
authorized_for_system_information=nagiosadmin
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
# CONFIGURATION INFORMATION ACCESS
|
124
|
+
# This option is a comma-delimited list of all usernames that
|
125
|
+
# can view ALL configuration information (hosts, commands, etc).
|
126
|
+
# By default, users can only view configuration information
|
127
|
+
# for the hosts and services they are contacts for. You may use
|
128
|
+
# an asterisk (*) to authorize any user who has authenticated
|
129
|
+
# to the web server.
|
130
|
+
|
131
|
+
authorized_for_configuration_information=nagiosadmin
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
# SYSTEM/PROCESS COMMAND ACCESS
|
136
|
+
# This option is a comma-delimited list of all usernames that
|
137
|
+
# can issue shutdown and restart commands to Nagios via the
|
138
|
+
# command CGI (cmd.cgi). Users in this list can also change
|
139
|
+
# the program mode to active or standby. By default, *no one*
|
140
|
+
# has access to this unless you choose to not use authorization.
|
141
|
+
# You may use an asterisk (*) to authorize any user who has
|
142
|
+
# authenticated to the web server.
|
143
|
+
|
144
|
+
authorized_for_system_commands=nagiosadmin
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
# GLOBAL HOST/SERVICE VIEW ACCESS
|
149
|
+
# These two options are comma-delimited lists of all usernames that
|
150
|
+
# can view information for all hosts and services that are being
|
151
|
+
# monitored. By default, users can only view information
|
152
|
+
# for hosts or services that they are contacts for (unless you
|
153
|
+
# you choose to not use authorization). You may use an asterisk (*)
|
154
|
+
# to authorize any user who has authenticated to the web server.
|
155
|
+
|
156
|
+
|
157
|
+
authorized_for_all_services=nagiosadmin
|
158
|
+
authorized_for_all_hosts=nagiosadmin
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
# GLOBAL HOST/SERVICE COMMAND ACCESS
|
163
|
+
# These two options are comma-delimited lists of all usernames that
|
164
|
+
# can issue host or service related commands via the command
|
165
|
+
# CGI (cmd.cgi) for all hosts and services that are being monitored.
|
166
|
+
# By default, users can only issue commands for hosts or services
|
167
|
+
# that they are contacts for (unless you you choose to not use
|
168
|
+
# authorization). You may use an asterisk (*) to authorize any
|
169
|
+
# user who has authenticated to the web server.
|
170
|
+
|
171
|
+
authorized_for_all_service_commands=nagiosadmin
|
172
|
+
authorized_for_all_host_commands=nagiosadmin
|
173
|
+
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
# STATUSMAP BACKGROUND IMAGE
|
178
|
+
# This option allows you to specify an image to be used as a
|
179
|
+
# background in the statusmap CGI. It is assumed that the image
|
180
|
+
# resides in the HTML images path (i.e. /usr/local/nagios/share/images).
|
181
|
+
# This path is automatically determined by appending "/images"
|
182
|
+
# to the path specified by the 'physical_html_path' directive.
|
183
|
+
# Note: The image file may be in GIF, PNG, JPEG, or GD2 format.
|
184
|
+
# However, I recommend that you convert your image to GD2 format
|
185
|
+
# (uncompressed), as this will cause less CPU load when the CGI
|
186
|
+
# generates the image.
|
187
|
+
|
188
|
+
#statusmap_background_image=smbackground.gd2
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
# DEFAULT STATUSMAP LAYOUT METHOD
|
193
|
+
# This option allows you to specify the default layout method
|
194
|
+
# the statusmap CGI should use for drawing hosts. If you do
|
195
|
+
# not use this option, the default is to use user-defined
|
196
|
+
# coordinates. Valid options are as follows:
|
197
|
+
# 0 = User-defined coordinates
|
198
|
+
# 1 = Depth layers
|
199
|
+
# 2 = Collapsed tree
|
200
|
+
# 3 = Balanced tree
|
201
|
+
# 4 = Circular
|
202
|
+
# 5 = Circular (Marked Up)
|
203
|
+
|
204
|
+
default_statusmap_layout=5
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
# DEFAULT STATUSWRL LAYOUT METHOD
|
209
|
+
# This option allows you to specify the default layout method
|
210
|
+
# the statuswrl (VRML) CGI should use for drawing hosts. If you
|
211
|
+
# do not use this option, the default is to use user-defined
|
212
|
+
# coordinates. Valid options are as follows:
|
213
|
+
# 0 = User-defined coordinates
|
214
|
+
# 2 = Collapsed tree
|
215
|
+
# 3 = Balanced tree
|
216
|
+
# 4 = Circular
|
217
|
+
|
218
|
+
default_statuswrl_layout=4
|
219
|
+
|
220
|
+
|
221
|
+
|
222
|
+
# STATUSWRL INCLUDE
|
223
|
+
# This option allows you to include your own objects in the
|
224
|
+
# generated VRML world. It is assumed that the file
|
225
|
+
# resides in the HTML path (i.e. /usr/local/nagios/share).
|
226
|
+
|
227
|
+
#statuswrl_include=myworld.wrl
|
228
|
+
|
229
|
+
|
230
|
+
|
231
|
+
# PING SYNTAX
|
232
|
+
# This option determines what syntax should be used when
|
233
|
+
# attempting to ping a host from the WAP interface (using
|
234
|
+
# the statuswml CGI. You must include the full path to
|
235
|
+
# the ping binary, along with all required options. The
|
236
|
+
# $HOSTADDRESS$ macro is substituted with the address of
|
237
|
+
# the host before the command is executed.
|
238
|
+
# Please note that the syntax for the ping binary is
|
239
|
+
# notorious for being different on virtually ever *NIX
|
240
|
+
# OS and distribution, so you may have to tweak this to
|
241
|
+
# work on your system.
|
242
|
+
|
243
|
+
ping_syntax=/bin/ping -n -U -c 5 $HOSTADDRESS$
|
244
|
+
|
245
|
+
|
246
|
+
|
247
|
+
# REFRESH RATE
|
248
|
+
# This option allows you to specify the refresh rate in seconds
|
249
|
+
# of various CGIs (status, statusmap, extinfo, and outages).
|
250
|
+
|
251
|
+
refresh_rate=90
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
# ESCAPE HTML TAGS
|
256
|
+
# This option determines whether HTML tags in host and service
|
257
|
+
# status output is escaped in the web interface. If enabled,
|
258
|
+
# your plugin output will not be able to contain clickable links.
|
259
|
+
|
260
|
+
escape_html_tags=1
|
261
|
+
|
262
|
+
|
263
|
+
|
264
|
+
|
265
|
+
# SOUND OPTIONS
|
266
|
+
# These options allow you to specify an optional audio file
|
267
|
+
# that should be played in your browser window when there are
|
268
|
+
# problems on the network. The audio files are used only in
|
269
|
+
# the status CGI. Only the sound for the most critical problem
|
270
|
+
# will be played. Order of importance (higher to lower) is as
|
271
|
+
# follows: unreachable hosts, down hosts, critical services,
|
272
|
+
# warning services, and unknown services. If there are no
|
273
|
+
# visible problems, the sound file optionally specified by
|
274
|
+
# 'normal_sound' variable will be played.
|
275
|
+
#
|
276
|
+
#
|
277
|
+
# <varname>=<sound_file>
|
278
|
+
#
|
279
|
+
# Note: All audio files must be placed in the /media subdirectory
|
280
|
+
# under the HTML path (i.e. /usr/local/nagios/share/media/).
|
281
|
+
|
282
|
+
#host_unreachable_sound=hostdown.wav
|
283
|
+
#host_down_sound=hostdown.wav
|
284
|
+
#service_critical_sound=critical.wav
|
285
|
+
#service_warning_sound=warning.wav
|
286
|
+
#service_unknown_sound=warning.wav
|
287
|
+
#normal_sound=noproblem.wav
|
288
|
+
|
289
|
+
|
290
|
+
|
291
|
+
# URL TARGET FRAMES
|
292
|
+
# These options determine the target frames in which notes and
|
293
|
+
# action URLs will open.
|
294
|
+
|
295
|
+
action_url_target=_blank
|
296
|
+
notes_url_target=_blank
|
297
|
+
|
298
|
+
|
299
|
+
|
300
|
+
|
301
|
+
# LOCK AUTHOR NAMES OPTION
|
302
|
+
# This option determines whether users can change the author name
|
303
|
+
# when submitting comments, scheduling downtime. If disabled, the
|
304
|
+
# author names will be locked into their contact name, as defined in Nagios.
|
305
|
+
# Values: 0 = allow editing author names
|
306
|
+
# 1 = lock author names (disallow editing)
|
307
|
+
|
308
|
+
lock_author_names=1
|
309
|
+
|
310
|
+
|
311
|
+
|
312
|
+
|
313
|
+
# SPLUNK INTEGRATION OPTIONS
|
314
|
+
# These options allow you to enable integration with Splunk
|
315
|
+
# in the web interface. If enabled, you'll be presented with
|
316
|
+
# "Splunk It" links in various places in the CGIs (log file,
|
317
|
+
# alert history, host/service detail, etc). Useful if you're
|
318
|
+
# trying to research why a particular problem occurred.
|
319
|
+
# For more information on Splunk, visit http://www.splunk.com/
|
320
|
+
|
321
|
+
# This option determines whether the Splunk integration is enabled
|
322
|
+
# Values: 0 = disable Splunk integration
|
323
|
+
# 1 = enable Splunk integration
|
324
|
+
|
325
|
+
#enable_splunk_integration=1
|
326
|
+
|
327
|
+
|
328
|
+
# This option should be the URL used to access your instance of Splunk
|
329
|
+
|
330
|
+
#splunk_url=http://127.0.0.1:8000/
|
331
|
+
|
332
|
+
|
@@ -1 +0,0 @@
|
|
1
|
-
# access control for nagios web interface
|
@@ -0,0 +1,180 @@
|
|
1
|
+
###################################################################
|
2
|
+
# MRTG Graphs: Nagios 3.0.6 Statistics
|
3
|
+
#
|
4
|
+
# You can add the following entries to your MRTG config file to
|
5
|
+
# begin graphing several Nagios statistics which can be useful for
|
6
|
+
# debugging and trending purposes. The nagiostats binary (which is
|
7
|
+
# included as part of the Nagios distribution) is used to generate
|
8
|
+
# the data.
|
9
|
+
###################################################################
|
10
|
+
|
11
|
+
# Service Latency and Execution Time
|
12
|
+
Target[nagios-a]: `/usr/local/nagios/bin/nagiostats --mrtg --data=AVGACTSVCLAT,AVGACTSVCEXT,PROGRUNTIME,NAGIOSVERPID`
|
13
|
+
MaxBytes[nagios-a]: 100000
|
14
|
+
Title[nagios-a]: Average Service Check Latency and Execution Time
|
15
|
+
PageTop[nagios-a]: <H1>Average Service Check Latency and Execution Time</H1>
|
16
|
+
Options[nagios-a]: growright,gauge,nopercent
|
17
|
+
YLegend[nagios-a]: Milliseconds
|
18
|
+
ShortLegend[nagios-a]:
|
19
|
+
LegendI[nagios-a]: Latency:
|
20
|
+
LegendO[nagios-a]: Execution Time:
|
21
|
+
Legend1[nagios-a]: Latency
|
22
|
+
Legend2[nagios-a]: Execution Time
|
23
|
+
Legend3[nagios-a]: Maximal 5 Minute Latency
|
24
|
+
Legend4[nagios-a]: Maximal 5 Minute Execution Time
|
25
|
+
|
26
|
+
|
27
|
+
# Service Percent State Change
|
28
|
+
Target[nagios-b]: `/usr/local/nagios/bin/nagiostats --mrtg --data=AVGACTSVCPSC,AVGPSVSVCPSC,PROGRUNTIME,NAGIOSVERPID`
|
29
|
+
MaxBytes[nagios-b]: 100
|
30
|
+
Title[nagios-b]: Average Service State Change
|
31
|
+
PageTop[nagios-b]: <H1>Average Service State Change</H1>
|
32
|
+
Options[nagios-b]: growright,gauge,nopercent
|
33
|
+
YLegend[nagios-b]: Percent
|
34
|
+
ShortLegend[nagios-b]:
|
35
|
+
LegendI[nagios-b]: Active Check % Change:
|
36
|
+
LegendO[nagios-b]: Passive Check % Change:
|
37
|
+
Legend1[nagios-b]: State Change
|
38
|
+
Legend2[nagios-b]: State Change
|
39
|
+
Legend3[nagios-b]: Maximal 5 Minute State Change
|
40
|
+
Legend4[nagios-b]: Maximal 5 Minute State Change
|
41
|
+
|
42
|
+
|
43
|
+
# Host Latency and Execution Time
|
44
|
+
Target[nagios-c]: `/usr/local/nagios/bin/nagiostats --mrtg --data=AVGACTHSTLAT,AVGACTHSTEXT,PROGRUNTIME,NAGIOSVERPID`
|
45
|
+
MaxBytes[nagios-c]: 100000
|
46
|
+
Title[nagios-c]: Average Host Check Latency and Execution Time
|
47
|
+
PageTop[nagios-c]: <H1>Average Host Check Latency and Execution Time</H1>
|
48
|
+
Options[nagios-c]: growright,gauge,nopercent
|
49
|
+
YLegend[nagios-c]: Milliseconds
|
50
|
+
ShortLegend[nagios-c]:
|
51
|
+
LegendI[nagios-c]: Latency:
|
52
|
+
LegendO[nagios-c]: Execution Time:
|
53
|
+
Legend1[nagios-c]: Latency
|
54
|
+
Legend2[nagios-c]: Execution Time
|
55
|
+
Legend3[nagios-c]: Maximal 5 Minute Latency
|
56
|
+
Legend4[nagios-c]: Maximal 5 Minute Execution Time
|
57
|
+
|
58
|
+
|
59
|
+
# Host Percent State Change
|
60
|
+
Target[nagios-d]: `/usr/local/nagios/bin/nagiostats --mrtg --data=AVGACTHSTPSC,AVGPSVHSTPSC,PROGRUNTIME,NAGIOSVERPID`
|
61
|
+
MaxBytes[nagios-d]: 100
|
62
|
+
Title[nagios-d]: Average Host State Change
|
63
|
+
PageTop[nagios-d]: <H1>Average Host State Change</H1>
|
64
|
+
Options[nagios-d]: growright,gauge,nopercent
|
65
|
+
YLegend[nagios-d]: Percent
|
66
|
+
ShortLegend[nagios-d]:
|
67
|
+
LegendI[nagios-d]: Active Check % Change:
|
68
|
+
LegendO[nagios-d]: Passive Check % Change:
|
69
|
+
Legend1[nagios-d]: State Change
|
70
|
+
Legend2[nagios-d]: State Change
|
71
|
+
Legend3[nagios-d]: Maximal 5 Minute State Change
|
72
|
+
Legend4[nagios-d]: Maximal 5 Minute State Change
|
73
|
+
|
74
|
+
|
75
|
+
# Hosts/Services Actively Checked
|
76
|
+
Target[nagios-e]: `/usr/local/nagios/bin/nagiostats --mrtg --data=NUMHSTACTCHK5M,NUMSVCACTCHK5M,PROGRUNTIME,NAGIOSVERPID`
|
77
|
+
MaxBytes[nagios-e]: 7000
|
78
|
+
Title[nagios-e]: Hosts/Services Actively Checked
|
79
|
+
PageTop[nagios-e]: <H1>Hosts/Services Actively Checked</H1>
|
80
|
+
Options[nagios-e]: growright,gauge,nopercent
|
81
|
+
YLegend[nagios-e]: Total
|
82
|
+
ShortLegend[nagios-e]:
|
83
|
+
LegendI[nagios-e]: Hosts:
|
84
|
+
LegendO[nagios-e]: Services:
|
85
|
+
|
86
|
+
|
87
|
+
# Hosts/Services Passively Checked
|
88
|
+
Target[nagios-f]: `/usr/local/nagios/bin/nagiostats --mrtg --data=NUMHSTPSVCHK5M,NUMSVCPSVCHK5M,PROGRUNTIME,NAGIOSVERPID`
|
89
|
+
MaxBytes[nagios-f]: 7000
|
90
|
+
Title[nagios-f]: Hosts/Services Passively Checked
|
91
|
+
PageTop[nagios-f]: <H1>Hosts/Services Passively Checked</H1>
|
92
|
+
Options[nagios-f]: growright,gauge,nopercent
|
93
|
+
YLegend[nagios-f]: Total
|
94
|
+
ShortLegend[nagios-f]:
|
95
|
+
LegendI[nagios-f]: Hosts:
|
96
|
+
LegendO[nagios-f]: Services:
|
97
|
+
|
98
|
+
|
99
|
+
# Used/Avail External Command Buffers
|
100
|
+
Target[nagios-g]: `/usr/local/nagios/bin/nagiostats --mrtg --data=TOTCMDBUF,USEDCMDBUF,PROGRUNTIME,NAGIOSVERPID`
|
101
|
+
MaxBytes[nagios-g]: 7000
|
102
|
+
Title[nagios-g]: External Command Buffers
|
103
|
+
PageTop[nagios-g]: <H1>External Command Buffers</H1>
|
104
|
+
Options[nagios-g]: growright,gauge,nopercent
|
105
|
+
YLegend[nagios-g]: Buffers
|
106
|
+
ShortLegend[nagios-g]:
|
107
|
+
LegendI[nagios-g]: Total:
|
108
|
+
LegendO[nagios-g]: Used:
|
109
|
+
|
110
|
+
|
111
|
+
# Active Host Checks
|
112
|
+
Target[nagios-i]: `/usr/local/nagios/bin/nagiostats --mrtg --data=NUMSACTHSTCHECKS5M,NUMOACTHSTCHECKS5M,PROGRUNTIME,NAGIOSVERPID`
|
113
|
+
MaxBytes[nagios-i]: 7000
|
114
|
+
Title[nagios-i]: Active Host Checks
|
115
|
+
PageTop[nagios-i]: <H1>Active Host Checks</H1>
|
116
|
+
Options[nagios-i]: growright,gauge,nopercent
|
117
|
+
YLegend[nagios-i]: Checks
|
118
|
+
ShortLegend[nagios-i]:
|
119
|
+
LegendI[nagios-i]: Scheduled Checks:
|
120
|
+
LegendO[nagios-i]: On-Demand Checks:
|
121
|
+
|
122
|
+
|
123
|
+
# Active Service Checks
|
124
|
+
Target[nagios-j]: `/usr/local/nagios/bin/nagiostats --mrtg --data=NUMSACTSVCCHECKS5M,NUMOACTSVCCHECKS5M,PROGRUNTIME,NAGIOSVERPID`
|
125
|
+
MaxBytes[nagios-j]: 7000
|
126
|
+
Title[nagios-j]: Active Service Checks
|
127
|
+
PageTop[nagios-j]: <H1>Active Service Checks</H1>
|
128
|
+
Options[nagios-j]: growright,gauge,nopercent
|
129
|
+
YLegend[nagios-j]: Checks
|
130
|
+
ShortLegend[nagios-j]:
|
131
|
+
LegendI[nagios-j]: Scheduled Checks:
|
132
|
+
LegendO[nagios-j]: On-Demand Checks:
|
133
|
+
|
134
|
+
|
135
|
+
# Passive Host/Service Checks
|
136
|
+
Target[nagios-k]: `/usr/local/nagios/bin/nagiostats --mrtg --data=NUMPSVHSTCHECKS5M,NUMPSVSVCCHECKS5M,PROGRUNTIME,NAGIOSVERPID`
|
137
|
+
MaxBytes[nagios-k]: 7000
|
138
|
+
Title[nagios-k]: Passive Host/Service Checks
|
139
|
+
PageTop[nagios-k]: <H1>Passive Host/Service Checks</H1>
|
140
|
+
Options[nagios-k]: growright,gauge,nopercent
|
141
|
+
YLegend[nagios-k]: Checks
|
142
|
+
ShortLegend[nagios-k]:
|
143
|
+
LegendI[nagios-k]: Host Checks:
|
144
|
+
LegendO[nagios-k]: Service Checks:
|
145
|
+
|
146
|
+
|
147
|
+
# Cached Host/Service Checks
|
148
|
+
Target[nagios-l]: `/usr/local/nagios/bin/nagiostats --mrtg --data=NUMCACHEDHSTCHECKS5M,NUMCACHEDSVCCHECKS5M,PROGRUNTIME,NAGIOSVERPID`
|
149
|
+
MaxBytes[nagios-l]: 7000
|
150
|
+
Title[nagios-l]: Cached Host/Service Checks
|
151
|
+
PageTop[nagios-l]: <H1>Cached Host/Service Checks</H1>
|
152
|
+
Options[nagios-l]: growright,gauge,nopercent
|
153
|
+
YLegend[nagios-l]: Checks
|
154
|
+
ShortLegend[nagios-l]:
|
155
|
+
LegendI[nagios-l]: Host Checks:
|
156
|
+
LegendO[nagios-l]: Service Checks:
|
157
|
+
|
158
|
+
|
159
|
+
# External Commands
|
160
|
+
Target[nagios-m]: `/usr/local/nagios/bin/nagiostats --mrtg --data=NUMEXTCMDS5M,0,PROGRUNTIME,NAGIOSVERPID`
|
161
|
+
MaxBytes[nagios-m]: 7000
|
162
|
+
Title[nagios-m]: External Commands
|
163
|
+
PageTop[nagios-m]: <H1>External Commands</H1>
|
164
|
+
Options[nagios-m]: growright,gauge,nopercent
|
165
|
+
YLegend[nagios-m]: Commands
|
166
|
+
ShortLegend[nagios-m]:
|
167
|
+
LegendI[nagios-m]: Commands:
|
168
|
+
LegendO[nagios-m]:
|
169
|
+
|
170
|
+
|
171
|
+
# Parallel/Service Host Checks
|
172
|
+
Target[nagios-n]: `/usr/local/nagios/bin/nagiostats --mrtg --data=NUMPARHSTCHECKS5M,NUMSERHSTCHECKS5M,PROGRUNTIME,NAGIOSVERPID`
|
173
|
+
MaxBytes[nagios-n]: 7000
|
174
|
+
Title[nagios-n]: Parallel/Serial Host Checks
|
175
|
+
PageTop[nagios-n]: <H1>Parallel/Serial Host Checks</H1>
|
176
|
+
Options[nagios-n]: growright,gauge,nopercent
|
177
|
+
YLegend[nagios-n]: Checks
|
178
|
+
ShortLegend[nagios-n]:
|
179
|
+
LegendI[nagios-n]: Parallel Checks:
|
180
|
+
LegendO[nagios-n]: Serial Checks:
|