Page 2 of 2

Re: How to get the IP where come the nrpe_check

Posted: Wed Sep 26, 2018 11:54 am
by lmiltchev
You are welcome!

Re: How to get the IP where come the nrpe_check

Posted: Wed Sep 26, 2018 12:51 pm
by mcapra
I would think functionality could be added to NRPE to have a $_SENDER_IP_ADDRESS_$ style macro exposed to command definitions, but man I am having trouble justifying that when args can solve this just as easily without a ton of extra work. Nagios Core already has macros that represent all the various bits of a host/service object you could ever need which could be passed to the check_nrpe command and interpreted as arguments in the NRPE-side command definitions.

That said, if you did want macros for request metadata to be made available to NRPE command definitions, it's something you could request on GitHub:
https://github.com/NagiosEnterprises/nrpe/issues

Re: How to get the IP where come the nrpe_check

Posted: Wed Sep 26, 2018 2:20 pm
by scottwilkerson
I agree, you can really pass whatever you want from Nagios, I'd have a real hard time justifying the addition to NRPE