le1t0-deprec 2.1.6.001

Sign up to get free protection for your applications and to get access to all the features.
Files changed (230) hide show
  1. data/CHANGELOG +444 -0
  2. data/COPYING +19 -0
  3. data/LICENSE +339 -0
  4. data/README +154 -0
  5. data/THANKS +17 -0
  6. data/bin/depify +139 -0
  7. data/docs/EXAMPLE-installing_tracks.txt +41 -0
  8. data/docs/README.nagios +22 -0
  9. data/docs/README.rails +17 -0
  10. data/docs/config_gen_explained.txt +39 -0
  11. data/docs/deprec-1.x/deprec-1.x.quickstart +50 -0
  12. data/docs/deprec-1.x/notes.txt +12 -0
  13. data/docs/old/deprec_banner.gif +0 -0
  14. data/docs/windows_linux.txt +350 -0
  15. data/docs/xen/traffic_monitoring_with_vnstat.txt +95 -0
  16. data/docs/xen/xen-tools-notes.txt +31 -0
  17. data/docs/xen/xen_on_hardy.txt +39 -0
  18. data/lib/deprec.rb +42 -0
  19. data/lib/deprec/capistrano_extensions.rb +446 -0
  20. data/lib/deprec/recipes.rb +7 -0
  21. data/lib/deprec/recipes/aoe.rb +79 -0
  22. data/lib/deprec/recipes/app/mongrel.rb +213 -0
  23. data/lib/deprec/recipes/app/passenger.rb +190 -0
  24. data/lib/deprec/recipes/ar_sendmail.rb +67 -0
  25. data/lib/deprec/recipes/aspell.rb +22 -0
  26. data/lib/deprec/recipes/canonical.rb +68 -0
  27. data/lib/deprec/recipes/cap.rb +39 -0
  28. data/lib/deprec/recipes/chef.rb +68 -0
  29. data/lib/deprec/recipes/collectd.rb +112 -0
  30. data/lib/deprec/recipes/db/couchdb.rb +107 -0
  31. data/lib/deprec/recipes/db/mysql.rb +194 -0
  32. data/lib/deprec/recipes/db/postgresql.rb +104 -0
  33. data/lib/deprec/recipes/db/sqlite.rb +37 -0
  34. data/lib/deprec/recipes/ddclient.rb +51 -0
  35. data/lib/deprec/recipes/deprec.rb +167 -0
  36. data/lib/deprec/recipes/deprecated.rb +71 -0
  37. data/lib/deprec/recipes/drbd.rb +137 -0
  38. data/lib/deprec/recipes/dummy.rb +22 -0
  39. data/lib/deprec/recipes/example.rb +115 -0
  40. data/lib/deprec/recipes/git.rb +97 -0
  41. data/lib/deprec/recipes/gitosis.rb.disabled +55 -0
  42. data/lib/deprec/recipes/glusterfs.rb +176 -0
  43. data/lib/deprec/recipes/god.rb +70 -0
  44. data/lib/deprec/recipes/haproxy.rb +115 -0
  45. data/lib/deprec/recipes/heartbeat.rb +138 -0
  46. data/lib/deprec/recipes/imagemagick/imagemagick_bin.rb +24 -0
  47. data/lib/deprec/recipes/imagemagick/imagemagick_src.rb +39 -0
  48. data/lib/deprec/recipes/integrity.rb +108 -0
  49. data/lib/deprec/recipes/iptables.rb +94 -0
  50. data/lib/deprec/recipes/java.rb +23 -0
  51. data/lib/deprec/recipes/keepalived.rb +78 -0
  52. data/lib/deprec/recipes/ldap.rb +52 -0
  53. data/lib/deprec/recipes/logrotate.rb +56 -0
  54. data/lib/deprec/recipes/lvm.rb +20 -0
  55. data/lib/deprec/recipes/memcache.rb +49 -0
  56. data/lib/deprec/recipes/mongodb.rb +94 -0
  57. data/lib/deprec/recipes/monit.rb +135 -0
  58. data/lib/deprec/recipes/mysql_proxy.rb +67 -0
  59. data/lib/deprec/recipes/nagios.rb +361 -0
  60. data/lib/deprec/recipes/network.rb +116 -0
  61. data/lib/deprec/recipes/ntp.rb +103 -0
  62. data/lib/deprec/recipes/php.rb +58 -0
  63. data/lib/deprec/recipes/postfix.rb +115 -0
  64. data/lib/deprec/recipes/profiles.rb +125 -0
  65. data/lib/deprec/recipes/raid/amcc_3ware.rb +21 -0
  66. data/lib/deprec/recipes/rails.rb +330 -0
  67. data/lib/deprec/recipes/redhat_cluster.rb +228 -0
  68. data/lib/deprec/recipes/redis.rb +90 -0
  69. data/lib/deprec/recipes/ruby/mri.rb +55 -0
  70. data/lib/deprec/recipes/ruby/ree.rb +40 -0
  71. data/lib/deprec/recipes/rvm.rb +32 -0
  72. data/lib/deprec/recipes/s3utils.rb +63 -0
  73. data/lib/deprec/recipes/sphinx/thinking_sphinx.rb +105 -0
  74. data/lib/deprec/recipes/sphinx/ultrasphinx.rb +86 -0
  75. data/lib/deprec/recipes/ssh.rb +147 -0
  76. data/lib/deprec/recipes/ssl.rb +56 -0
  77. data/lib/deprec/recipes/starling.rb +119 -0
  78. data/lib/deprec/recipes/svn.rb +171 -0
  79. data/lib/deprec/recipes/syslog.rb +63 -0
  80. data/lib/deprec/recipes/trac.rb.disabled +277 -0
  81. data/lib/deprec/recipes/tsung.rb +74 -0
  82. data/lib/deprec/recipes/ubuntu.rb +90 -0
  83. data/lib/deprec/recipes/users.rb +90 -0
  84. data/lib/deprec/recipes/utils.rb +58 -0
  85. data/lib/deprec/recipes/vnstat.rb +85 -0
  86. data/lib/deprec/recipes/web/apache.rb +143 -0
  87. data/lib/deprec/recipes/web/nginx.rb +172 -0
  88. data/lib/deprec/recipes/wordpress.rb.notworking +96 -0
  89. data/lib/deprec/recipes/wpmu.rb +103 -0
  90. data/lib/deprec/recipes/xen.rb +364 -0
  91. data/lib/deprec/recipes/xentools.rb +101 -0
  92. data/lib/deprec/recipes_minus_rails.rb +125 -0
  93. data/lib/deprec/templates/aoe/aoe-init +55 -0
  94. data/lib/deprec/templates/aoe/fence_aoemask +351 -0
  95. data/lib/deprec/templates/apache/namevirtualhosts.conf +5 -0
  96. data/lib/deprec/templates/apache/ports.conf.erb +5 -0
  97. data/lib/deprec/templates/apache/status.conf.erb +17 -0
  98. data/lib/deprec/templates/ar_sendmail/logrotate.conf.erb +9 -0
  99. data/lib/deprec/templates/ar_sendmail/monit.conf.erb +5 -0
  100. data/lib/deprec/templates/chef/chef.json.erb +1 -0
  101. data/lib/deprec/templates/chef/solo.rb +2 -0
  102. data/lib/deprec/templates/collectd/collectd-init.d +153 -0
  103. data/lib/deprec/templates/collectd/collectd.conf.erb +686 -0
  104. data/lib/deprec/templates/ddclient/ddclient.conf.erb +11 -0
  105. data/lib/deprec/templates/ddclient/ddclient.erb +15 -0
  106. data/lib/deprec/templates/deprec/caprc.erb +14 -0
  107. data/lib/deprec/templates/drbd/drbd.conf.erb +531 -0
  108. data/lib/deprec/templates/glusterfs/glusterfsd-init.erb +95 -0
  109. data/lib/deprec/templates/gnbd_client/cluster.conf.erb +21 -0
  110. data/lib/deprec/templates/gnbd_client/clvm-default.erb +3 -0
  111. data/lib/deprec/templates/gnbd_client/cman-default.erb +6 -0
  112. data/lib/deprec/templates/gnbd_client/gnbdimports.conf.erb +1 -0
  113. data/lib/deprec/templates/gnbd_server/cluster.conf.erb +20 -0
  114. data/lib/deprec/templates/gnbd_server/clvm-default.erb +3 -0
  115. data/lib/deprec/templates/gnbd_server/cman-default.erb +6 -0
  116. data/lib/deprec/templates/gnbd_server/gnbd-server-default.erb +1 -0
  117. data/lib/deprec/templates/gnbd_server/gnbdexports.conf.erb +1 -0
  118. data/lib/deprec/templates/god/god-conf.erb +2 -0
  119. data/lib/deprec/templates/god/god-init.erb +47 -0
  120. data/lib/deprec/templates/haproxy/haproxy-init.d +120 -0
  121. data/lib/deprec/templates/haproxy/haproxy.cfg.erb +31 -0
  122. data/lib/deprec/templates/heartbeat/authkeys.erb +2 -0
  123. data/lib/deprec/templates/heartbeat/ha.cf.erb +15 -0
  124. data/lib/deprec/templates/heartbeat/haresources.erb +1 -0
  125. data/lib/deprec/templates/integrity/apache_vhost.erb +4 -0
  126. data/lib/deprec/templates/integrity/config.ru.erb +21 -0
  127. data/lib/deprec/templates/integrity/config.yml.erb +43 -0
  128. data/lib/deprec/templates/iptables/firewall-default.erb +13 -0
  129. data/lib/deprec/templates/iptables/firewall-init.erb +171 -0
  130. data/lib/deprec/templates/keepalived/keepalived.conf.erb +18 -0
  131. data/lib/deprec/templates/logrotate/logrotate.conf.erb +32 -0
  132. data/lib/deprec/templates/mongodb/mongodb-init.d +88 -0
  133. data/lib/deprec/templates/mongrel/apache_vhost.conf.erb +148 -0
  134. data/lib/deprec/templates/mongrel/logrotate.conf.erb +11 -0
  135. data/lib/deprec/templates/mongrel/mongrel_cluster-init-script +54 -0
  136. data/lib/deprec/templates/mongrel/mongrel_cluster.yml.erb +10 -0
  137. data/lib/deprec/templates/mongrel/monit.conf.erb +17 -0
  138. data/lib/deprec/templates/mongrel/nginx_vhost.conf.erb +41 -0
  139. data/lib/deprec/templates/monit/monit-init-script +104 -0
  140. data/lib/deprec/templates/monit/monitrc.erb +250 -0
  141. data/lib/deprec/templates/monit/nothing.monitrc +0 -0
  142. data/lib/deprec/templates/mysql/create_databases.sql +20 -0
  143. data/lib/deprec/templates/mysql/database.yml.prod +6 -0
  144. data/lib/deprec/templates/mysql/database.yml.stage +6 -0
  145. data/lib/deprec/templates/mysql/my.cnf.erb +140 -0
  146. data/lib/deprec/templates/mysql/sphinx.conf.prod +542 -0
  147. data/lib/deprec/templates/mysql/sphinx.conf.stage +542 -0
  148. data/lib/deprec/templates/mysql_proxy/mysql-proxy-default.erb +4 -0
  149. data/lib/deprec/templates/nagios/README +32 -0
  150. data/lib/deprec/templates/nagios/cgi.cfg.erb +357 -0
  151. data/lib/deprec/templates/nagios/check_linux_free_memory.pl +118 -0
  152. data/lib/deprec/templates/nagios/check_mongrel_cluster.rb +82 -0
  153. data/lib/deprec/templates/nagios/htpasswd.users +1 -0
  154. data/lib/deprec/templates/nagios/mrtg.cfg +180 -0
  155. data/lib/deprec/templates/nagios/nagios.cfg.erb +1325 -0
  156. data/lib/deprec/templates/nagios/nrpe.cfg.erb +222 -0
  157. data/lib/deprec/templates/nagios/nrpe.xinetd.erb +16 -0
  158. data/lib/deprec/templates/nagios/objects/commands.cfg.erb +265 -0
  159. data/lib/deprec/templates/nagios/objects/contacts.cfg.erb +89 -0
  160. data/lib/deprec/templates/nagios/objects/hosts.cfg.erb +114 -0
  161. data/lib/deprec/templates/nagios/objects/localhost.cfg.erb +116 -0
  162. data/lib/deprec/templates/nagios/objects/services.cfg.erb +165 -0
  163. data/lib/deprec/templates/nagios/objects/timeperiods.cfg.erb +94 -0
  164. data/lib/deprec/templates/nagios/resource.cfg.erb +34 -0
  165. data/lib/deprec/templates/network/hostname.erb +1 -0
  166. data/lib/deprec/templates/network/hosts.erb +2 -0
  167. data/lib/deprec/templates/network/interfaces.erb +18 -0
  168. data/lib/deprec/templates/network/resolv.conf.erb +6 -0
  169. data/lib/deprec/templates/nginx/logrotate.conf.erb +13 -0
  170. data/lib/deprec/templates/nginx/mime.types.erb +70 -0
  171. data/lib/deprec/templates/nginx/nginx-init-script +62 -0
  172. data/lib/deprec/templates/nginx/nginx.conf.erb +125 -0
  173. data/lib/deprec/templates/nginx/nginx.logrotate.d +12 -0
  174. data/lib/deprec/templates/nginx/nothing.conf +1 -0
  175. data/lib/deprec/templates/nginx/rails_nginx_vhost.conf.erb +41 -0
  176. data/lib/deprec/templates/ntp/ntp.conf.erb +42 -0
  177. data/lib/deprec/templates/passenger/apache_vhost.erb +29 -0
  178. data/lib/deprec/templates/passenger/logrotate.conf.erb +12 -0
  179. data/lib/deprec/templates/passenger/passenger.conf.erb +21 -0
  180. data/lib/deprec/templates/passenger/passenger.load.erb +3 -0
  181. data/lib/deprec/templates/postfix/aliases.erb +3 -0
  182. data/lib/deprec/templates/postfix/dynamicmaps.cf.erb +8 -0
  183. data/lib/deprec/templates/postfix/main.cf.erb +36 -0
  184. data/lib/deprec/templates/postfix/master.cf.erb +77 -0
  185. data/lib/deprec/templates/redis/redis-conf.erb +132 -0
  186. data/lib/deprec/templates/redis/redis-init.erb +50 -0
  187. data/lib/deprec/templates/s3utils/s3cfg +35 -0
  188. data/lib/deprec/templates/s3utils/s3config.yml +3 -0
  189. data/lib/deprec/templates/sphinx/monit.conf.erb +5 -0
  190. data/lib/deprec/templates/ssh/ssh_config.erb +50 -0
  191. data/lib/deprec/templates/ssh/sshd_config.erb +78 -0
  192. data/lib/deprec/templates/ssl/make-ssl-cert +138 -0
  193. data/lib/deprec/templates/ssl/ssl-cert-snakeoil.key +15 -0
  194. data/lib/deprec/templates/ssl/ssl-cert-snakeoil.pem +19 -0
  195. data/lib/deprec/templates/starling/monit.conf.erb +14 -0
  196. data/lib/deprec/templates/starling/starling-init-script.erb +71 -0
  197. data/lib/deprec/templates/subversion/svn.apache.vhost.erb +43 -0
  198. data/lib/deprec/templates/syslog/syslog.conf.erb +71 -0
  199. data/lib/deprec/templates/syslog/syslogd.erb +13 -0
  200. data/lib/deprec/templates/trac/apache_vhost.conf.erb +24 -0
  201. data/lib/deprec/templates/trac/nginx_vhost.conf.erb +26 -0
  202. data/lib/deprec/templates/trac/trac.ini.erb +169 -0
  203. data/lib/deprec/templates/trac/trac_deprec.png +0 -0
  204. data/lib/deprec/templates/trac/tracd-init.erb +43 -0
  205. data/lib/deprec/templates/trac/users.htdigest.erb +0 -0
  206. data/lib/deprec/templates/tsung/tsung.xml.erb +47 -0
  207. data/lib/deprec/templates/vnstat/config.php +57 -0
  208. data/lib/deprec/templates/wordpress/apache2_wordpress_vhost.conf.erb +31 -0
  209. data/lib/deprec/templates/wordpress/wp-config.php.erb +31 -0
  210. data/lib/deprec/templates/wpmu/apache_vhost.conf.erb +13 -0
  211. data/lib/deprec/templates/xen/network-bridge-wrapper +3 -0
  212. data/lib/deprec/templates/xen/xend-config.sxp.erb +195 -0
  213. data/lib/deprec/templates/xen/xend-init.erb +57 -0
  214. data/lib/deprec/templates/xen/xendomains.erb +137 -0
  215. data/lib/deprec/templates/xentools/100-ubuntu-setup +26 -0
  216. data/lib/deprec/templates/xentools/15-disable-hwclock +40 -0
  217. data/lib/deprec/templates/xentools/30-disable-gettys +57 -0
  218. data/lib/deprec/templates/xentools/31-ubuntu-setup +32 -0
  219. data/lib/deprec/templates/xentools/40-setup-networking +145 -0
  220. data/lib/deprec/templates/xentools/98-custom +17 -0
  221. data/lib/deprec/templates/xentools/xen-tools.conf.erb +278 -0
  222. data/lib/deprec/templates/xentools/xm.tmpl.erb +138 -0
  223. data/lib/deprec_cmd_completion.sh +26 -0
  224. data/lib/deprec_minus_rails.rb +12 -0
  225. data/lib/vmbuilder_plugins/all.rb +20 -0
  226. data/lib/vmbuilder_plugins/apt.rb +93 -0
  227. data/lib/vmbuilder_plugins/emerge.rb +76 -0
  228. data/lib/vmbuilder_plugins/gem.rb +100 -0
  229. data/lib/vmbuilder_plugins/std.rb +203 -0
  230. metadata +304 -0
