[nagios-plugins] check_range function in utils.sh (#4)

Alex Griffin <reply+i-4176218-ae5237155f5db8117512c30807a450a0b489f8cb-71850-EymDizFzQUca5t4wFMVjgA@public.gmane.org>
Newsgroups gmane.network.nagios.plugins.devel
Message-ID <[email protected]>
Shell plugins should be able to work with standard nagios plugin ranges, but this is really tedious to do in shell scripts so nobody does. I've written a comprehensive shell function that mirrors the check_range C function from utils_base.c (except that it also parses the range string so it has an extra return path for bad input) and I think it should be included by default.

You can merge this Pull Request by running:

  git pull https://github.com/laziac/nagios-plugins master

Or you can view, comment on it, or merge it online at:

  https://github.com/nagios-plugins/nagios-plugins/pull/4

-- Commit Summary --

* Added check_range shell function to utils.sh.in

-- File Changes --

M plugins-scripts/utils.sh.in (85)

-- Patch Links --

  https://github.com/nagios-plugins/nagios-plugins/pull/4.patch
  https://github.com/nagios-plugins/nagios-plugins/pull/4.diff

--- 
Reply to this email directly or view it on GitHub:
https://github.com/nagios-plugins/nagios-plugins/pull/4

------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________________
Nagios Plugin Development Mailing List Nagiosplug-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.