centostrano 0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (121) hide show
  1. data/CHANGELOG +215 -0
  2. data/COPYING +19 -0
  3. data/LICENSE +339 -0
  4. data/README +166 -0
  5. data/THANKS +5 -0
  6. data/bin/centify +137 -0
  7. data/docs/ANNOUNCE.deprec2 +47 -0
  8. data/docs/README.install +88 -0
  9. data/docs/README.nagios +28 -0
  10. data/docs/README.rails +20 -0
  11. data/docs/README.svn +31 -0
  12. data/docs/ROADMAP.txt +74 -0
  13. data/docs/deprec-1.x/deprec-1.x.quickstart +50 -0
  14. data/docs/deprec-1.x/notes.txt +12 -0
  15. data/docs/deprec_banner.gif +0 -0
  16. data/lib/centostrano.rb +9 -0
  17. data/lib/deprec/capistrano_extensions.rb +391 -0
  18. data/lib/deprec/centostrano.rb +46 -0
  19. data/lib/deprec/recipes/apache.rb +188 -0
  20. data/lib/deprec/recipes/canonical.rb +57 -0
  21. data/lib/deprec/recipes/deprec.rb +188 -0
  22. data/lib/deprec/recipes/deprecated.rb +71 -0
  23. data/lib/deprec/recipes/example.rb +115 -0
  24. data/lib/deprec/recipes/git.rb +106 -0
  25. data/lib/deprec/recipes/gitosis.rb +134 -0
  26. data/lib/deprec/recipes/logrotate.rb +54 -0
  27. data/lib/deprec/recipes/memcache.rb +53 -0
  28. data/lib/deprec/recipes/merb.rb +57 -0
  29. data/lib/deprec/recipes/mongrel.rb +220 -0
  30. data/lib/deprec/recipes/monit.rb +139 -0
  31. data/lib/deprec/recipes/mysql.rb +147 -0
  32. data/lib/deprec/recipes/nginx.rb +172 -0
  33. data/lib/deprec/recipes/postgresql.rb +132 -0
  34. data/lib/deprec/recipes/rails.rb +297 -0
  35. data/lib/deprec/recipes/ruby.rb +71 -0
  36. data/lib/deprec/recipes/sphinx.rb +89 -0
  37. data/lib/deprec/recipes/ssh.rb +93 -0
  38. data/lib/deprec/recipes/svn.rb +167 -0
  39. data/lib/deprec/recipes/users.rb +90 -0
  40. data/lib/deprec/recipes.rb +33 -0
  41. data/lib/deprec/templates/aoe/aoe-init +55 -0
  42. data/lib/deprec/templates/aoe/fence_aoemask +351 -0
  43. data/lib/deprec/templates/apache/httpd-vhost-app.conf.erb +144 -0
  44. data/lib/deprec/templates/apache/httpd.conf +465 -0
  45. data/lib/deprec/templates/apache/index.html.erb +37 -0
  46. data/lib/deprec/templates/apache/master.css +72 -0
  47. data/lib/deprec/templates/centos/repository.erb +6 -0
  48. data/lib/deprec/templates/coraid/aoe-init +55 -0
  49. data/lib/deprec/templates/deprec/caprc.erb +14 -0
  50. data/lib/deprec/templates/heartbeat/authkeys.erb +2 -0
  51. data/lib/deprec/templates/heartbeat/ha.cf.erb +15 -0
  52. data/lib/deprec/templates/heartbeat/haresources.erb +1 -0
  53. data/lib/deprec/templates/logrotate/logrotate.conf.erb +32 -0
  54. data/lib/deprec/templates/mongrel/logrotate.conf.erb +11 -0
  55. data/lib/deprec/templates/mongrel/logrotate.erb +0 -0
  56. data/lib/deprec/templates/mongrel/mongrel_cluster-init-script +54 -0
  57. data/lib/deprec/templates/mongrel/mongrel_cluster.logrotate.d +14 -0
  58. data/lib/deprec/templates/mongrel/mongrel_cluster.yml.erb +10 -0
  59. data/lib/deprec/templates/mongrel/monit.conf.erb +17 -0
  60. data/lib/deprec/templates/monit/monit-init-script +104 -0
  61. data/lib/deprec/templates/monit/monitrc.erb +227 -0
  62. data/lib/deprec/templates/monit/nothing +0 -0
  63. data/lib/deprec/templates/mysql/create_databases.sql +20 -0
  64. data/lib/deprec/templates/mysql/database.yml.prod +6 -0
  65. data/lib/deprec/templates/mysql/database.yml.stage +6 -0
  66. data/lib/deprec/templates/mysql/my.cnf.erb +140 -0
  67. data/lib/deprec/templates/mysql/sphinx.conf.prod +542 -0
  68. data/lib/deprec/templates/mysql/sphinx.conf.stage +542 -0
  69. data/lib/deprec/templates/nagios/cgi.cfg.erb +321 -0
  70. data/lib/deprec/templates/nagios/commands.cfg.erb +240 -0
  71. data/lib/deprec/templates/nagios/contacts.cfg.erb +57 -0
  72. data/lib/deprec/templates/nagios/hosts.cfg.erb +143 -0
  73. data/lib/deprec/templates/nagios/htpasswd.users +1 -0
  74. data/lib/deprec/templates/nagios/localhost.cfg.erb +157 -0
  75. data/lib/deprec/templates/nagios/nagios.cfg.erb +1274 -0
  76. data/lib/deprec/templates/nagios/nagios_apache_vhost.conf.erb +45 -0
  77. data/lib/deprec/templates/nagios/nrpe.cfg.erb +210 -0
  78. data/lib/deprec/templates/nagios/nrpe.xinetd.erb +16 -0
  79. data/lib/deprec/templates/nagios/resource.cfg.erb +34 -0
  80. data/lib/deprec/templates/nagios/services.cfg.erb +79 -0
  81. data/lib/deprec/templates/nagios/templates.cfg.erb +9 -0
  82. data/lib/deprec/templates/nagios/timeperiods.cfg.erb +94 -0
  83. data/lib/deprec/templates/network/hostname.erb +1 -0
  84. data/lib/deprec/templates/network/hosts.erb +2 -0
  85. data/lib/deprec/templates/network/interfaces.erb +22 -0
  86. data/lib/deprec/templates/nginx/logrotate.conf.erb +13 -0
  87. data/lib/deprec/templates/nginx/logrotate.erb +0 -0
  88. data/lib/deprec/templates/nginx/mime.types.erb +70 -0
  89. data/lib/deprec/templates/nginx/nginx-init-script +109 -0
  90. data/lib/deprec/templates/nginx/nginx.conf.erb +120 -0
  91. data/lib/deprec/templates/nginx/nginx.logrotate.d +12 -0
  92. data/lib/deprec/templates/nginx/nothing.conf +1 -0
  93. data/lib/deprec/templates/nginx/rails_nginx_vhost.conf.erb +41 -0
  94. data/lib/deprec/templates/ntp/ntp.conf.erb +42 -0
  95. data/lib/deprec/templates/postfix/aliases.erb +3 -0
  96. data/lib/deprec/templates/postfix/dynamicmaps.cf.erb +8 -0
  97. data/lib/deprec/templates/postfix/main.cf.erb +41 -0
  98. data/lib/deprec/templates/postfix/master.cf.erb +77 -0
  99. data/lib/deprec/templates/postgresql/pg_hba.conf.erb +76 -0
  100. data/lib/deprec/templates/sphinx/monit.conf.erb +5 -0
  101. data/lib/deprec/templates/ssh/ssh_config.erb +50 -0
  102. data/lib/deprec/templates/ssh/sshd_config.erb +78 -0
  103. data/lib/deprec/templates/subversion/svn.apache.vhost.erb +43 -0
  104. data/lib/deprec/templates/trac/apache_vhost.conf.erb +24 -0
  105. data/lib/deprec/templates/trac/trac.ini.erb +106 -0
  106. data/lib/deprec/templates/trac/trac_deprec.png +0 -0
  107. data/lib/deprec/templates/trac/tracd-init.erb +43 -0
  108. data/lib/deprec/templates/xen/15-disable-hwclock +40 -0
  109. data/lib/deprec/templates/xen/network-bridge-wrapper +3 -0
  110. data/lib/deprec/templates/xen/xen-tools.conf.erb +220 -0
  111. data/lib/deprec/templates/xen/xend-config.sxp.erb +195 -0
  112. data/lib/deprec/templates/xen/xend-init.erb +69 -0
  113. data/lib/deprec/templates/xen/xendomains.erb +137 -0
  114. data/lib/deprec/templates/xen/xm.tmpl.erb +85 -0
  115. data/lib/deprec_cmd_completion.sh +26 -0
  116. data/lib/vmbuilder_plugins/all.rb +20 -0
  117. data/lib/vmbuilder_plugins/apt.rb +93 -0
  118. data/lib/vmbuilder_plugins/emerge.rb +76 -0
  119. data/lib/vmbuilder_plugins/gem.rb +90 -0
  120. data/lib/vmbuilder_plugins/std.rb +203 -0
  121. metadata +207 -0