@@ -0,0 +1,222 @@
1
+ #############################################################################
2
+ # Sample NRPE Config File
3
+ # Written by: Ethan Galstad (nagios@nagios.org)
4
+ #
5
+ # Last Modified: 03-09-2007
6
+ #
7
+ # NOTES:
8
+ # This is a sample configuration file for the NRPE daemon. It needs to be
9
+ # located on the remote host that is running the NRPE daemon, not the host
10
+ # from which the check_nrpe client is being executed.
11
+ #############################################################################
12
+
13
+
14
+ # PID FILE
15
+ # The name of the file in which the NRPE daemon should write it's process ID
16
+ # number. The file is only written if the NRPE daemon is started by the root
17
+ # user and is running in standalone mode.
18
+
19
+ pid_file=/var/run/nrpe.pid
20
+
21
+
22
+
23
+ # PORT NUMBER
24
+ # Port number we should wait for connections on.
25
+ # NOTE: This must be a non-priviledged port (i.e. > 1024).
26
+ # NOTE: This option is ignored if NRPE is running under either inetd or xinetd
27
+
28
+ server_port=5666
29
+
30
+
31
+
32
+ # SERVER ADDRESS
33
+ # Address that nrpe should bind to in case there are more than one interface
34
+ # and you do not want nrpe to bind on all interfaces.
35
+ # NOTE: This option is ignored if NRPE is running under either inetd or xinetd
36
+
37
+ #server_address=127.0.0.1
38
+
39
+
40
+
41
+ # NRPE USER
42
+ # This determines the effective user that the NRPE daemon should run as.
43
+ # You can either supply a username or a UID.
44
+ #
45
+ # NOTE: This option is ignored if NRPE is running under either inetd or xinetd
46
+
47
+ nrpe_user=nagios
48
+
49
+
50
+
51
+ # NRPE GROUP
52
+ # This determines the effective group that the NRPE daemon should run as.
53
+ # You can either supply a group name or a GID.
54
+ #
55
+ # NOTE: This option is ignored if NRPE is running under either inetd or xinetd
56
+
57
+ nrpe_group=nagios
58
+
59
+
60
+
61
+ # ALLOWED HOST ADDRESSES
62
+ # This is an optional comma-delimited list of IP address or hostnames
63
+ # that are allowed to talk to the NRPE daemon.
64
+ #
65
+ # Note: The daemon only does rudimentary checking of the client's IP
66
+ # address. I would highly recommend adding entries in your /etc/hosts.allow
67
+ # file to allow only the specified host to connect to the port
68
+ # you are running this daemon on.
69
+ #
70
+ # NOTE: This option is ignored if NRPE is running under either inetd or xinetd
71
+
72
+ allowed_hosts=127.0.0.1
73
+
74
+
75
+
76
+ # COMMAND ARGUMENT PROCESSING
77
+ # This option determines whether or not the NRPE daemon will allow clients
78
+ # to specify arguments to commands that are executed. This option only works
79
+ # if the daemon was configured with the --enable-command-args configure script
80
+ # option.
81
+ #
82
+ # *** ENABLING THIS OPTION IS A SECURITY RISK! ***
83
+ # Read the SECURITY file for information on some of the security implications
84
+ # of enabling this variable.
85
+ #
86
+ # Values: 0=do not allow arguments, 1=allow command arguments
87
+
88
+ dont_blame_nrpe=0
89
+
90
+
91
+
92
+ # COMMAND PREFIX
93
+ # This option allows you to prefix all commands with a user-defined string.
94
+ # A space is automatically added between the specified prefix string and the
95
+ # command line from the command definition.
96
+ #
97
+ # *** THIS EXAMPLE MAY POSE A POTENTIAL SECURITY RISK, SO USE WITH CAUTION! ***
98
+ # Usage scenario:
99
+ # Execute restricted commmands using sudo. For this to work, you need to add
100
+ # the nagios user to your /etc/sudoers. An example entry for alllowing
101
+ # execution of the plugins from might be:
102
+ #
103
+ # nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/
104
+ #
105
+ # This lets the nagios user run all commands in that directory (and only them)
106
+ # without asking for a password. If you do this, make sure you don't give
107
+ # random users write access to that directory or its contents!
108
+
109
+ # command_prefix=/usr/bin/sudo
110
+
111
+
112
+
113
+ # DEBUGGING OPTION
114
+ # This option determines whether or not debugging messages are logged to the
115
+ # syslog facility.
116
+ # Values: 0=debugging off, 1=debugging on
117
+
118
+ debug=0
119
+
120
+
121
+
122
+ # COMMAND TIMEOUT
123
+ # This specifies the maximum number of seconds that the NRPE daemon will
124
+ # allow plugins to finish executing before killing them off.
125
+
126
+ command_timeout=60
127
+
128
+
129
+
130
+ # CONNECTION TIMEOUT
131
+ # This specifies the maximum number of seconds that the NRPE daemon will
132
+ # wait for a connection to be established before exiting. This is sometimes
133
+ # seen where a network problem stops the SSL being established even though
134
+ # all network sessions are connected. This causes the nrpe daemons to
135
+ # accumulate, eating system resources. Do not set this too low.
136
+
137
+ connection_timeout=300
138
+
139
+
140
+
141
+ # WEEK RANDOM SEED OPTION
142
+ # This directive allows you to use SSL even if your system does not have
143
+ # a /dev/random or /dev/urandom (on purpose or because the necessary patches
144
+ # were not applied). The random number generator will be seeded from a file
145
+ # which is either a file pointed to by the environment valiable $RANDFILE
146
+ # or $HOME/.rnd. If neither exists, the pseudo random number generator will
147
+ # be initialized and a warning will be issued.
148
+ # Values: 0=only seed from /dev/[u]random, 1=also seed from weak randomness
149
+
150
+ #allow_weak_random_seed=1
151
+
152
+
153
+
154
+ # INCLUDE CONFIG FILE
155
+ # This directive allows you to include definitions from an external config file.
156
+
157
+ #include=<somefile.cfg>
158
+
159
+
160
+
161
+ # INCLUDE CONFIG DIRECTORY
162
+ # This directive allows you to include definitions from config files (with a
163
+ # .cfg extension) in one or more directories (with recursion).
164
+
165
+ #include_dir=<somedirectory>
166
+ #include_dir=<someotherdirectory>
167
+
168
+
169
+
170
+ # COMMAND DEFINITIONS
171
+ # Command definitions that this daemon will run. Definitions
172
+ # are in the following format:
173
+ #
174
+ # command[<command_name>]=<command_line>
175
+ #
176
+ # When the daemon receives a request to return the results of <command_name>
177
+ # it will execute the command specified by the <command_line> argument.
178
+ #
179
+ # Unlike Nagios, the command line cannot contain macros - it must be
180
+ # typed exactly as it should be executed.
181
+ #
182
+ # Note: Any plugins that are used in the command lines must reside
183
+ # on the machine that this daemon is running on! The examples below
184
+ # assume that you have plugins installed in a /usr/local/nagios/libexec
185
+ # directory. Also note that you will have to modify the definitions below
186
+ # to match the argument format the plugins expect. Remember, these are
187
+ # examples only!
188
+
189
+
190
+ # The following examples use hardcoded command arguments...
191
+
192
+ command[check_users]=/usr/local/nagios/libexec/check_users -w 5 -c 10
193
+ command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20
194
+ command[check_hda1]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /dev/hda1
195
+ command[check_sda1]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /dev/sda1
196
+ command[check_xvda1]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /dev/xvda1
197
+ command[check_xvda2]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /dev/xvda2
198
+ command[check_xvda3]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /dev/xvda3
199
+ command[check_postfix_satellite]=/usr/local/nagios/libexec/check_smtp -H localhost
200
+ command[check_zombie_procs]=/usr/local/nagios/libexec/check_procs -w 5 -c 10 -s Z
201
+ command[check_total_procs]=/usr/local/nagios/libexec/check_procs -w 150 -c 200
202
+ command[check_memory]=/usr/local/nagios/libexec/check_linux_free_memory.pl -w 10% -c 0%
203
+ command[check_mysql]=/usr/local/nagios/libexec/check_mysql -H localhost -u root
204
+ command[check_mysql_slave]=/usr/local/nagios/libexec/check_mysql -H localhost -u root --check-slave
205
+ command[check_airbrush]=/usr/local/nagios/libexec/check_procs -C ruby -a airbrush -c 1:1
206
+ command[check_starling]=/usr/local/nagios/libexec/check_procs -C ruby -a starling -c 1:1
207
+ command[check_sphinx]=/usr/local/nagios/libexec/check_procs -C searchd -c 1:1
208
+ command[check_ar_sendmail]=/usr/local/nagios/libexec/check_procs -C ar_sendmail -c 1:1
209
+ command[check_ntp_time]=/usr/local/nagios/libexec/check_ntp_time -H ntp.ubuntu.com -w 0.5 -c 1
210
+ command[check_swap]=/usr/local/nagios/libexec/check_swap -w 50% -c 10%
211
+
212
+
213
+ # The following examples allow user-supplied arguments and can
214
+ # only be used if the NRPE daemon was compiled with support for
215
+ # command arguments *AND* the dont_blame_nrpe directive in this
216
+ # config file is set to '1'. This poses a potential security risk, so
217
+ # make sure you read the SECURITY file before doing this.
218
+
219
+ #command[check_users]=/usr/local/nagios/libexec/check_users -w $ARG1$ -c $ARG2$
220
+ #command[check_load]=/usr/local/nagios/libexec/check_load -w $ARG1$ -c $ARG2$
221
+ #command[check_disk]=/usr/local/nagios/libexec/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$
222
+ #command[check_procs]=/usr/local/nagios/libexec/check_procs -w $ARG1$ -c $ARG2$ -s $ARG3$
@@ -0,0 +1,16 @@
1
+ # default: on
2
+ # description: NRPE (Nagios Remote Plugin Executor)
3
+ service nrpe
4
+ {
5
+ flags = REUSE
6
+ socket_type = stream
7
+ port = 5666
8
+ wait = no
9
+ user = nagios
10
+ group = nagios
11
+ server = /usr/local/nagios/bin/nrpe
12
+ server_args = -c /usr/local/nagios/etc/nrpe.cfg --inetd
13
+ log_on_failure += USERID
14
+ disable = no
15
+ only_from = 127.0.0.1 <%= nagios_ip %>
16
+ }
@@ -0,0 +1,265 @@
1
+ ###############################################################################
2
+ # COMMANDS.CFG - SAMPLE COMMAND DEFINITIONS FOR NAGIOS 3.2.0
3
+ #
4
+ # Last Modified: 05-31-2007
5
+ #
6
+ # NOTES: This config file provides you with some example command definitions
7
+ # that you can reference in host, service, and contact definitions.
8
+ #
9
+ # You don't need to keep commands in a separate file from your other
10
+ # object definitions. This has been done just to make things easier to
11
+ # understand.
12
+ #
13
+ ###############################################################################
14
+
15
+
16
+ ################################################################################
17
+ #
18
+ # SAMPLE NOTIFICATION COMMANDS
19
+ #
20
+ # These are some example notification commands. They may or may not work on
21
+ # your system without modification. As an example, some systems will require
22
+ # you to use "/usr/bin/mailx" instead of "/usr/bin/mail" in the commands below.
23
+ #
24
+ ################################################################################
25
+
26
+
27
+ # 'notify-host-by-email' command definition
28
+ define command{
29
+ command_name notify-host-by-email
30
+ command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$
31
+ }
32
+
33
+ # 'notify-service-by-email' command definition
34
+ define command{
35
+ command_name notify-service-by-email
36
+ command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
37
+ }
38
+
39
+
40
+
41
+
42
+
43
+ ################################################################################
44
+ #
45
+ # SAMPLE HOST CHECK COMMANDS
46
+ #
47
+ ################################################################################
48
+
49
+
50
+ # This command checks to see if a host is "alive" by pinging it
51
+ # The check must result in a 100% packet loss or 5 second (5000ms) round trip
52
+ # average time to produce a critical error.
53
+ # Note: Five ICMP echo packets are sent (determined by the '-p 5' argument)
54
+
55
+ # 'check-host-alive' command definition
56
+ define command{
57
+ command_name check-host-alive
58
+ command_line $USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 5
59
+ }
60
+
61
+
62
+
63
+
64
+ ################################################################################
65
+ #
66
+ # SAMPLE SERVICE CHECK COMMANDS
67
+ #
68
+ # These are some example service check commands. They may or may not work on
69
+ # your system, as they must be modified for your plugins. See the HTML
70
+ # documentation on the plugins for examples of how to configure command definitions.
71
+ #
72
+ # NOTE: The following 'check_local_...' functions are designed to monitor
73
+ # various metrics on the host that Nagios is running on (i.e. this one).
74
+ ################################################################################
75
+
76
+ # 'check_local_disk' command definition
77
+ define command{
78
+ command_name check_local_disk
79
+ command_line $USER1$/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$
80
+ }
81
+
82
+
83
+ # 'check_local_load' command definition
84
+ define command{
85
+ command_name check_local_load
86
+ command_line $USER1$/check_load -w $ARG1$ -c $ARG2$
87
+ }
88
+
89
+
90
+ # 'check_local_procs' command definition
91
+ define command{
92
+ command_name check_local_procs
93
+ command_line $USER1$/check_procs -w $ARG1$ -c $ARG2$ -s $ARG3$
94
+ }
95
+
96
+
97
+ # 'check_local_users' command definition
98
+ define command{
99
+ command_name check_local_users
100
+ command_line $USER1$/check_users -w $ARG1$ -c $ARG2$
101
+ }
102
+
103
+
104
+ # 'check_local_swap' command definition
105
+ define command{
106
+ command_name check_local_swap
107
+ command_line $USER1$/check_swap -w $ARG1$ -c $ARG2$
108
+ }
109
+
110
+
111
+ # 'check_local_mrtgtraf' command definition
112
+ define command{
113
+ command_name check_local_mrtgtraf
114
+ command_line $USER1$/check_mrtgtraf -F $ARG1$ -a $ARG2$ -w $ARG3$ -c $ARG4$ -e $ARG5$
115
+ }
116
+
117
+
118
+ ################################################################################
119
+ # NOTE: The following 'check_...' commands are used to monitor services on
120
+ # both local and remote hosts.
121
+ ################################################################################
122
+
123
+ # 'check_ftp' command definition
124
+ define command{
125
+ command_name check_ftp
126
+ command_line $USER1$/check_ftp -H $HOSTADDRESS$ $ARG1$
127
+ }
128
+
129
+ # 'check_dns' command definition
130
+ define command{
131
+ command_name check_dns
132
+ command_line $USER1$/check_dns -H $HOSTADDRESS$
133
+ }
134
+
135
+ # 'check_hpjd' command definition
136
+ define command{
137
+ command_name check_hpjd
138
+ command_line $USER1$/check_hpjd -H $HOSTADDRESS$ $ARG1$
139
+ }
140
+
141
+
142
+ # 'check_snmp' command definition
143
+ define command{
144
+ command_name check_snmp
145
+ command_line $USER1$/check_snmp -H $HOSTADDRESS$ $ARG1$
146
+ }
147
+
148
+
149
+ # 'check_http' command definition
150
+ define command{
151
+ command_name check_http
152
+ command_line $USER1$/check_http -I $HOSTADDRESS$ $ARG1$
153
+ }
154
+
155
+ # 'check_url' command definition
156
+ define command{
157
+ command_name check_url
158
+ command_line $USER1$/check_http -H $ARG1$ -u $ARG2$
159
+ }
160
+
161
+
162
+ # 'check_apache_requests' command definition
163
+ define command{
164
+ command_name check_apache_requests
165
+ command_line /usr/local/bin/collectd-nagios -n 'apache/apache_requests' -s /usr/local/var/run/collectd.sock -H $ARG1$ -w $ARG2$ -c $ARG3$
166
+ }
167
+
168
+ # collectd-nagios -n 'apache/apache_requests' -s /usr/local/var/run/collectd.sock -H mon.failmode.com -w 20 -c 30
169
+
170
+
171
+
172
+ # 'check_ssh' command definition
173
+ define command{
174
+ command_name check_ssh
175
+ command_line $USER1$/check_ssh $ARG1$ $HOSTADDRESS$
176
+ }
177
+
178
+
179
+ # 'check_dhcp' command definition
180
+ define command{
181
+ command_name check_dhcp
182
+ command_line $USER1$/check_dhcp $ARG1$
183
+ }
184
+
185
+
186
+ # 'check_ping' command definition
187
+ define command{
188
+ command_name check_ping
189
+ command_line $USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5
190
+ }
191
+
192
+
193
+ # 'check_pop' command definition
194
+ define command{
195
+ command_name check_pop
196
+ command_line $USER1$/check_pop -H $HOSTADDRESS$ $ARG1$
197
+ }
198
+
199
+
200
+ # 'check_imap' command definition
201
+ define command{
202
+ command_name check_imap
203
+ command_line $USER1$/check_imap -H $HOSTADDRESS$ $ARG1$
204
+ }
205
+
206
+
207
+ # 'check_smtp' command definition
208
+ define command{
209
+ command_name check_smtp
210
+ command_line $USER1$/check_smtp -H $HOSTADDRESS$ $ARG1$
211
+ }
212
+
213
+
214
+ # 'check_tcp' command definition
215
+ define command{
216
+ command_name check_tcp
217
+ command_line $USER1$/check_tcp -H $HOSTADDRESS$ -p $ARG1$ $ARG2$
218
+ }
219
+
220
+
221
+ # 'check_udp' command definition
222
+ define command{
223
+ command_name check_udp
224
+ command_line $USER1$/check_udp -H $HOSTADDRESS$ -p $ARG1$ $ARG2$
225
+ }
226
+
227
+
228
+ # 'check_nt' command definition
229
+ define command{
230
+ command_name check_nt
231
+ command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -v $ARG1$ $ARG2$
232
+ }
233
+
234
+
235
+
236
+ ################################################################################
237
+ #
238
+ # SAMPLE PERFORMANCE DATA COMMANDS
239
+ #
240
+ # These are sample performance data commands that can be used to send performance
241
+ # data output to two text files (one for hosts, another for services). If you
242
+ # plan on simply writing performance data out to a file, consider using the
243
+ # host_perfdata_file and service_perfdata_file options in the main config file.
244
+ #
245
+ ################################################################################
246
+
247
+
248
+ # 'process-host-perfdata' command definition
249
+ define command{
250
+ command_name process-host-perfdata
251
+ command_line /usr/bin/printf "%b" "$LASTHOSTCHECK$\t$HOSTNAME$\t$HOSTSTATE$\t$HOSTATTEMPT$\t$HOSTSTATETYPE$\t$HOSTEXECUTIONTIME$\t$HOSTOUTPUT$\t$HOSTPERFDATA$\n" >> /usr/local/nagios/var/host-perfdata.out
252
+ }
253
+
254
+
255
+ # 'process-service-perfdata' command definition
256
+ define command{
257
+ command_name process-service-perfdata
258
+ command_line /usr/bin/printf "%b" "$LASTSERVICECHECK$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICESTATE$\t$SERVICEATTEMPT$\t$SERVICESTATETYPE$\t$SERVICEEXECUTIONTIME$\t$SERVICELATENCY$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$\n" >> /usr/local/nagios/var/service-perfdata.out
259
+ }
260
+
261
+ define command{
262
+ command_name check_nrpe
263
+ command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$
264
+ }
265
+