undocumented feature: NRPE/check_nrpe version query command
Thomas Guyot-Sionnest
thomas at zango.com
Thu Feb 21 18:27:17 CET 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Matthias Eble wrote:
> 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.
While it's true it's not explicitly documented, that was my
understanding last time I checked at the --help screen and saw -c as
optional. This is how I set it up - normal check_nrpe on all Linux hosts
and all remote NRPE checks dependent of it.
I agree it would be good to document this in --help; maybe even use that
as a dependency example in the sample config...
Thomas
- --
Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHvbR16dZ+Kt5BchYRAhNdAJ4oVIihecIlTJBlXm8HyEJYKdSnzgCdHgax
qQuxH1OfQTic2T37T/thCvU=
=1xOE
-----END PGP SIGNATURE-----
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
More information about the Developers
mailing list