How to get the IP where come the nrpe_check
Re: How to get the IP where come the nrpe_check
You are welcome!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: How to get the IP where come the nrpe_check
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
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/
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
I agree, you can really pass whatever you want from Nagios, I'd have a real hard time justifying the addition to NRPE