@@ -0,0 +1,57 @@
1
+ ###############################################################################
2
+ ###############################################################################
3
+ #
4
+ # CONTACT GROUPS
5
+ #
6
+ ###############################################################################
7
+ ###############################################################################
8
+
9
+ # We only have one contact in this simple configuration file, so there is
10
+ # no need to create more than one contact group.
11
+
12
+ define contactgroup{
13
+ contactgroup_name admins
14
+ alias Nagios Administrators
15
+ members nagiosadmin
16
+ }
17
+
18
+ ###############################################################################
19
+ ###############################################################################
20
+ #
21
+ # CONTACTS
22
+ #
23
+ ###############################################################################
24
+ ###############################################################################
25
+
26
+ define contact{
27
+ contact_name nagiosadmin ; Short name of user
28
+ use generic-contact (defined above)
29
+ alias Nagios Admin ; Full name of user
30
+
31
+ email root@localhost ; << CHANGE TO YOUR EMAIL ADDRESS
32
+ }
33
+
34
+ ###############################################################################
35
+ ###############################################################################
36
+ #
37
+ # CONTACT TEMPLATES
38
+ #
39
+ ###############################################################################
40
+ ###############################################################################
41
+
42
+ define contact{
43
+ name generic-contact
44
+ service_notification_period 24x7
45
+ host_notification_period 24x7
46
+ service_notification_options w,u,c,r,f,s
47
+ host_notification_options d,u,r,f,s
48
+ service_notification_commands notify-service-by-email
49
+ host_notification_commands notify-host-by-email
50
+ register 0
51
+ }
52
+
53
+
54
+
55
+
56
+
57
+
@@ -0,0 +1,143 @@
1
+ ###############################################################################
2
+ ###############################################################################
3
+ #
4
+ # HOST GROUPS
5
+ #
6
+ ###############################################################################
7
+ ###############################################################################
8
+
9
+ define hostgroup{
10
+ hostgroup_name servers
11
+ }
12
+
13
+ define hostgroup{
14
+ hostgroup_name app
15
+ }
16
+
17
+ define hostgroup{
18
+ hostgroup_name web
19
+ }
20
+
21
+ define hostgroup{
22
+ hostgroup_name routers
23
+ }
24
+
25
+ ###############################################################################
26
+ ###############################################################################
27
+ #
28
+ # HOSTS
29
+ #
30
+ ###############################################################################
31
+ ###############################################################################
32
+
33
+ define host {
34
+ use server
35
+ host_name app01
36
+ hostgroups servers,app
37
+ address app01
38
+ }
39
+
40
+ define host {
41
+ use server
42
+ host_name app02
43
+ hostgroups servers.app
44
+ address app02
45
+ }
46
+
47
+ ###############################################################################
48
+ ###############################################################################
49
+ #
50
+ # HOST TEMPLATES
51
+ #
52
+ ###############################################################################
53
+ ###############################################################################
54
+
55
+ # Generic host definition template - This is NOT a real host, just a template!
56
+
57
+ define host{
58
+ name generic-host; The name of this host template
59
+ notifications_enabled 1 ; Host notifications are enabled
60
+ event_handler_enabled 1 ; Host event handler is enabled
61
+ flap_detection_enabled 1 ; Flap detection is enabled
62
+ failure_prediction_enabled 1 ; Failure prediction is enabled
63
+ process_perf_data 1 ; Process performance data
64
+ retain_status_information 1 ; Retain status information across program restarts
65
+ retain_nonstatus_information 1 ; Retain non-status information across program restarts
66
+ notification_period 24x7 ; Send host notifications at any time
67
+ register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
68
+ }
69
+
70
+
71
+ # Linux host definition template - This is NOT a real host, just a template!
72
+
73
+ define host{
74
+ name linux-server ; The name of this host template
75
+ use generic-host ; This template inherits other values from the generic-host template
76
+ check_period 24x7 ; By default, Linux hosts are checked round the clock
77
+ check_interval 5 ; Actively check the host every 5 minutes
78
+ retry_interval 1 ; Schedule host check retries at 1 minute intervals
79
+ max_check_attempts 10 ; Check each Linux host 10 times (max)
80
+ check_command check-host-alive ; Default command to check Linux hosts
81
+ notification_period workhours ; Linux admins hate to be woken up, so we only notify during the day
82
+ ; Note that the notification_period variable is being overridden from
83
+ ; the value that is inherited from the generic-host template!
84
+ notification_interval 120 ; Resend notifications every 2 hours
85
+ notification_options d,u,r ; Only send notifications for specific host states
86
+ contact_groups admins ; Notifications get sent to the admins by default
87
+ register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
88
+ }
89
+
90
+
91
+
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
+ }
@@ -0,0 +1 @@
1
+ # access control for nagios web interface
@@ -0,0 +1,157 @@
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
+
@@ -0,0 +1,1274 @@
1
+ ##############################################################################
2
+ #
3
+ # NAGIOS.CFG - Sample Main Config File for Nagios 3.0b7
4
+ #
5
+ # Read the documentation for more information on this configuration
6
+ # file. I've provided some comments here, but things may not be so
7
+ # clear without further explanation.
8
+ #
9
+ # Last Modified: 11-06-2007
10
+ #
11
+ ##############################################################################
12
+
13
+
14
+ # LOG FILE
15
+ # This is the main log file where service and host events are logged
16
+ # for historical purposes. This should be the first option specified
17
+ # in the config file!!!
18
+
19
+ log_file=/usr/local/nagios/var/nagios.log
20
+
21
+
22
+
23
+ # OBJECT CONFIGURATION FILE(S)
24
+ # These are the object configuration files in which you define hosts,
25
+ # host groups, contacts, contact groups, services, etc.
26
+ # You can split your object definitions across several config files
27
+ # if you wish (as shown below), or keep them all in a single config file.
28
+
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
34
+
35
+ # Definitions for monitoring the local (Linux) host
36
+ #cfg_file=/usr/local/nagios/etc/objects/localhost.cfg
37
+
38
+ # Definitions for monitoring a Windows machine
39
+ #cfg_file=/usr/local/nagios/etc/objects/windows.cfg
40
+
41
+ # Definitions for monitoring a router/switch
42
+ #cfg_file=/usr/local/nagios/etc/objects/switch.cfg
43
+
44
+ # Definitions for monitoring a network printer
45
+ #cfg_file=/usr/local/nagios/etc/objects/printer.cfg
46
+
47
+
48
+ # You can also tell Nagios to process all config files (with a .cfg
49
+ # extension) in a particular directory by using the cfg_dir
50
+ # directive as shown below:
51
+
52
+ cfg_dir=/usr/local/nagios/etc/objects
53
+
54
+
55
+ #cfg_dir=/usr/local/nagios/etc/servers
56
+ #cfg_dir=/usr/local/nagios/etc/printers
57
+ #cfg_dir=/usr/local/nagios/etc/switches
58
+ #cfg_dir=/usr/local/nagios/etc/routers
59
+
60
+
61
+
62
+
63
+ # OBJECT CACHE FILE
64
+ # This option determines where object definitions are cached when
65
+ # Nagios starts/restarts. The CGIs read object definitions from
66
+ # this cache file (rather than looking at the object config files
67
+ # directly) in order to prevent inconsistencies that can occur
68
+ # when the config files are modified after Nagios starts.
69
+
70
+ object_cache_file=/usr/local/nagios/var/objects.cache
71
+
72
+
73
+
74
+ # PRE-CACHED OBJECT FILE
75
+ # This options determines the location of the precached object file.
76
+ # If you run Nagios with the -p command line option, it will preprocess
77
+ # your object configuration file(s) and write the cached config to this
78
+ # file. You can then start Nagios with the -u option to have it read
79
+ # object definitions from this precached file, rather than the standard
80
+ # object configuration files (see the cfg_file and cfg_dir options above).
81
+ # Using a precached object file can speed up the time needed to (re)start
82
+ # the Nagios process if you've got a large and/or complex configuration.
83
+ # Read the documentation section on optimizing Nagios to find our more
84
+ # about how this feature works.
85
+
86
+ precached_object_file=/usr/local/nagios/var/objects.precache
87
+
88
+
89
+
90
+ # RESOURCE FILE
91
+ # This is an optional resource file that contains $USERx$ macro
92
+ # definitions. Multiple resource files can be specified by using
93
+ # multiple resource_file definitions. The CGIs will not attempt to
94
+ # read the contents of resource files, so information that is
95
+ # considered to be sensitive (usernames, passwords, etc) can be
96
+ # defined as macros in this file and restrictive permissions (600)
97
+ # can be placed on this file.
98
+
99
+ resource_file=/usr/local/nagios/etc/resource.cfg
100
+
101
+
102
+
103
+ # STATUS FILE
104
+ # This is where the current status of all monitored services and
105
+ # hosts is stored. Its contents are read and processed by the CGIs.
106
+ # The contents of the status file are deleted every time Nagios
107
+ # restarts.
108
+
109
+ status_file=/usr/local/nagios/var/status.dat
110
+
111
+
112
+
113
+ # STATUS FILE UPDATE INTERVAL
114
+ # Combined with the aggregate_status_updates option,
115
+ # this option determines the frequency (in seconds) that
116
+ # Nagios will periodically dump program, host, and
117
+ # service status data.
118
+
119
+ status_update_interval=10
120
+
121
+
122
+
123
+ # NAGIOS USER
124
+ # This determines the effective user that Nagios should run as.
125
+ # You can either supply a username or a UID.
126
+
127
+ nagios_user=nagios
128
+
129
+
130
+
131
+ # NAGIOS GROUP
132
+ # This determines the effective group that Nagios should run as.
133
+ # You can either supply a group name or a GID.
134
+
135
+ nagios_group=nagios
136
+
137
+
138
+
139
+ # EXTERNAL COMMAND OPTION
140
+ # This option allows you to specify whether or not Nagios should check
141
+ # for external commands (in the command file defined below). By default
142
+ # Nagios will *not* check for external commands, just to be on the
143
+ # cautious side. If you want to be able to use the CGI command interface
144
+ # you will have to enable this.
145
+ # Values: 0 = disable commands, 1 = enable commands
146
+
147
+ check_external_commands=1
148
+
149
+
150
+
151
+ # EXTERNAL COMMAND CHECK INTERVAL
152
+ # This is the interval at which Nagios should check for external commands.
153
+ # This value works of the interval_length you specify later. If you leave
154
+ # that at its default value of 60 (seconds), a value of 1 here will cause
155
+ # Nagios to check for external commands every minute. If you specify a
156
+ # number followed by an "s" (i.e. 15s), this will be interpreted to mean
157
+ # actual seconds rather than a multiple of the interval_length variable.
158
+ # Note: In addition to reading the external command file at regularly
159
+ # scheduled intervals, Nagios will also check for external commands after
160
+ # event handlers are executed.
161
+ # NOTE: Setting this value to -1 causes Nagios to check the external
162
+ # command file as often as possible.
163
+
164
+ #command_check_interval=15s
165
+ command_check_interval=-1
166
+
167
+
168
+
169
+ # EXTERNAL COMMAND FILE
170
+ # This is the file that Nagios checks for external command requests.
171
+ # It is also where the command CGI will write commands that are submitted
172
+ # by users, so it must be writeable by the user that the web server
173
+ # is running as (usually 'nobody'). Permissions should be set at the
174
+ # directory level instead of on the file, as the file is deleted every
175
+ # time its contents are processed.
176
+
177
+ command_file=/usr/local/nagios/var/rw/nagios.cmd
178
+
179
+
180
+
181
+ # EXTERNAL COMMAND BUFFER SLOTS
182
+ # This settings is used to tweak the number of items or "slots" that
183
+ # the Nagios daemon should allocate to the buffer that holds incoming
184
+ # external commands before they are processed. As external commands
185
+ # are processed by the daemon, they are removed from the buffer.
186
+
187
+ external_command_buffer_slots=4096
188
+
189
+
190
+
191
+ # LOCK FILE
192
+ # This is the lockfile that Nagios will use to store its PID number
193
+ # in when it is running in daemon mode.
194
+
195
+ lock_file=/usr/local/nagios/var/nagios.lock
196
+
197
+
198
+
199
+ # TEMP FILE
200
+ # This is a temporary file that is used as scratch space when Nagios
201
+ # updates the status log, cleans the comment file, etc. This file
202
+ # is created, used, and deleted throughout the time that Nagios is
203
+ # running.
204
+
205
+ temp_file=/usr/local/nagios/var/nagios.tmp
206
+
207
+
208
+
209
+ # TEMP PATH
210
+ # This is path where Nagios can create temp files for service and
211
+ # host check results, etc.
212
+
213
+ temp_path=/tmp
214
+
215
+
216
+
217
+ # EVENT BROKER OPTIONS
218
+ # Controls what (if any) data gets sent to the event broker.
219
+ # Values: 0 = Broker nothing
220
+ # -1 = Broker everything
221
+ # <other> = See documentation
222
+
223
+ event_broker_options=-1
224
+
225
+
226
+
227
+ # EVENT BROKER MODULE(S)
228
+ # This directive is used to specify an event broker module that should
229
+ # by loaded by Nagios at startup. Use multiple directives if you want
230
+ # to load more than one module. Arguments that should be passed to
231
+ # the module at startup are seperated from the module path by a space.
232
+ #
233
+ #!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
234
+ # WARNING !!! WARNING !!! WARNING !!! WARNING !!! WARNING !!! WARNING
235
+ #!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
236
+ #
237
+ # Do NOT overwrite modules while they are being used by Nagios or Nagios
238
+ # will crash in a fiery display of SEGFAULT glory. This is a bug/limitation
239
+ # either in dlopen(), the kernel, and/or the filesystem. And maybe Nagios...
240
+ #
241
+ # The correct/safe way of updating a module is by using one of these methods:
242
+ # 1. Shutdown Nagios, replace the module file, restart Nagios
243
+ # 2. Delete the original module file, move the new module file into place, restart Nagios
244
+ #
245
+ # Example:
246
+ #
247
+ # broker_module=<modulepath> [moduleargs]
248
+
249
+ #broker_module=/somewhere/module1.o
250
+ #broker_module=/somewhere/module2.o arg1 arg2=3 debug=0
251
+
252
+
253
+
254
+ # LOG ROTATION METHOD
255
+ # This is the log rotation method that Nagios should use to rotate
256
+ # the main log file. Values are as follows..
257
+ # n = None - don't rotate the log
258
+ # h = Hourly rotation (top of the hour)
259
+ # d = Daily rotation (midnight every day)
260
+ # w = Weekly rotation (midnight on Saturday evening)
261
+ # m = Monthly rotation (midnight last day of month)
262
+
263
+ log_rotation_method=d
264
+
265
+
266
+
267
+ # LOG ARCHIVE PATH
268
+ # This is the directory where archived (rotated) log files should be
269
+ # placed (assuming you've chosen to do log rotation).
270
+
271
+ log_archive_path=/usr/local/nagios/var/archives
272
+
273
+
274
+
275
+ # LOGGING OPTIONS
276
+ # If you want messages logged to the syslog facility, as well as the
277
+ # Nagios log file set this option to 1. If not, set it to 0.
278
+
279
+ use_syslog=1
280
+
281
+
282
+
283
+ # NOTIFICATION LOGGING OPTION
284
+ # If you don't want notifications to be logged, set this value to 0.
285
+ # If notifications should be logged, set the value to 1.
286
+
287
+ log_notifications=1
288
+
289
+
290
+
291
+ # SERVICE RETRY LOGGING OPTION
292
+ # If you don't want service check retries to be logged, set this value
293
+ # to 0. If retries should be logged, set the value to 1.
294
+
295
+ log_service_retries=1
296
+
297
+
298
+
299
+ # HOST RETRY LOGGING OPTION
300
+ # If you don't want host check retries to be logged, set this value to
301
+ # 0. If retries should be logged, set the value to 1.
302
+
303
+ log_host_retries=1
304
+
305
+
306
+
307
+ # EVENT HANDLER LOGGING OPTION
308
+ # If you don't want host and service event handlers to be logged, set
309
+ # this value to 0. If event handlers should be logged, set the value
310
+ # to 1.
311
+
312
+ log_event_handlers=1
313
+
314
+
315
+
316
+ # INITIAL STATES LOGGING OPTION
317
+ # If you want Nagios to log all initial host and service states to
318
+ # the main log file (the first time the service or host is checked)
319
+ # you can enable this option by setting this value to 1. If you
320
+ # are not using an external application that does long term state
321
+ # statistics reporting, you do not need to enable this option. In
322
+ # this case, set the value to 0.
323
+
324
+ log_initial_states=0
325
+
326
+
327
+
328
+ # EXTERNAL COMMANDS LOGGING OPTION
329
+ # If you don't want Nagios to log external commands, set this value
330
+ # to 0. If external commands should be logged, set this value to 1.
331
+ # Note: This option does not include logging of passive service
332
+ # checks - see the option below for controlling whether or not
333
+ # passive checks are logged.
334
+
335
+ log_external_commands=1
336
+
337
+
338
+
339
+ # PASSIVE CHECKS LOGGING OPTION
340
+ # If you don't want Nagios to log passive host and service checks, set
341
+ # this value to 0. If passive checks should be logged, set
342
+ # this value to 1.
343
+
344
+ log_passive_checks=1
345
+
346
+
347
+
348
+ # GLOBAL HOST AND SERVICE EVENT HANDLERS
349
+ # These options allow you to specify a host and service event handler
350
+ # command that is to be run for every host or service state change.
351
+ # The global event handler is executed immediately prior to the event
352
+ # handler that you have optionally specified in each host or
353
+ # service definition. The command argument is the short name of a
354
+ # command definition that you define in your host configuration file.
355
+ # Read the HTML docs for more information.
356
+
357
+ #global_host_event_handler=somecommand
358
+ #global_service_event_handler=somecommand
359
+
360
+
361
+
362
+ # SERVICE INTER-CHECK DELAY METHOD
363
+ # This is the method that Nagios should use when initially
364
+ # "spreading out" service checks when it starts monitoring. The
365
+ # default is to use smart delay calculation, which will try to
366
+ # space all service checks out evenly to minimize CPU load.
367
+ # Using the dumb setting will cause all checks to be scheduled
368
+ # at the same time (with no delay between them)! This is not a
369
+ # good thing for production, but is useful when testing the
370
+ # parallelization functionality.
371
+ # n = None - don't use any delay between checks
372
+ # d = Use a "dumb" delay of 1 second between checks
373
+ # s = Use "smart" inter-check delay calculation
374
+ # x.xx = Use an inter-check delay of x.xx seconds
375
+
376
+ service_inter_check_delay_method=s
377
+
378
+
379
+
380
+ # MAXIMUM SERVICE CHECK SPREAD
381
+ # This variable determines the timeframe (in minutes) from the
382
+ # program start time that an initial check of all services should
383
+ # be completed. Default is 30 minutes.
384
+
385
+ max_service_check_spread=30
386
+
387
+
388
+
389
+ # SERVICE CHECK INTERLEAVE FACTOR
390
+ # This variable determines how service checks are interleaved.
391
+ # Interleaving the service checks allows for a more even
392
+ # distribution of service checks and reduced load on remote
393
+ # hosts. Setting this value to 1 is equivalent to how versions
394
+ # of Nagios previous to 0.0.5 did service checks. Set this
395
+ # value to s (smart) for automatic calculation of the interleave
396
+ # factor unless you have a specific reason to change it.
397
+ # s = Use "smart" interleave factor calculation
398
+ # x = Use an interleave factor of x, where x is a
399
+ # number greater than or equal to 1.
400
+
401
+ service_interleave_factor=s
402
+
403
+
404
+
405
+ # HOST INTER-CHECK DELAY METHOD
406
+ # This is the method that Nagios should use when initially
407
+ # "spreading out" host checks when it starts monitoring. The
408
+ # default is to use smart delay calculation, which will try to
409
+ # space all host checks out evenly to minimize CPU load.
410
+ # Using the dumb setting will cause all checks to be scheduled
411
+ # at the same time (with no delay between them)!
412
+ # n = None - don't use any delay between checks
413
+ # d = Use a "dumb" delay of 1 second between checks
414
+ # s = Use "smart" inter-check delay calculation
415
+ # x.xx = Use an inter-check delay of x.xx seconds
416
+
417
+ host_inter_check_delay_method=s
418
+
419
+
420
+
421
+ # MAXIMUM HOST CHECK SPREAD
422
+ # This variable determines the timeframe (in minutes) from the
423
+ # program start time that an initial check of all hosts should
424
+ # be completed. Default is 30 minutes.
425
+
426
+ max_host_check_spread=30
427
+
428
+
429
+
430
+ # MAXIMUM CONCURRENT SERVICE CHECKS
431
+ # This option allows you to specify the maximum number of
432
+ # service checks that can be run in parallel at any given time.
433
+ # Specifying a value of 1 for this variable essentially prevents
434
+ # any service checks from being parallelized. A value of 0
435
+ # will not restrict the number of concurrent checks that are
436
+ # being executed.
437
+
438
+ max_concurrent_checks=0
439
+
440
+
441
+
442
+ # HOST AND SERVICE CHECK REAPER FREQUENCY
443
+ # This is the frequency (in seconds!) that Nagios will process
444
+ # the results of host and service checks.
445
+
446
+ check_result_reaper_frequency=10
447
+
448
+
449
+
450
+
451
+ # MAX CHECK RESULT REAPER TIME
452
+ # This is the max amount of time (in seconds) that a single
453
+ # check result reaper event will be allowed to run before
454
+ # returning control back to Nagios so it can perform other
455
+ # duties.
456
+
457
+ max_check_result_reaper_time=30
458
+
459
+
460
+
461
+
462
+ # CHECK RESULT PATH
463
+ # This is directory where Nagios stores the results of host and
464
+ # service checks that have not yet been processed.
465
+ #
466
+ # Note: Make sure that only one instance of Nagios has access
467
+ # to this directory!
468
+
469
+ check_result_path=/usr/local/nagios/var/spool/checkresults
470
+
471
+
472
+
473
+
474
+ # MAX CHECK RESULT FILE AGE
475
+ # This option determines the maximum age (in seconds) which check
476
+ # result files are considered to be valid. Files older than this
477
+ # threshold will be mercilessly deleted without further processing.
478
+
479
+ max_check_result_file_age=3600
480
+
481
+
482
+
483
+
484
+ # CACHED HOST CHECK HORIZON
485
+ # This option determines the maximum amount of time (in seconds)
486
+ # that the state of a previous host check is considered current.
487
+ # Cached host states (from host checks that were performed more
488
+ # recently that the timeframe specified by this value) can immensely
489
+ # improve performance in regards to the host check logic.
490
+ # Too high of a value for this option may result in inaccurate host
491
+ # states being used by Nagios, while a lower value may result in a
492
+ # performance hit for host checks. Use a value of 0 to disable host
493
+ # check caching.
494
+
495
+ cached_host_check_horizon=15
496
+
497
+
498
+
499
+ # CACHED SERVICE CHECK HORIZON
500
+ # This option determines the maximum amount of time (in seconds)
501
+ # that the state of a previous service check is considered current.
502
+ # Cached service states (from service checks that were performed more
503
+ # recently that the timeframe specified by this value) can immensely
504
+ # improve performance in regards to predictive dependency checks.
505
+ # Use a value of 0 to disable service check caching.
506
+
507
+ cached_service_check_horizon=15
508
+
509
+
510
+
511
+ # ENABLE PREDICTIVE HOST DEPENDENCY CHECKS
512
+ # This option determines whether or not Nagios will attempt to execute
513
+ # checks of hosts when it predicts that future dependency logic test
514
+ # may be needed. These predictive checks can help ensure that your
515
+ # host dependency logic works well.
516
+ # Values:
517
+ # 0 = Disable predictive checks
518
+ # 1 = Enable predictive checks (default)
519
+
520
+ enable_predictive_host_dependency_checks=1
521
+
522
+
523
+
524
+ # ENABLE PREDICTIVE SERVICE DEPENDENCY CHECKS
525
+ # This option determines whether or not Nagios will attempt to execute
526
+ # checks of service when it predicts that future dependency logic test
527
+ # may be needed. These predictive checks can help ensure that your
528
+ # service dependency logic works well.
529
+ # Values:
530
+ # 0 = Disable predictive checks
531
+ # 1 = Enable predictive checks (default)
532
+
533
+ enable_predictive_service_dependency_checks=1
534
+
535
+
536
+
537
+ # AUTO-RESCHEDULING OPTION
538
+ # This option determines whether or not Nagios will attempt to
539
+ # automatically reschedule active host and service checks to
540
+ # "smooth" them out over time. This can help balance the load on
541
+ # the monitoring server.
542
+ # WARNING: THIS IS AN EXPERIMENTAL FEATURE - IT CAN DEGRADE
543
+ # PERFORMANCE, RATHER THAN INCREASE IT, IF USED IMPROPERLY
544
+
545
+ auto_reschedule_checks=0
546
+
547
+
548
+
549
+ # AUTO-RESCHEDULING INTERVAL
550
+ # This option determines how often (in seconds) Nagios will
551
+ # attempt to automatically reschedule checks. This option only
552
+ # has an effect if the auto_reschedule_checks option is enabled.
553
+ # Default is 30 seconds.
554
+ # WARNING: THIS IS AN EXPERIMENTAL FEATURE - IT CAN DEGRADE
555
+ # PERFORMANCE, RATHER THAN INCREASE IT, IF USED IMPROPERLY
556
+
557
+ auto_rescheduling_interval=30
558
+
559
+
560
+
561
+ # AUTO-RESCHEDULING WINDOW
562
+ # This option determines the "window" of time (in seconds) that
563
+ # Nagios will look at when automatically rescheduling checks.
564
+ # Only host and service checks that occur in the next X seconds
565
+ # (determined by this variable) will be rescheduled. This option
566
+ # only has an effect if the auto_reschedule_checks option is
567
+ # enabled. Default is 180 seconds (3 minutes).
568
+ # WARNING: THIS IS AN EXPERIMENTAL FEATURE - IT CAN DEGRADE
569
+ # PERFORMANCE, RATHER THAN INCREASE IT, IF USED IMPROPERLY
570
+
571
+ auto_rescheduling_window=180
572
+
573
+
574
+
575
+ # SLEEP TIME
576
+ # This is the number of seconds to sleep between checking for system
577
+ # events and service checks that need to be run.
578
+
579
+ sleep_time=0.25
580
+
581
+
582
+
583
+ # TIMEOUT VALUES
584
+ # These options control how much time Nagios will allow various
585
+ # types of commands to execute before killing them off. Options
586
+ # are available for controlling maximum time allotted for
587
+ # service checks, host checks, event handlers, notifications, the
588
+ # ocsp command, and performance data commands. All values are in
589
+ # seconds.
590
+
591
+ service_check_timeout=60
592
+ host_check_timeout=30
593
+ event_handler_timeout=30
594
+ notification_timeout=30
595
+ ocsp_timeout=5
596
+ perfdata_timeout=5
597
+
598
+
599
+
600
+ # RETAIN STATE INFORMATION
601
+ # This setting determines whether or not Nagios will save state
602
+ # information for services and hosts before it shuts down. Upon
603
+ # startup Nagios will reload all saved service and host state
604
+ # information before starting to monitor. This is useful for
605
+ # maintaining long-term data on state statistics, etc, but will
606
+ # slow Nagios down a bit when it (re)starts. Since its only
607
+ # a one-time penalty, I think its well worth the additional
608
+ # startup delay.
609
+
610
+ retain_state_information=1
611
+
612
+
613
+
614
+ # STATE RETENTION FILE
615
+ # This is the file that Nagios should use to store host and
616
+ # service state information before it shuts down. The state
617
+ # information in this file is also read immediately prior to
618
+ # starting to monitor the network when Nagios is restarted.
619
+ # This file is used only if the preserve_state_information
620
+ # variable is set to 1.
621
+
622
+ state_retention_file=/usr/local/nagios/var/retention.dat
623
+
624
+
625
+
626
+ # RETENTION DATA UPDATE INTERVAL
627
+ # This setting determines how often (in minutes) that Nagios
628
+ # will automatically save retention data during normal operation.
629
+ # If you set this value to 0, Nagios will not save retention
630
+ # data at regular interval, but it will still save retention
631
+ # data before shutting down or restarting. If you have disabled
632
+ # state retention, this option has no effect.
633
+
634
+ retention_update_interval=60
635
+
636
+
637
+
638
+ # USE RETAINED PROGRAM STATE
639
+ # This setting determines whether or not Nagios will set
640
+ # program status variables based on the values saved in the
641
+ # retention file. If you want to use retained program status
642
+ # information, set this value to 1. If not, set this value
643
+ # to 0.
644
+
645
+ use_retained_program_state=1
646
+
647
+
648
+
649
+ # USE RETAINED SCHEDULING INFO
650
+ # This setting determines whether or not Nagios will retain
651
+ # the scheduling info (next check time) for hosts and services
652
+ # based on the values saved in the retention file. If you
653
+ # If you want to use retained scheduling info, set this
654
+ # value to 1. If not, set this value to 0.
655
+
656
+ use_retained_scheduling_info=1
657
+
658
+
659
+
660
+ # RETAINED ATTRIBUTE MASKS (ADVANCED FEATURE)
661
+ # The following variables are used to specify specific host and
662
+ # service attributes that should *not* be retained by Nagios during
663
+ # program restarts.
664
+ #
665
+ # The values of the masks are bitwise ANDs of values specified
666
+ # by the "MODATTR_" definitions found in include/common.h.
667
+ # For example, if you do not want the current enabled/disabled state
668
+ # of flap detection and event handlers for hosts to be retained, you
669
+ # would use a value of 24 for the host attribute mask...
670
+ # MODATTR_EVENT_HANDLER_ENABLED (8) + MODATTR_FLAP_DETECTION_ENABLED (16) = 24
671
+
672
+ # This mask determines what host attributes are not retained
673
+ retained_host_attribute_mask=0
674
+
675
+ # This mask determines what service attributes are not retained
676
+ retained_service_attribute_mask=0
677
+
678
+ # These two masks determine what process attributes are not retained.
679
+ # There are two masks, because some process attributes have host and service
680
+ # options. For example, you can disable active host checks, but leave active
681
+ # service checks enabled.
682
+ retained_process_host_attribute_mask=0
683
+ retained_process_service_attribute_mask=0
684
+
685
+ # These two masks determine what contact attributes are not retained.
686
+ # There are two masks, because some contact attributes have host and
687
+ # service options. For example, you can disable host notifications for
688
+ # a contact, but leave service notifications enabled for them.
689
+ retained_contact_host_attribute_mask=0
690
+ retained_contact_service_attribute_mask=0
691
+
692
+
693
+
694
+ # INTERVAL LENGTH
695
+ # This is the seconds per unit interval as used in the
696
+ # host/contact/service configuration files. Setting this to 60 means
697
+ # that each interval is one minute long (60 seconds). Other settings
698
+ # have not been tested much, so your mileage is likely to vary...
699
+
700
+ interval_length=60
701
+
702
+
703
+
704
+ # AGGRESSIVE HOST CHECKING OPTION
705
+ # If you don't want to turn on aggressive host checking features, set
706
+ # this value to 0 (the default). Otherwise set this value to 1 to
707
+ # enable the aggressive check option. Read the docs for more info
708
+ # on what aggressive host check is or check out the source code in
709
+ # base/checks.c
710
+
711
+ use_aggressive_host_checking=0
712
+
713
+
714
+
715
+ # SERVICE CHECK EXECUTION OPTION
716
+ # This determines whether or not Nagios will actively execute
717
+ # service checks when it initially starts. If this option is
718
+ # disabled, checks are not actively made, but Nagios can still
719
+ # receive and process passive check results that come in. Unless
720
+ # you're implementing redundant hosts or have a special need for
721
+ # disabling the execution of service checks, leave this enabled!
722
+ # Values: 1 = enable checks, 0 = disable checks
723
+
724
+ execute_service_checks=1
725
+
726
+
727
+
728
+ # PASSIVE SERVICE CHECK ACCEPTANCE OPTION
729
+ # This determines whether or not Nagios will accept passive
730
+ # service checks results when it initially (re)starts.
731
+ # Values: 1 = accept passive checks, 0 = reject passive checks
732
+
733
+ accept_passive_service_checks=1
734
+
735
+
736
+
737
+ # HOST CHECK EXECUTION OPTION
738
+ # This determines whether or not Nagios will actively execute
739
+ # host checks when it initially starts. If this option is
740
+ # disabled, checks are not actively made, but Nagios can still
741
+ # receive and process passive check results that come in. Unless
742
+ # you're implementing redundant hosts or have a special need for
743
+ # disabling the execution of host checks, leave this enabled!
744
+ # Values: 1 = enable checks, 0 = disable checks
745
+
746
+ execute_host_checks=1
747
+
748
+
749
+
750
+ # PASSIVE HOST CHECK ACCEPTANCE OPTION
751
+ # This determines whether or not Nagios will accept passive
752
+ # host checks results when it initially (re)starts.
753
+ # Values: 1 = accept passive checks, 0 = reject passive checks
754
+
755
+ accept_passive_host_checks=1
756
+
757
+
758
+
759
+ # NOTIFICATIONS OPTION
760
+ # This determines whether or not Nagios will sent out any host or
761
+ # service notifications when it is initially (re)started.
762
+ # Values: 1 = enable notifications, 0 = disable notifications
763
+
764
+ enable_notifications=1
765
+
766
+
767
+
768
+ # EVENT HANDLER USE OPTION
769
+ # This determines whether or not Nagios will run any host or
770
+ # service event handlers when it is initially (re)started. Unless
771
+ # you're implementing redundant hosts, leave this option enabled.
772
+ # Values: 1 = enable event handlers, 0 = disable event handlers
773
+
774
+ enable_event_handlers=1
775
+
776
+
777
+
778
+ # PROCESS PERFORMANCE DATA OPTION
779
+ # This determines whether or not Nagios will process performance
780
+ # data returned from service and host checks. If this option is
781
+ # enabled, host performance data will be processed using the
782
+ # host_perfdata_command (defined below) and service performance
783
+ # data will be processed using the service_perfdata_command (also
784
+ # defined below). Read the HTML docs for more information on
785
+ # performance data.
786
+ # Values: 1 = process performance data, 0 = do not process performance data
787
+
788
+ process_performance_data=0
789
+
790
+
791
+
792
+ # HOST AND SERVICE PERFORMANCE DATA PROCESSING COMMANDS
793
+ # These commands are run after every host and service check is
794
+ # performed. These commands are executed only if the
795
+ # enable_performance_data option (above) is set to 1. The command
796
+ # argument is the short name of a command definition that you
797
+ # define in your host configuration file. Read the HTML docs for
798
+ # more information on performance data.
799
+
800
+ #host_perfdata_command=process-host-perfdata
801
+ #service_perfdata_command=process-service-perfdata
802
+
803
+
804
+
805
+ # HOST AND SERVICE PERFORMANCE DATA FILES
806
+ # These files are used to store host and service performance data.
807
+ # Performance data is only written to these files if the
808
+ # enable_performance_data option (above) is set to 1.
809
+
810
+ #host_perfdata_file=/tmp/host-perfdata
811
+ #service_perfdata_file=/tmp/service-perfdata
812
+
813
+
814
+
815
+ # HOST AND SERVICE PERFORMANCE DATA FILE TEMPLATES
816
+ # These options determine what data is written (and how) to the
817
+ # performance data files. The templates may contain macros, special
818
+ # characters (\t for tab, \r for carriage return, \n for newline)
819
+ # and plain text. A newline is automatically added after each write
820
+ # to the performance data file. Some examples of what you can do are
821
+ # shown below.
822
+
823
+ #host_perfdata_file_template=[HOSTPERFDATA]\t$TIMET$\t$HOSTNAME$\t$HOSTEXECUTIONTIME$\t$HOSTOUTPUT$\t$HOSTPERFDATA$
824
+ #service_perfdata_file_template=[SERVICEPERFDATA]\t$TIMET$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICEEXECUTIONTIME$\t$SERVICELATENCY$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$
825
+
826
+
827
+
828
+ # HOST AND SERVICE PERFORMANCE DATA FILE MODES
829
+ # This option determines whether or not the host and service
830
+ # performance data files are opened in write ("w") or append ("a")
831
+ # mode. If you want to use named pipes, you should use the special
832
+ # pipe ("p") mode which avoid blocking at startup, otherwise you will
833
+ # likely want the defult append ("a") mode.
834
+
835
+ #host_perfdata_file_mode=a
836
+ #service_perfdata_file_mode=a
837
+
838
+
839
+
840
+ # HOST AND SERVICE PERFORMANCE DATA FILE PROCESSING INTERVAL
841
+ # These options determine how often (in seconds) the host and service
842
+ # performance data files are processed using the commands defined
843
+ # below. A value of 0 indicates the files should not be periodically
844
+ # processed.
845
+
846
+ #host_perfdata_file_processing_interval=0
847
+ #service_perfdata_file_processing_interval=0
848
+
849
+
850
+
851
+ # HOST AND SERVICE PERFORMANCE DATA FILE PROCESSING COMMANDS
852
+ # These commands are used to periodically process the host and
853
+ # service performance data files. The interval at which the
854
+ # processing occurs is determined by the options above.
855
+
856
+ #host_perfdata_file_processing_command=process-host-perfdata-file
857
+ #service_perfdata_file_processing_command=process-service-perfdata-file
858
+
859
+
860
+
861
+ # OBSESS OVER SERVICE CHECKS OPTION
862
+ # This determines whether or not Nagios will obsess over service
863
+ # checks and run the ocsp_command defined below. Unless you're
864
+ # planning on implementing distributed monitoring, do not enable
865
+ # this option. Read the HTML docs for more information on
866
+ # implementing distributed monitoring.
867
+ # Values: 1 = obsess over services, 0 = do not obsess (default)
868
+
869
+ obsess_over_services=0
870
+
871
+
872
+
873
+ # OBSESSIVE COMPULSIVE SERVICE PROCESSOR COMMAND
874
+ # This is the command that is run for every service check that is
875
+ # processed by Nagios. This command is executed only if the
876
+ # obsess_over_services option (above) is set to 1. The command
877
+ # argument is the short name of a command definition that you
878
+ # define in your host configuration file. Read the HTML docs for
879
+ # more information on implementing distributed monitoring.
880
+
881
+ #ocsp_command=somecommand
882
+
883
+
884
+
885
+ # OBSESS OVER HOST CHECKS OPTION
886
+ # This determines whether or not Nagios will obsess over host
887
+ # checks and run the ochp_command defined below. Unless you're
888
+ # planning on implementing distributed monitoring, do not enable
889
+ # this option. Read the HTML docs for more information on
890
+ # implementing distributed monitoring.
891
+ # Values: 1 = obsess over hosts, 0 = do not obsess (default)
892
+
893
+ obsess_over_hosts=0
894
+
895
+
896
+
897
+ # OBSESSIVE COMPULSIVE HOST PROCESSOR COMMAND
898
+ # This is the command that is run for every host check that is
899
+ # processed by Nagios. This command is executed only if the
900
+ # obsess_over_hosts option (above) is set to 1. The command
901
+ # argument is the short name of a command definition that you
902
+ # define in your host configuration file. Read the HTML docs for
903
+ # more information on implementing distributed monitoring.
904
+
905
+ #ochp_command=somecommand
906
+
907
+
908
+
909
+ # TRANSLATE PASSIVE HOST CHECKS OPTION
910
+ # This determines whether or not Nagios will translate
911
+ # DOWN/UNREACHABLE passive host check results into their proper
912
+ # state for this instance of Nagios. This option is useful
913
+ # if you have distributed or failover monitoring setup. In
914
+ # these cases your other Nagios servers probably have a different
915
+ # "view" of the network, with regards to the parent/child relationship
916
+ # of hosts. If a distributed monitoring server thinks a host
917
+ # is DOWN, it may actually be UNREACHABLE from the point of
918
+ # this Nagios instance. Enabling this option will tell Nagios
919
+ # to translate any DOWN or UNREACHABLE host states it receives
920
+ # passively into the correct state from the view of this server.
921
+ # Values: 1 = perform translation, 0 = do not translate (default)
922
+
923
+ translate_passive_host_checks=0
924
+
925
+
926
+
927
+ # PASSIVE HOST CHECKS ARE SOFT OPTION
928
+ # This determines whether or not Nagios will treat passive host
929
+ # checks as being HARD or SOFT. By default, a passive host check
930
+ # result will put a host into a HARD state type. This can be changed
931
+ # by enabling this option.
932
+ # Values: 0 = passive checks are HARD, 1 = passive checks are SOFT
933
+
934
+ passive_host_checks_are_soft=0
935
+
936
+
937
+
938
+ # ORPHANED HOST/SERVICE CHECK OPTIONS
939
+ # These options determine whether or not Nagios will periodically
940
+ # check for orphaned host service checks. Since service checks are
941
+ # not rescheduled until the results of their previous execution
942
+ # instance are processed, there exists a possibility that some
943
+ # checks may never get rescheduled. A similar situation exists for
944
+ # host checks, although the exact scheduling details differ a bit
945
+ # from service checks. Orphaned checks seem to be a rare
946
+ # problem and should not happen under normal circumstances.
947
+ # If you have problems with service checks never getting
948
+ # rescheduled, make sure you have orphaned service checks enabled.
949
+ # Values: 1 = enable checks, 0 = disable checks
950
+
951
+ check_for_orphaned_services=1
952
+ check_for_orphaned_hosts=1
953
+
954
+
955
+
956
+ # SERVICE FRESHNESS CHECK OPTION
957
+ # This option determines whether or not Nagios will periodically
958
+ # check the "freshness" of service results. Enabling this option
959
+ # is useful for ensuring passive checks are received in a timely
960
+ # manner.
961
+ # Values: 1 = enabled freshness checking, 0 = disable freshness checking
962
+
963
+ check_service_freshness=1
964
+
965
+
966
+
967
+ # SERVICE FRESHNESS CHECK INTERVAL
968
+ # This setting determines how often (in seconds) Nagios will
969
+ # check the "freshness" of service check results. If you have
970
+ # disabled service freshness checking, this option has no effect.
971
+
972
+ service_freshness_check_interval=60
973
+
974
+
975
+
976
+ # HOST FRESHNESS CHECK OPTION
977
+ # This option determines whether or not Nagios will periodically
978
+ # check the "freshness" of host results. Enabling this option
979
+ # is useful for ensuring passive checks are received in a timely
980
+ # manner.
981
+ # Values: 1 = enabled freshness checking, 0 = disable freshness checking
982
+
983
+ check_host_freshness=0
984
+
985
+
986
+
987
+ # HOST FRESHNESS CHECK INTERVAL
988
+ # This setting determines how often (in seconds) Nagios will
989
+ # check the "freshness" of host check results. If you have
990
+ # disabled host freshness checking, this option has no effect.
991
+
992
+ host_freshness_check_interval=60
993
+
994
+
995
+
996
+
997
+ # ADDITIONAL FRESHNESS THRESHOLD LATENCY
998
+ # This setting determines the number of seconds that Nagios
999
+ # will add to any host and service freshness thresholds that
1000
+ # it calculates (those not explicitly specified by the user).
1001
+
1002
+ additional_freshness_latency=15
1003
+
1004
+
1005
+
1006
+
1007
+ # FLAP DETECTION OPTION
1008
+ # This option determines whether or not Nagios will try
1009
+ # and detect hosts and services that are "flapping".
1010
+ # Flapping occurs when a host or service changes between
1011
+ # states too frequently. When Nagios detects that a
1012
+ # host or service is flapping, it will temporarily suppress
1013
+ # notifications for that host/service until it stops
1014
+ # flapping. Flap detection is very experimental, so read
1015
+ # the HTML documentation before enabling this feature!
1016
+ # Values: 1 = enable flap detection
1017
+ # 0 = disable flap detection (default)
1018
+
1019
+ enable_flap_detection=1
1020
+
1021
+
1022
+
1023
+ # FLAP DETECTION THRESHOLDS FOR HOSTS AND SERVICES
1024
+ # Read the HTML documentation on flap detection for
1025
+ # an explanation of what this option does. This option
1026
+ # has no effect if flap detection is disabled.
1027
+
1028
+ low_service_flap_threshold=5.0
1029
+ high_service_flap_threshold=20.0
1030
+ low_host_flap_threshold=5.0
1031
+ high_host_flap_threshold=20.0
1032
+
1033
+
1034
+
1035
+ # DATE FORMAT OPTION
1036
+ # This option determines how short dates are displayed. Valid options
1037
+ # include:
1038
+ # us (MM-DD-YYYY HH:MM:SS)
1039
+ # euro (DD-MM-YYYY HH:MM:SS)
1040
+ # iso8601 (YYYY-MM-DD HH:MM:SS)
1041
+ # strict-iso8601 (YYYY-MM-DDTHH:MM:SS)
1042
+ #
1043
+
1044
+ date_format=us
1045
+
1046
+
1047
+
1048
+
1049
+ # TIMEZONE OFFSET
1050
+ # This option is used to override the default timezone that this
1051
+ # instance of Nagios runs in. If not specified, Nagios will use
1052
+ # the system configured timezone.
1053
+ #
1054
+ # NOTE: In order to display the correct timezone in the CGIs, you
1055
+ # will also need to alter the Apache directives for the CGI path
1056
+ # to include your timezone. Example:
1057
+ #
1058
+ # <Directory "/usr/local/nagios/sbin/">
1059
+ # SetEnv TZ "Australia/Brisbane"
1060
+ # ...
1061
+ # </Directory>
1062
+
1063
+ #use_timezone=US/Mountain
1064
+ #use_timezone=Australia/Brisbane
1065
+
1066
+
1067
+
1068
+
1069
+ # P1.PL FILE LOCATION
1070
+ # This value determines where the p1.pl perl script (used by the
1071
+ # embedded Perl interpreter) is located. If you didn't compile
1072
+ # Nagios with embedded Perl support, this option has no effect.
1073
+
1074
+ p1_file=/usr/local/nagios/bin/p1.pl
1075
+
1076
+
1077
+
1078
+ # EMBEDDED PERL INTERPRETER OPTION
1079
+ # This option determines whether or not the embedded Perl interpreter
1080
+ # will be enabled during runtime. This option has no effect if Nagios
1081
+ # has not been compiled with support for embedded Perl.
1082
+ # Values: 0 = disable interpreter, 1 = enable interpreter
1083
+
1084
+ enable_embedded_perl=1
1085
+
1086
+
1087
+
1088
+ # EMBEDDED PERL USAGE OPTION
1089
+ # This option determines whether or not Nagios will process Perl plugins
1090
+ # and scripts with the embedded Perl interpreter if the plugins/scripts
1091
+ # do not explicitly indicate whether or not it is okay to do so. Read
1092
+ # the HTML documentation on the embedded Perl interpreter for more
1093
+ # information on how this option works.
1094
+
1095
+ use_embedded_perl_implicitly=1
1096
+
1097
+
1098
+
1099
+ # ILLEGAL OBJECT NAME CHARACTERS
1100
+ # This option allows you to specify illegal characters that cannot
1101
+ # be used in host names, service descriptions, or names of other
1102
+ # object types.
1103
+
1104
+ illegal_object_name_chars=`~!$%^&*|'"<>?,()=
1105
+
1106
+
1107
+
1108
+ # ILLEGAL MACRO OUTPUT CHARACTERS
1109
+ # This option allows you to specify illegal characters that are
1110
+ # stripped from macros before being used in notifications, event
1111
+ # handlers, etc. This DOES NOT affect macros used in service or
1112
+ # host check commands.
1113
+ # The following macros are stripped of the characters you specify:
1114
+ # $HOSTOUTPUT$
1115
+ # $HOSTPERFDATA$
1116
+ # $HOSTACKAUTHOR$
1117
+ # $HOSTACKCOMMENT$
1118
+ # $SERVICEOUTPUT$
1119
+ # $SERVICEPERFDATA$
1120
+ # $SERVICEACKAUTHOR$
1121
+ # $SERVICEACKCOMMENT$
1122
+
1123
+ illegal_macro_output_chars=`~$&|'"<>
1124
+
1125
+
1126
+
1127
+ # REGULAR EXPRESSION MATCHING
1128
+ # This option controls whether or not regular expression matching
1129
+ # takes place in the object config files. Regular expression
1130
+ # matching is used to match host, hostgroup, service, and service
1131
+ # group names/descriptions in some fields of various object types.
1132
+ # Values: 1 = enable regexp matching, 0 = disable regexp matching
1133
+
1134
+ use_regexp_matching=0
1135
+
1136
+
1137
+
1138
+ # "TRUE" REGULAR EXPRESSION MATCHING
1139
+ # This option controls whether or not "true" regular expression
1140
+ # matching takes place in the object config files. This option
1141
+ # only has an effect if regular expression matching is enabled
1142
+ # (see above). If this option is DISABLED, regular expression
1143
+ # matching only occurs if a string contains wildcard characters
1144
+ # (* and ?). If the option is ENABLED, regexp matching occurs
1145
+ # all the time (which can be annoying).
1146
+ # Values: 1 = enable true matching, 0 = disable true matching
1147
+
1148
+ use_true_regexp_matching=0
1149
+
1150
+
1151
+
1152
+ # ADMINISTRATOR EMAIL/PAGER ADDRESSES
1153
+ # The email and pager address of a global administrator (likely you).
1154
+ # Nagios never uses these values itself, but you can access them by
1155
+ # using the $ADMINEMAIL$ and $ADMINPAGER$ macros in your notification
1156
+ # commands.
1157
+
1158
+ admin_email=nagios@localhost
1159
+ admin_pager=pagenagios@localhost
1160
+
1161
+
1162
+
1163
+ # DAEMON CORE DUMP OPTION
1164
+ # This option determines whether or not Nagios is allowed to create
1165
+ # a core dump when it runs as a daemon. Note that it is generally
1166
+ # considered bad form to allow this, but it may be useful for
1167
+ # debugging purposes. Enabling this option doesn't guarantee that
1168
+ # a core file will be produced, but that's just life...
1169
+ # Values: 1 - Allow core dumps
1170
+ # 0 - Do not allow core dumps (default)
1171
+
1172
+ daemon_dumps_core=0
1173
+
1174
+
1175
+
1176
+ # LARGE INSTALLATION TWEAKS OPTION
1177
+ # This option determines whether or not Nagios will take some shortcuts
1178
+ # which can save on memory and CPU usage in large Nagios installations.
1179
+ # Read the documentation for more information on the benefits/tradeoffs
1180
+ # of enabling this option.
1181
+ # Values: 1 - Enabled tweaks
1182
+ # 0 - Disable tweaks (default)
1183
+
1184
+ use_large_installation_tweaks=0
1185
+
1186
+
1187
+
1188
+ # ENABLE ENVIRONMENT MACROS
1189
+ # This option determines whether or not Nagios will make all standard
1190
+ # macros available as environment variables when host/service checks
1191
+ # and system commands (event handlers, notifications, etc.) are
1192
+ # executed. Enabling this option can cause performance issues in
1193
+ # large installations, as it will consume a bit more memory and (more
1194
+ # importantly) consume more CPU.
1195
+ # Values: 1 - Enable environment variable macros (default)
1196
+ # 0 - Disable environment variable macros
1197
+
1198
+ enable_environment_macros=1
1199
+
1200
+
1201
+
1202
+ # CHILD PROCESS MEMORY OPTION
1203
+ # This option determines whether or not Nagios will free memory in
1204
+ # child processes (processed used to execute system commands and host/
1205
+ # service checks). If you specify a value here, it will override
1206
+ # program defaults.
1207
+ # Value: 1 - Free memory in child processes
1208
+ # 0 - Do not free memory in child processes
1209
+
1210
+ #free_child_process_memory=1
1211
+
1212
+
1213
+
1214
+ # CHILD PROCESS FORKING BEHAVIOR
1215
+ # This option determines how Nagios will fork child processes
1216
+ # (used to execute system commands and host/service checks). Normally
1217
+ # child processes are fork()ed twice, which provides a very high level
1218
+ # of isolation from problems. Fork()ing once is probably enough and will
1219
+ # save a great deal on CPU usage (in large installs), so you might
1220
+ # want to consider using this. If you specify a value here, it will
1221
+ # program defaults.
1222
+ # Value: 1 - Child processes fork() twice
1223
+ # 0 - Child processes fork() just once
1224
+
1225
+ #child_processes_fork_twice=1
1226
+
1227
+
1228
+
1229
+ # DEBUG LEVEL
1230
+ # This option determines how much (if any) debugging information will
1231
+ # be written to the debug file. OR values together to log multiple
1232
+ # types of information.
1233
+ # Values: -1 = Everything
1234
+ # 0 = Nothing
1235
+ # 1 = Functions
1236
+ # 2 = Configuration
1237
+ # 4 = Process information
1238
+ # 8 = Scheduled events
1239
+ # 16 = Host/service checks
1240
+ # 32 = Notifications
1241
+ # 64 = Event broker
1242
+ # 128 = Check IPC
1243
+
1244
+ debug_level=0
1245
+
1246
+
1247
+
1248
+ # DEBUG VERBOSITY
1249
+ # This option determines how verbose the debug log out will be.
1250
+ # Values: 0 = Brief output
1251
+ # 1 = More detailed
1252
+ # 2 = Very detailed
1253
+
1254
+ debug_verbosity=1
1255
+
1256
+
1257
+
1258
+ # DEBUG FILE
1259
+ # This option determines where Nagios should write debugging information.
1260
+
1261
+ debug_file=/usr/local/nagios/var/nagios.debug
1262
+
1263
+
1264
+
1265
+ # MAX DEBUG FILE SIZE
1266
+ # This option determines the maximum size (in bytes) of the debug file. If
1267
+ # the file grows larger than this size, it will be renamed with a .old
1268
+ # extension. If a file already exists with a .old extension it will
1269
+ # automatically be deleted. This helps ensure your disk space usage doesn't
1270
+ # get out of control when debugging Nagios.
1271
+
1272
+ max_debug_file_size=1000000
1273
+
1274
+