[Nagiosplug-help] check_nrpe idea

Arnold Cano arnoldc at mcmservice.com
Wed Apr 28 14:20:10 CEST 2004


On Wed, 2004-04-28 at 16:04, Cook, Garry wrote:
> > The problem I find is when check_nrpe tries to forward the
> > request with
> > -a arguments that contain spaces like so...
> > 
> > services.cfg
> > define service {
> >   ...
> >   check_command
> > indirect_check_nrpe!<ip_of_first_machine>!check_nrpe!service_nrpe_nt
> > "Event Log" }
> > 
> > Debugging on the client side shows that the only thing the client nrpe
> > gets is "Event" in stead of "Event Log". I've even tried adding
> > additional double quotes, escaped quotes, etc with no luck.
> > 
> Have you tried to backslash escape the space like this:
> Event\ Log
> Or perhaps with the quotes:
> "Event\ Log"

Thanks Garry.

I just tried it both ways and I get the same result where the client
receives "Event" instead of "Event Log". I think it may be that nrpe or
windows do not respect the escaped space.

> 
> > Granted, there may be a better way to handle this altogether
> > but this is
> > the simplest form I could come up with. This is why I think having a
> > configurable -a command separator may help.
> > 
> > Arnold
> 
> Garry W. Cook, CCNA
> Network Infrastructure Manager
> MACTEC, Inc. - http://www.mactec.com/
> 303.308.6228 (Office) - 720.220.1862 (Mobile)
> 





More information about the Help mailing list