Changeset 468

Show
Ignore:
Timestamp:
05/22/08 11:41:39 (8 months ago)
Author:
mbailey
Message:

option nrpe_enable_command_args compiles nrpe to accept arguments.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/deprec/recipes/nagios.rb

    r446 r468  
    229229      :url => "http://easynews.dl.sourceforge.net/sourceforge/nagios/nrpe-2.11.tar.gz", 
    230230      :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};", 
    232232      :make => 'make all;', 
    233233      :install => 'make install-plugin; make install-daemon; make install-daemon-config;' 
     
    235235     
    236236    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) 
    237240     
    238241      task :install do 
     
    278281        deprec2.push_configs(:nagios, SYSTEM_CONFIG_FILES[:nrpe]) 
    279282        # 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"   
    281285      end 
    282286