[Nagiosplug-help] Can "allowed host" checks in NRPE be disabled for testing?
Andreas Ericsson
ae at op5.se
Fri Jun 10 12:34:50 CEST 2005
Ralph Seichter wrote:
> Hi everybody,
>
> I'm trying to set up NRPE and I got stuck with the allowed_hosts
> parameter in nrpe.cfg. If I read nrpe.c correctly, allowed_hosts has
> to contain at least one IP address or is_an_allowed_host() always
> returns false and thus no client can query the NRPE daemon. I want
> to allow the following setup:
>
> Server A (Dynamic IP, Nagios) --> Server B (NRPE via TLS)
>
> Is there any way to disable the allowed_hosts verification (apart
> from patching the source)?
No, but if you put
return 1;
right at the top of is_an_allowed_host(), you'll get the results you
want. It's a very small modification, and you seem to have found the spot.
--
Andreas Ericsson andreas.ericsson at op5.se
OP5 AB www.op5.se
Lead Developer
More information about the Help
mailing list