How have others handled collecting metrics which must be gathered as a user
different than the user which gmond runs under?
Background/Example of my situation:
In Java 1.6 two new experimental utilities were added: jps and jstat. The
former is essentially the Unix ps command for java processes. The latter
interrogates a JVM and reports on statistics like heap size and
utilization. (Specific details:
http://java.sun.com/javase/6/docs/technotes/tools/index.html#monitor)
I've written a python module for Ganglia to find my JVM using jps and then
get metrics using jstat so it would look something similar to:
[u...@server1 bin]$ jps -lv
19911 sun.tools.jps.Jps -Dapplication.home=/opt/SDK/jdk -Xms8m
3897 com.sun.enterprise.server.PELaunch
[u...@server1 bin]$ jstat -gc 3897
S0C S1C S0U S1U EC EU OC OU PC
PU YGC YGCT FGC FGCT GCT
3264.0 3264.0 0.0 1058.9 26240.0 23502.1 736168.0 226873.6 179112.0
107394.5 3485 118.810 130 22.759 141.569
I have a pretty vanilla Ganglia install setup like many of the tutorials
Google returns which means gmond is running as user=nobody as specified in
the globals section of gmond.conf. The problem with jps and jstat is they
must run as the same user as when the JVM was started (in my instance let's
say this is a user named app). I could set user=app in my gmond.conf and
everything should work. But I like having my ganglia processes running as a
different user just from an organization perspective. Also, I expect in the
near future I to be monitoring something else on this server running as a
different user.
Has anyone else encountered a similar scenario and how have you gotten
around this?
TIA,
chuck
--
Chuck Clark • [email protected]
Pulse Energy • A member of the Small Energy Group • pulseenergy.com
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Ganglia-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-general