Re: [Nagios-devel] undocumented feature: NRPE/check_nrpe version

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] undocumented feature: NRPE/check_nrpe version

Post by Guest »

Marcus Fleige schrieb:
> Hi,
>
> Matthias Eble schrieb am 21.02.2008 16:57 Uhr:
>> Hi Ethan, hi list,
>>
>> I found the internal _NRPE_CHECK command in the nrpe sources some months
>> ago and found it very useful.
>> It can be used to remotely query nrpe's version:
>>
>> # check_nrpe -H somehost -c _NRPE_CHECK
>> NRPE v2.8.1
>>
>
> Doesn't "check_nrpe -H somehost" do exactly the same? :-)

well, yes because

#define DEFAULT_NRPE_COMMAND "_NRPE_CHECK" /* check version of NRPE
daemon */
...
(command_name==NULL)?DEFAULT_NRPE_COMMAND:command_name);

However, I couldn't find any documentation about it.
check_nrpe --help only defines -c to be optional.








This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked