Hi all,
I'm trying to create my python metric modules as versatile as
possible, but i'm not sure exactly how they are supposed to be used.
For instance, i've got a python script that grabs open files for a
process. Can I invoke this module multiple times with different
pyconf files? and if so, how do I change the metric name? I don't
really want to use multiple descriptors, as I don't want to check for
processes I know that are not on the server. example:
The lsof.py script has a descriptor for lsof, can I use the same
lsof.py for two pyconf files? won't the metrics both show up as lsof?
Or do I need a different lsof.py for every process/metric I want to
capture?
# webserver.pyconf
modules {
module {
name = "lsof"
language = "python"
param name {
value = "httpd"
}
}
}
collection_group {
collect_every = 30
time_threshold = 60
metric {
name = "lsof"
title = "Web Server open files"
value_threshold = 1.0
}
}
#crawler.conf
modules {
module {
name = "lsof"
language = "python"
param processname {
value = "crawler"
}
}
}
collection_group {
collect_every = 30
time_threshold = 60
metric {
name = "lsof"
title = "crawler open files"
value_threshold = 1.0
}
}
Thanks,
Matt
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Ganglia-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-general