[Nagiosplug-devel] Plugin guideline suggestion

Voon, Ton Ton.Voon at egg.com
Wed Jan 19 00:30:25 CET 2005


Maybe I haven't asked the right question, so let me try again: what are you
trying to solve with these version identifiers?

Just because it is easy doesn't mean that it should be done. I note that
your and Andrea's suggestion of #ident has the disclaimer "isn't supported
by all compilers" which immediately makes me reticent.

The --version is (currently) the official way and if there are any plugins
that do not have this, then I am more than happy to accept patches for this.
But I don't want to introduce "another way" for the sake of it. Unless you
have a very good reason.

-----Original Message-----
From: Jason Martin [mailto:jhmartin at toger.us] 
Sent: 18 January 2005 16:20
To: nagiosplug-devel at lists.sourceforge.net
Subject: Re: [Nagiosplug-devel] Plugin guideline suggestion


On Tue, Jan 18, 2005 at 08:23:52AM -0000, Voon, Ton wrote:
> While I think this suggestion has merit, we usually use check_xxx 
> --version to grab the version number (which also displays the release 
> version too). Is there a specific reason you want the what 
> identifiers?
I've found that --version isn't uniformly handled in the plugins. Some look
for -V, --version, -v, and so on.  Adding support for --version to all the
plugins would entail making some large enhancements to some of them as they
aren't using getopts at all (such as many of the contrib ones). Adding the
what/ident idenfiers is very easy to do in all languages since one just has
to either enter a comment or define a string variable. Updating all the
existing plugins to do this would be very easy.

--version also requires that the plugin work. If there are any libraries /
modules missing then the plugin can't execute to return the data. what/ident
does not require the plugin be in working order.

-Jason Martin
-- 
This message is PGP/MIME signed.

-----------------------------------------
Egg is a trading name of the Egg group of companies which includes: Egg plc
(reg no 2448340), Egg Financial Products ltd (reg no 3319027), Egg
International ltd (reg no 4059266), Egg Financial Intermediation ltd (reg
no 382828), Egg Investments ltd (reg no 3403963) and Egg Banking plc (reg
no 2999842.  Egg Investments Ltd, Egg Banking plc and Egg Financial
Intermediation Ltd are authorised and regulated by the Financial Services
Authority (FSA) and are entered in the FSA register under numbers 190518,
205621 and 309551 respectively. These members of the Egg group are
registered in England and Wales. Registered offices: 1 Waterhouse Square,
138-142 Holborn, London EC1N 2NA.    This e-mail is confidential and for
use by the addressee only.  If you are not the intended recipient of this
e-mail and have received it in error, please return the message to the
sender by replying to it and then delete it from your mailbox.  Internet
e-mails are not necessarily secure. The Egg group of companies do not
accept responsibility for changes made to this message after it was sent.
Whilst all reasonable care has been taken to avoid the transmission of
viruses, it is the responsibility of the recipient to ensure that the
onward transmission, opening or use of this message and any attachments
will not adversely affect its systems or data. No responsibility is
accepted by the Egg group of companies in this regard and the recipient
should carry out such virus and other checks as it considers appropriate.
This communication does not create or modify any contract.





More information about the Devel mailing list