On Thu, Oct 15, 2009 at 06:29, Matt <[email protected]> wrote:
> We've been looking at plugging in Ganglia with Xymon. Can anyone
> point us to where Ganglia holds the threshold values for what it
> alerts on for each metric? Do they come from the client? or are they
> in the PHP web code?
The gmond.conf file specifies thresholds for when to send metrics if
they have changed "enough" since the last update. For example, from a
gmond.conf file I have laying around:
/* This group collects the number of running and total processes */
collection_group {
collect_every = 80
time_threshold = 950
metric {
name = "proc_run"
value_threshold = "1.0"
title = "Total Running Processes"
}
metric {
name = "proc_total"
value_threshold = "1.0"
title = "Total Processes"
}
}
This stanza defines two metrics: proc_run and proc_total. Both of
them are collected by the daemon every 80 seconds. Both metrics are
sent at most every 950 seconds. Additionally, within that 950
seconds, if either metric changes (up or down) by more than the
threshold value of 1.0, both metrics are sent sooner.
So two examples:
1) Collect both metrics at time 0. Neither metric changes 11 polling
cycles (880 seconds). At 950 seconds, both metrics will be sent, even
though they haven't changed.
2) Collect both metrics at time 0. Eighty seconds later, gmond
collects the metrics, and finds that proc_run has increased by one.
Both metrics are sent.
> We'd like to be able to modify the thresholds to suit.
Assuming these are the thresholds you want, take a look at gmond.conf,
and tinker away. There are more details in the gmond.conf man page,
including information on default timeouts, and the "collect_once"
option.
--
Jesse Becker
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Ganglia-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-general