I need to check CPU Load on a host and alert when CPU load is lower then x, so I tried using the ':' and range 'x:x' warning and critical thresholds, but that does not appear to work?
At first it seemd to work:
Code: Select all
/usr/local/nagios/libexec/check_nrpe -H myserver -t 120 -c check_load -a '-w 16.0:,14.0:,12.0: -c 24.0:,22.0:,20.0:'
CRITICAL - load average: 6.79, 6.39, 6.24|load1=6.790;16.000;24.000;0; load5=6.390;0.000;0.000;0; load15=6.240;0.000;0.000;0;
Code: Select all
/usr/local/nagios/libexec/check_nrpe -H myserver -t 120 -c check_load -a '-w 3.0:,2.0:,1.0: -c 4.0:,3.0:,2.0:'
CRITICAL - load average: 6.57, 6.35, 6.23|load1=6.570;3.000;4.000;0; load5=6.350;0.000;0.000;0; load15=6.230;0.000;0.000;0;
Grtz
Willem