[Nagiosplug-devel] [PATCH] negate: Let the user specify what end result of specific return code
Andreas Ericsson
ae at op5.se
Mon Jun 11 11:49:39 CEST 2007
Ton Voon wrote:
> Hi Andreas,
>
> On 23 May 2007, at 15:46, Andreas Ericsson wrote:
>
>> This patch lets the user specify how to translate the various return
>> codes from the commands the negate plugin runs, rather than just
>> having
>> the hardcoded option to go with.
>>
>> This is specified as such:
>> --critical=warning (to make critical translate to warning)
>> --warning=ok
>>
>
> This looks interesting and I wrote some tests to try this out, but I
> don't appear to be getting the right results. Could have a look at it?
>
Oh gawds, this went dormant for a long time. Higher prio projects, illness
and vacations came in between.
I happened to build the patch from the wrong branch. The correct one is attached.
> The tests are in plugins/t/negate.pl. To run them you have to run:
>
> cd plugins
> NPTEST_DEBUG=1 perl t/negate.pl
>
> Have I misunderstood how your options are meant to be used?
>
> Ton
>
> http://www.altinity.com
> T: +44 (0)870 787 9243
> F: +44 (0)845 280 1725
> Skype: tonvoon
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________________
> Nagios Plugin Development Mailing List Nagiosplug-devel at lists.sourceforge.net
> Unsubscribe at https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel
> ::: Please include plugins version (-v) and OS when reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
--
Andreas Ericsson andreas.ericsson at op5.se
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231
-------------- next part --------------
A non-text attachment was scrubbed...
Name: negate-status-select.patch
Type: text/x-patch
Size: 11380 bytes
Desc: not available
URL: <http://nagios-plugins.org/archive/devel/attachments/20070611/1257e2a7/attachment.bin>
More information about the Devel
mailing list