Changeset 468
- Timestamp:
- 05/22/08 11:41:39 (8 months ago)
- Files:
-
- trunk/lib/deprec/recipes/nagios.rb (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/deprec/recipes/nagios.rb
r446 r468 229 229 :url => "http://easynews.dl.sourceforge.net/sourceforge/nagios/nrpe-2.11.tar.gz", 230 230 :unpack => "tar zxfv nrpe-2.11.tar.gz;", 231 :configure => "./configure --with-nagios-user=#{nagios_user} --with-nagios-group=#{nagios_group} ;",231 :configure => "./configure --with-nagios-user=#{nagios_user} --with-nagios-group=#{nagios_group} #{ '--enable-command-args' if nrpe_enable_command_args};", 232 232 :make => 'make all;', 233 233 :install => 'make install-plugin; make install-daemon; make install-daemon-config;' … … 235 235 236 236 namespace :nrpe do 237 238 set :nrpe_enable_command_args, false # set to true to compile nrpe to accept arguments 239 # note that you'll need to set it before these recipes are loaded (e.g. in .caprc) 237 240 238 241 task :install do … … 278 281 deprec2.push_configs(:nagios, SYSTEM_CONFIG_FILES[:nrpe]) 279 282 # XXX should really only do this on targets 280 sudo "/etc/init.d/xinetd restart" 283 sudo "/etc/init.d/xinetd stop" 284 sudo "/etc/init.d/xinetd start" 281 285 end 282 286
