[Nagiosplug-devel] [PATCH] negate: Let the user specify what	end result of specific return code
    Ton Voon 
    ton.voon at altinity.com
       
    Thu May 24 10:56:21 CEST 2007
    
    
  
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?
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
    
    
More information about the Devel
mailing list