author | Sebastian Harl <sh@teamix.net> | |
Fri, 8 Apr 2011 08:18:48 +0000 (10:18 +0200) | ||
committer | Sebastian Harl <sh@teamix.net> | |
Fri, 8 Apr 2011 08:18:48 +0000 (10:18 +0200) | ||
commit | 01e4cac11482ad955e752acf5e86749e8c97b0b2 | |
tree | 9ab8fe1e028a687f79f48fa892a30b0e9a22b009 | tree | snapshot |
parent | 1bc7a4a198aefde2389c9c1685baed0da7856bf5 | commit | diff |
check_procs: Use the range/threshold support functions from libnagiosplug.
This adds support for @<range> and makes stuff a bit simpler by removing code
duplications.
Note: Previously, the compatibility code for 'check_procs <warn> <max>'
accepted something like 'check_procs -w 10:-1 -c 10:-1 20 50' as well
(treating it as if '-w 10:20 -c 10:50' was specified). This is no longer the
case … additional arguments are only used as warn/crit thresholds in case
-w/-c is not specified at all.
This adds support for @<range> and makes stuff a bit simpler by removing code
duplications.
Note: Previously, the compatibility code for 'check_procs <warn> <max>'
accepted something like 'check_procs -w 10:-1 -c 10:-1 20 50' as well
(treating it as if '-w 10:20 -c 10:50' was specified). This is no longer the
case … additional arguments are only used as warn/crit thresholds in case
-w/-c is not specified at all.
plugins/check_procs.c | diff | blob | history |