confused about SSL and NON-ssl on same server (nrpe)

Mikael Fridh frimik at gmail.com
Sun Sep 14 09:35:57 CEST 2008


On Fri, Sep 12, 2008 at 9:48 PM, Terry Davis <terrybdavis at gmail.com> wrote:
> On Fri, Sep 12, 2008 at 2:42 PM, Julie <islandjewel at gmail.com> wrote:
>>
>> Hi,
>>
>> Trying to run a configuration with mostly nrpe using SLL but about a dozen
>> of the boxes are older and internal, but WITHOUT openssl. nrpe compiles
>> fine, but I am confused about how I should be setting up my main server so
>> most of the hosts are using the normal ssl nrpe and these dozen will use
>> non-ssl. There must be an easy way without lots of editing - I hope.
>>
>> I did verify everything - check_nrpe -n some-host returns and fails if I
>> leave off -n. Then all the other hosts work fine in ssl mode.
>>
>> Any tips or help would be greatl appreciate..
>>
>> Thanks
>> ~J~
>>
>
> Hi Julie,
>
> If I am tracking what you are saying, you want your nagios server to be able
> to talk to both SSL and non-SSL NRPE agents.  If that's the case, simply
> create two commands and use the non-SSL where appropriate:
>
> define command{
>         command_name    check_nrpe_ssl
>         command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$
>         }
>
> define command{
>         command_name    check_nrpe_nossl
>         command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -n -c $ARG1$
>         }
>

I would prefer to define it as a custom var on the host level, either
in templates or on each host:

define host{
  host_name specialhost
  _nrpeflags -n
  }

define command{
  command_name check_nrpe
  command_line $USER1$/check_nrpe $_HOSTNRPEFLAGS$ -H $HOSTADDRESS$ -c $ARG1$
  }


I don't have a nagios box here at the moment where I can
test it on, but I wonder if the interpolation is ok for those hosts where
the _nrpeflags var is missing:

define host{
  host_name specialhost
  }

Or if you need to do this:
define host{
  host_name normalhost
  _nrpeflags " "
  }

effectively "nulling" it.

If it works without "nulling" the variable on all other hosts, you'll
only need to modify two places:
each host which is the special case you're describing, and the nrpe
command definition.

--
Fridh

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list