How to get the IP where come the nrpe_check

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: How to get the IP where come the nrpe_check

Post by lmiltchev »

You are welcome!
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: How to get the IP where come the nrpe_check

Post 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
Former Nagios employee
https://www.mcapra.com/
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: How to get the IP where come the nrpe_check

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked