[Nagiosplug-devel] [PATCH] negate: Let the user specify what end result of specific return code

Andreas Ericsson ae at op5.se
Wed May 23 16:46:38 CEST 2007


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


Also, this patch breaks argument parsing at the last known argument and
assumes the rest of the command-line is the command intended to run, and
also switches negate from using the legacy spopen interface to the better
runcmd stuff.

The necessary Makefile modifications are included in this patch.


-- 
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: 11298 bytes
Desc: not available
URL: <https://www.monitoring-plugins.org/archive/devel/attachments/20070523/a7fb52ab/attachment.bin>


More information about the Devel mailing list