Check_cpu

Patrick Morris patrick.morris at hp.com
Fri Oct 10 20:53:44 CEST 2008


Hi Hugo!

On Fri, 10 Oct 2008, Hugo van der Kooij wrote:

> Patrick Morris wrote:
> > On Thu, 09 Oct 2008, Michael Fern?ndez M wrote:
> >
> >> Hi,
> >>
> >> Someone knows a plugin to check the cpu, but only if it's at 90% for 5
> >> minutes?
> >>
> >> I do not need to check the cpu peak.....
> >>
> >> Is for Linux... (Centos 5.2)
> >
> > The standard check_cpu can do this.  Set the max to 90 and the retries
> > to 5, one minute apart.  It'll check 5 times and alert if the CPU was
> > over 90 all five times.
> 
> It will take 5 (not so) random snapshots of the CPU usage at that moment.
> 
> If you want to monitor averages you could gather statistics wit RRD and
> read the CPU counter to store those.
> 
> You can then also use RRD to check for the average over the last N minutes.
> 
> Sounds like a fun thing to make. But I get a lot of those
>  in the queue and no immediate need for this particular fun project.

At the risk of belaboring the point, if the goal is to see if CPU
remains over 90% for five minutes, and five samples at one-minute
intervals all say it was over 90%, how would the results be different
if you were sampling the CPU counter and throwing it into RRD?

If the samples were more frequent I can see it being more accurate, but
that could be done either way.  In either case your data's only going to
be as good as your samples and, as far as I can tell, there should be no
appreciable difference between doing it with check_cpu and doing it by
some other method.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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