Chech CPU load

Hi -

I’ve tried checking CPU load using the below command:
check_procs -m CPU -w 90 -c 95
(is the above command correct)

In order to differentiate it from the default check_procs command,I’ve defined this as a new command name check_procs_cpu and used the command I’ve listed above inside it. (is this the correct of doing it)

I’ve defined the same above command in the host nrpe.cfg
However, I get the error:
check_procs: Warning Process Count must be an integer!

What’s the correct way of passing the arguments here?

/usr/local/nagios/libexec/check_procs --help
Checks all processes and generates WARNING or CRITICAL states if the specified
metric is outside the required threshold ranges. The metric defaults to number
of processes. Search filters can be applied to limit the processes to check.

**
/usr/local/nagios/libexec/check_load --help
This plugin tests the current system load average.
**

When I test it from the localhost it works fine:
localhost bash 3.0# /usr/local/nagios/libexec/check_procs -m CPU -w 90 -c 95
CPU OK: 3197 processes

So why does it still show up this error from the Nagios server?
Status Information: check_procs: Warning Process Count must be an integer!

check procs does not check the cpu load… (which is you thread title)

if it doesn’t pass the right arguments there’s probably something in between… how is the check_nrpe defined?

check your logs to start :slight_smile: