nagios-plugins/nagios-plugins — pull request #4 by laziac (2012-04-18 16:56:15+00:00)
Title: check_range function in utils.sh

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.