check_proc --metric=CPU - alternatives?

Sebastian Ries Sebastian.Ries at dtnet.de
Fri Aug 13 12:10:47 CEST 2010


Hi

> According to the documentation, the -n option is used to give a regex
> which selects which process(es) you are monitoring and the -u option
> should work on the sum of the CPU for those selected processes only.
> 
> The example given is:
> 
> ./check_snmp_process.pl -H 127.0.0.1 -C public -n http -w 3,8 -c 0,15
> -m 9,25 -u 70,99

This is what I tried but as I described all processes have the same
name :-(

> which should alert if the total cpu of all processes haveing 'http' in
> the name is > 70.

And I want to get an alert if ANY of these processes uses more than the
given value.

> To get the plugin to do exactly what you describe, you will need to
> edit the perl code a bit.  Bear in mind that you can never have more
> than one process using >90% cpu in the same period!

Not really true ;-)
As this machine has 8 real CPU-Cores with HT enabled there can be up to
16 Processes with more than 90% CPU usage ;-)

I will have a look in the perl code. Maybe it is a only small
adaption...

Regards
Sebastian Ries

-- 
------------------------------------------------------------
DT Netsolution GmbH -  Talaeckerstr. 30 -  D-70437 Stuttgart
Tel: +49-711-849910-36               Fax: +49-711-849910-936
WEB: http://www.dtnet.de/     email: Sebastian.Ries at dtnet.de

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list