Re: [Ganglia-general] newbie question [2] - customize ganglia-web templates

2010-11-29 Thread Jesse Becker
Your four steps below look correct to start a new template.

On Fri, Nov 19, 2010 at 11:22, Chris Hunter chris.hun...@yale.edu wrote:
 The ganglia-web sub-directory templates/defaults has the files:
 cluster_extra.tpl  header-nobanner.tpl  images             show_node.tpl
 cluster_view.tpl   header.tpl           meta_view.tpl
 footer.tpl         host_extra.tpl       node_extra.tpl
 grid_tree.tpl      host_view.tpl        physical_view.tpl

 If I want to create a custom template with a new header logo, I would:

 1) create a new subdirectory templates/new
 2) copy the file templates/default/header.tpl to templates/new/header.tpl
 3) edit templates/new/header.tpl with my new logo
 4) edit conf.php for Stemplate_name = new;

 Does this makes sense ?

 Thanks,

 Chris Hunter
 Yale University

 Hi,

 I have been maintaining an instance of ganglia 3.0.3 installed by my
 predecessor. The last guy was a php programmer and did all sorts of
 fancy things to our ganglia frontend.

 I am starting a fresh install of ganglia 3.1.7; I have the basics done.
 I have our gmond-3.0.x clusters talking to the gmetad-3.1.7 host. I have
 the web frontend running.

 Next I want to create a custom template. I'll start with simple stuff
 like adding a custom logo bitmap to the metapage, maybe some URL links
 to our department website, etc.

 Can anyone point me to some documentation about creating custom
 templates ? What is 'best practice' to integrate a template with a
 ganglia-3.1.x installation ?

 Thank-you in advance,

 Chris Hunter
 Yale University



 --
 Beautiful is writing same markup. Internet Explorer 9 supports
 standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
 Spend less time writing and  rewriting code and more time creating great
 experiences on the web. Be a part of the beta today
 http://p.sf.net/sfu/msIE9-sfdev2dev
 ___
 Ganglia-general mailing list
 Ganglia-general@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/ganglia-general




-- 
Jesse Becker

--
Increase Visibility of Your 3D Game App  Earn a Chance To Win $500!
Tap into the largest installed PC base  get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
___
Ganglia-general mailing list
Ganglia-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-general


Re: [Ganglia-general] newbie question - web frontend templates

2010-11-29 Thread Bostjan Skufca
We are not using TemplatePower anymore, and have moved to using the
Dwoo package instead.

I would be glad to know this before I started making customizations to
frontend, just 3 weeks ago. I know, my fault, I did not ask about it
:)
Anyway, I seriously hope that Dwoo supports 'if' statement in
templates. Working without it kinda sucks (TemplatePower).

Any move towards an OO frontend? Because current code is a mess... (no
disrespect intended, just personal observation).

b.



On 29 November 2010 15:30, Jesse Becker haw...@gmail.com wrote:
 There isn't any specific documentation about making a new template
 (alas!).  There isn't even something as simple as a list of variables
 which will be expanded in the HTML template files. :-/

 I suggest that you make a copy of the GANGLIA_WWW/template/default
 directory, and start making your changes from there.  The variables
 are pretty obvious.

 Also, note that the templating engine has *changed* in the trunk
 release.  We are not using TemplatePower anymore, and have moved to
 using the Dwoo package instead.  I believe that the forthcoming 3.2.0
 release will use this.  Dwoo has a similar, but different template
 language, and I suggest that you make your changes against trunk, and
 not the 3.1.x series.

 On Thu, Nov 18, 2010 at 17:07, Chris Hunter chris.hun...@yale.edu wrote:
 Hi,

 I have been maintaining an instance of ganglia 3.0.3 installed by my
 predecessor. The last guy was a php programmer and did all sorts of
 fancy things to our ganglia frontend.

 I am starting a fresh install of ganglia 3.1.7; I have the basics done.
 I have our gmond-3.0.x clusters talking to the gmetad-3.1.7 host. I have
 the web frontend running.

 Next I want to create a custom template. I'll start with simple stuff
 like adding a custom logo bitmap to the metapage, maybe some URL links
 to our department website, etc.

 Can anyone point me to some documentation about creating custom
 templates ? What is 'best practice' to integrate a template with a
 ganglia-3.1.x installation ?

 Thank-you in advance,

 Chris Hunter
 Yale University

 --
 Beautiful is writing same markup. Internet Explorer 9 supports
 standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
 Spend less time writing and  rewriting code and more time creating great
 experiences on the web. Be a part of the beta today
 http://p.sf.net/sfu/msIE9-sfdev2dev
 ___
 Ganglia-general mailing list
 Ganglia-general@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/ganglia-general




 --
 Jesse Becker

 --
 Increase Visibility of Your 3D Game App  Earn a Chance To Win $500!
 Tap into the largest installed PC base  get more eyes on your game by
 optimizing for Intel(R) Graphics Technology. Get started today with the
 Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
 http://p.sf.net/sfu/intelisp-dev2dev
 ___
 Ganglia-general mailing list
 Ganglia-general@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/ganglia-general


--
Increase Visibility of Your 3D Game App  Earn a Chance To Win $500!
Tap into the largest installed PC base  get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
___
Ganglia-general mailing list
Ganglia-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-general


Re: [Ganglia-general] newbie question - web frontend templates

2010-11-29 Thread Chris Hunter
Besides Rocks are there any other custom templates generally available ?
I really don't know _what_ we can do with templates. The _how_ part I 
could figure out from other custom templates.

So, what are templates used for ?

Thanks,
Chris Hunter
Yale University

Jesse Becker wrote:
 There isn't any specific documentation about making a new template
 (alas!).  There isn't even something as simple as a list of variables
 which will be expanded in the HTML template files. :-/
 
 I suggest that you make a copy of the GANGLIA_WWW/template/default
 directory, and start making your changes from there.  The variables
 are pretty obvious.
 
 Also, note that the templating engine has *changed* in the trunk
 release.  We are not using TemplatePower anymore, and have moved to
 using the Dwoo package instead.  I believe that the forthcoming 3.2.0
 release will use this.  Dwoo has a similar, but different template
 language, and I suggest that you make your changes against trunk, and
 not the 3.1.x series.
 
 On Thu, Nov 18, 2010 at 17:07, Chris Hunter chris.hun...@yale.edu wrote:
 Hi,

 I have been maintaining an instance of ganglia 3.0.3 installed by my
 predecessor. The last guy was a php programmer and did all sorts of
 fancy things to our ganglia frontend.

 I am starting a fresh install of ganglia 3.1.7; I have the basics done.
 I have our gmond-3.0.x clusters talking to the gmetad-3.1.7 host. I have
 the web frontend running.

 Next I want to create a custom template. I'll start with simple stuff
 like adding a custom logo bitmap to the metapage, maybe some URL links
 to our department website, etc.

 Can anyone point me to some documentation about creating custom
 templates ? What is 'best practice' to integrate a template with a
 ganglia-3.1.x installation ?

 Thank-you in advance,

 Chris Hunter
 Yale University

 --
 Beautiful is writing same markup. Internet Explorer 9 supports
 standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
 Spend less time writing and  rewriting code and more time creating great
 experiences on the web. Be a part of the beta today
 http://p.sf.net/sfu/msIE9-sfdev2dev
 ___
 Ganglia-general mailing list
 Ganglia-general@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/ganglia-general

 
 
 


--
Increase Visibility of Your 3D Game App  Earn a Chance To Win $500!
Tap into the largest installed PC base  get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
___
Ganglia-general mailing list
Ganglia-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-general


Re: [Ganglia-general] newbie question - web frontend templates

2010-11-29 Thread Jesse Becker
A custom template was created for the Job Monarch project that
attempts to displace queue stats on cluster_view pages within ganglia.
 See https://subtrac.sara.nl/oss/jobmonarch/wiki/Documentation/Screenshots
for examples.

The answer to what? is anything you'd like.  The templates are
HTML based, with various template-related syntactic bits sprinkled
throughout.  They define almost everything about the webpages--the
layout, the look, the interface, navigation, etc.

You can, if you want, make a template that just dumps all of the rrd
files for a single metric, across all hosts (similar to MRTG, I
suppose).  or, you could re-do the entire interface with lots of
javascript and other stuff with a completely new look.  However,
that will almost certainly require changes to the various php files as
well.  Unfortunately, the PHP code and the templates are pretty
closely intertwined--thus the recent discussion about a front-end
rewrite.



On Mon, Nov 29, 2010 at 12:04, Chris Hunter chris.hun...@yale.edu wrote:
 Besides Rocks are there any other custom templates generally available ?
 I really don't know _what_ we can do with templates. The _how_ part I could
 figure out from other custom templates.

 So, what are templates used for ?

 Thanks,
 Chris Hunter
 Yale University

 Jesse Becker wrote:

 There isn't any specific documentation about making a new template
 (alas!).  There isn't even something as simple as a list of variables
 which will be expanded in the HTML template files. :-/

 I suggest that you make a copy of the GANGLIA_WWW/template/default
 directory, and start making your changes from there.  The variables
 are pretty obvious.

 Also, note that the templating engine has *changed* in the trunk
 release.  We are not using TemplatePower anymore, and have moved to
 using the Dwoo package instead.  I believe that the forthcoming 3.2.0
 release will use this.  Dwoo has a similar, but different template
 language, and I suggest that you make your changes against trunk, and
 not the 3.1.x series.

 On Thu, Nov 18, 2010 at 17:07, Chris Hunter chris.hun...@yale.edu wrote:

 Hi,

 I have been maintaining an instance of ganglia 3.0.3 installed by my
 predecessor. The last guy was a php programmer and did all sorts of
 fancy things to our ganglia frontend.

 I am starting a fresh install of ganglia 3.1.7; I have the basics done.
 I have our gmond-3.0.x clusters talking to the gmetad-3.1.7 host. I have
 the web frontend running.

 Next I want to create a custom template. I'll start with simple stuff
 like adding a custom logo bitmap to the metapage, maybe some URL links
 to our department website, etc.

 Can anyone point me to some documentation about creating custom
 templates ? What is 'best practice' to integrate a template with a
 ganglia-3.1.x installation ?

 Thank-you in advance,

 Chris Hunter
 Yale University


 --
 Beautiful is writing same markup. Internet Explorer 9 supports
 standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
 Spend less time writing and  rewriting code and more time creating great
 experiences on the web. Be a part of the beta today
 http://p.sf.net/sfu/msIE9-sfdev2dev
 ___
 Ganglia-general mailing list
 Ganglia-general@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/ganglia-general









-- 
Jesse Becker

--
Increase Visibility of Your 3D Game App  Earn a Chance To Win $500!
Tap into the largest installed PC base  get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
___
Ganglia-general mailing list
Ganglia-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-general


Re: [Ganglia-general] newbie question - web frontend templates

2010-11-29 Thread Bernard Li
Hi Chris:

On Mon, Nov 29, 2010 at 9:04 AM, Chris Hunter chris.hun...@yale.edu wrote:

 Besides Rocks are there any other custom templates generally available ?
 I really don't know _what_ we can do with templates. The _how_ part I
 could figure out from other custom templates.

As far as I know Rocks and Jobmonarch are the only two projects that
have provided Ganglia templates.  Perhaps some other commercial
solutions make use of that, but I'm not too sure.

If development picks up on the templating front, we could add another
section in GitHub for that ;-)

Cheers,

Bernard

--
Increase Visibility of Your 3D Game App  Earn a Chance To Win $500!
Tap into the largest installed PC base  get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
___
Ganglia-general mailing list
Ganglia-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-general


Re: [Ganglia-general] newbie question - web frontend templates

2010-11-29 Thread Bostjan Skufca
 P.S. Any of your customizations could be contributed to the project
 generically? :)

I thought about it and I would do it gladly, but it was/is a
multidirection development process which started with a messy code,
continued with code strips to enhance readability and modifications
which suit my use case.

Let me share the idea and current status first.

I manage disjoint groups of servers and I use ganglia to get a general
overview and metric monitoring with nagios, and if I need closer look
I use collectd on each host (collectd has a whole load of plugins
readily available). For all this to work I had to modify the following
stuff with ganglia:

- python modules for:
--- disk IOPS,
--- disk time,
--- interrupts,
--- context switches
--- process creation rate
--- (I really missed these things in form of a built-in C module)

- additional report graphs for aforementioned plugins and variations
(like average time per disk operation, average network packet size
etc)
- (change RRA definitions - I know this is a custom setting but I was
very disappointed to notice there were no min/max values stored in
RRDs by default)

- created grid overview which displays all report graphs at once (I
skim over this page to get a glance of what is going on) - talking
about 12 report graphs here (graphs are clickable, see below)
- changed grid report view to grid mesh view (or it should be called
cluster mesh) which displays all previously mentioned reports in
per-cluster manner
- click on report graph in grid overview shows clicked graph as first
one in cluster list, so I can easily locate malfunctioning cluster,
click on a report from cluster goes to cluster view and shows given
report for all hosts in cluster (this is standard, I just added html
anchor)

- in grid overview, at each report graph I have a link that takes you
to page which displays given report for each and every host in grid
- in this view I am able to normalize Y-axis scale across all graphs
so I can compare in absolute terms what is going on with each server
in comparison to all others

- in host view, I changed metric graph script to show min/avg/max
values (not supported by distributed version of frontend)

That is basically it.

Now, the code is still a mess and it has become (by my opinion) too
my-environment-specific to be easily adoptable by other users (I
stripped away private clusters, multigrid support is not working, disk
ops reports are mandatory etc).
The whole programming was more of an experiment to see if I can get
this done with ganglia It was successful, it serves it's purpose well
for me, but the code is non-releaseable (I am ashamed of it,
actually:). If one wants a .tar.gz I can send it, but you have been
warned:)

I am thinking of a total rewrite in due time (OO, with ZF templates
probably, should not take more than a day or two for my use case) and
when this happens I will have contributions to the project in mind, I
promise (it makes my life easier if I don't have to modify original
packages:).

b.

PS: If you would like a demo of my custom ganglia frontend (to click
through and see if you like it), send me your static IP and I can open
it up for you for a day or two.



On 29 November 2010 20:04, Bernard Li bern...@vanhpc.org wrote:
 Hi Bostjan:

 On Mon, Nov 29, 2010 at 8:26 AM, Bostjan Skufca bost...@a2o.si wrote:

 I would be glad to know this before I started making customizations to
 frontend, just 3 weeks ago. I know, my fault, I did not ask about it
 :)

 Sorry for not making the announcement more obvious, but the switch
 between TemplatePower to Dwoo is not that bad.  I was able to do the
 switch of the entire web codebase in less than a week.

 But please do let us know if you run into any problems (perhaps better
 discussed in the -developers mailing-list).  And realistically we
 won't be releasing new frontend code for at least a couple of months I
 think, so it depends on your timeline :)

 Anyway, I seriously hope that Dwoo supports 'if' statement in
 templates. Working without it kinda sucks (TemplatePower).

 Yes it does, please see here:

 http://wiki.dwoo.org/index.php/Blocks:if


 Cheers,

 Bernard


--
Increase Visibility of Your 3D Game App  Earn a Chance To Win $500!
Tap into the largest installed PC base  get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
___
Ganglia-general mailing list
Ganglia-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-general


Re: [Ganglia-general] newbie question - web frontend templates

2010-11-18 Thread Auld, Russell G CSC
Anything here http://templatepower.codocad.com/ ?

There is a link to that at the bottom of the 3.1.7-generated front page:
Pages generated using TemplatePower version 3.0.1. 

HTH

 -Original Message-
 From: Chris Hunter [mailto:chris.hun...@yale.edu] 
 Sent: Thursday, November 18, 2010 5:08 PM
 To: ganglia-general@lists.sourceforge.net
 Subject: [Ganglia-general] newbie question - web frontend templates
 
 Hi,
 
 I have been maintaining an instance of ganglia 3.0.3 installed by my 
 predecessor. The last guy was a php programmer and did all sorts of 
 fancy things to our ganglia frontend.
 
 I am starting a fresh install of ganglia 3.1.7; I have the 
 basics done. 
 I have our gmond-3.0.x clusters talking to the gmetad-3.1.7 
 host. I have 
 the web frontend running.
 
 Next I want to create a custom template. I'll start with simple stuff 
 like adding a custom logo bitmap to the metapage, maybe some 
 URL links 
 to our department website, etc.
 
 Can anyone point me to some documentation about creating custom 
 templates ? What is 'best practice' to integrate a template with a 
 ganglia-3.1.x installation ?
 
 Thank-you in advance,
 
 Chris Hunter
 Yale University
 
 --
 
 Beautiful is writing same markup. Internet Explorer 9 supports
 standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
 Spend less time writing and  rewriting code and more time 
 creating great
 experiences on the web. Be a part of the beta today
 http://p.sf.net/sfu/msIE9-sfdev2dev
 ___
 Ganglia-general mailing list
 Ganglia-general@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/ganglia-general
 

--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
___
Ganglia-general mailing list
Ganglia-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-general


Re: [Ganglia-general] Newbie question: No gmetad compiled for me

2009-03-20 Thread Miah, W (Wadud)
The switch for configure for building gmetad is:

--with-gmetad

Type ./configure --help for further information. The '--help' switch is usually 
very helpful :-)

-Original Message-
From: Simon Yan [mailto:simonya...@gmail.com] 
Sent: 20 March 2009 10:12
To: ganglia-general@lists.sourceforge.net
Subject: [Ganglia-general] Newbie question: No gmetad compiled for me

Dear All,

I'm new to ganglia and try to install it manually on a SLES 10.2 HP machine.
This is ganglia 3.1.2(Langley), I get it from sourceforge.net
The issue I'm having is, even though I have configured it by telling
it to compile gmetad as well, but I don't seem to get the expected
gmetad in /usr/sbin. Or even in /usr
./configure itself went on smoothly and I can continue with make and
make install too.

The command I used to configure ganglia is:
pmdl380-01:/usr # ./configure --enable-gmetad --with-libapr=/usr/bin

However:
pmdl380-01:/usr # find ./ -name gmetad
pmdl380-01:/usr #

--
Regards,
益牙

--
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
Ganglia-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-general
-- 
Scanned by iCritical.

--
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
Ganglia-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-general


Re: [Ganglia-general] Newbie question: No gmetad compiled for me

2009-03-20 Thread Simon Yan
2009/3/20 Miah, W (Wadud) wadud.m...@stfc.ac.uk:
 The switch for configure for building gmetad is:

 --with-gmetad

 Type ./configure --help for further information. The '--help' switch is 
 usually very helpful :-)

Miah,

Thanks for the heads up.
I think it's working now as I'm starting to get errors while it's
trying to compile gmetad. ;)
Let me try to see if I can get it fixed.

(Hmm, how come I used enable-gmetad at the first place?)

Anyways, thanks again and sorry folks for the spam with my silly question.


 -Original Message-
 From: Simon Yan [mailto:simonya...@gmail.com]
 Sent: 20 March 2009 10:12
 To: ganglia-general@lists.sourceforge.net
 Subject: [Ganglia-general] Newbie question: No gmetad compiled for me

 Dear All,

 I'm new to ganglia and try to install it manually on a SLES 10.2 HP machine.
 This is ganglia 3.1.2(Langley), I get it from sourceforge.net
 The issue I'm having is, even though I have configured it by telling
 it to compile gmetad as well, but I don't seem to get the expected
 gmetad in /usr/sbin. Or even in /usr
 ./configure itself went on smoothly and I can continue with make and
 make install too.

 The command I used to configure ganglia is:
 pmdl380-01:/usr # ./configure --enable-gmetad --with-libapr=/usr/bin

 However:
 pmdl380-01:/usr # find ./ -name gmetad
 pmdl380-01:/usr #

 --
 Regards,
 益牙

 --
 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
 Ganglia-general@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/ganglia-general
 --
 Scanned by iCritical.






-- 
Regards,
益牙

--
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
Ganglia-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-general


RE: [Ganglia-general] Newbie question - gmond not returning any metrics

2006-05-16 Thread Richard.Grevis
Steve,

it may seem strange, but that is the way gmond behaves.
If in all your gmond instances you specify a single unicast
headnode, the only place you will get the XML data payload
is the headnode. The other nodes dump the DTD and nothing else.

If you want to see the data on each of your workers locally, then
in gmond.conf specify a second send channel, ala:

udp_send_channel {
  host = headnode
  port = 8649
}
udp_send_channel {
  host = 127.0.0.1
  port = 8649
}

regards,
richard

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steve
Webb
Sent: 15 May 2006 19:56
To: ganglia-general@lists.sourceforge.net
Subject: [Ganglia-general] Newbie question - gmond not returning any
metrics


headnode (report01): runs gmetad, gmond and web-frontend and is working 
fine.

workers (worker01, worker02, ...): runs gmond and runs fine, but when 
telnetting to port 8459 (even from worker01 using localhost), I get no 
metrics in the XML:

-
[EMAIL PROTECTED] bin]# telnet localhost 8649
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
?xml version=1.0 encoding=ISO-8859-1 standalone=yes? !DOCTYPE
GANGLIA_XML [
!ELEMENT GANGLIA_XML (GRID|CLUSTER|HOST)*
   !ATTLIST GANGLIA_XML VERSION CDATA #REQUIRED
   !ATTLIST GANGLIA_XML SOURCE CDATA #REQUIRED
!ELEMENT GRID (CLUSTER | GRID | HOSTS | METRICS)*
   !ATTLIST GRID NAME CDATA #REQUIRED
   !ATTLIST GRID AUTHORITY CDATA #REQUIRED
   !ATTLIST GRID LOCALTIME CDATA #IMPLIED
!ELEMENT CLUSTER (HOST | HOSTS | METRICS)*
   !ATTLIST CLUSTER NAME CDATA #REQUIRED
   !ATTLIST CLUSTER OWNER CDATA #IMPLIED
   !ATTLIST CLUSTER LATLONG CDATA #IMPLIED
   !ATTLIST CLUSTER URL CDATA #IMPLIED
   !ATTLIST CLUSTER LOCALTIME CDATA #REQUIRED
!ELEMENT HOST (METRIC)*
   !ATTLIST HOST NAME CDATA #REQUIRED
   !ATTLIST HOST IP CDATA #REQUIRED
   !ATTLIST HOST LOCATION CDATA #IMPLIED
   !ATTLIST HOST REPORTED CDATA #REQUIRED
   !ATTLIST HOST TN CDATA #IMPLIED
   !ATTLIST HOST TMAX CDATA #IMPLIED
   !ATTLIST HOST DMAX CDATA #IMPLIED
   !ATTLIST HOST GMOND_STARTED CDATA #IMPLIED
!ELEMENT METRIC EMPTY
   !ATTLIST METRIC NAME CDATA #REQUIRED
   !ATTLIST METRIC VAL CDATA #REQUIRED
   !ATTLIST METRIC TYPE (string | int8 | uint8 | int16 | uint16 | 
int32 | uint32 | float | double | timestamp) #REQUIRED
   !ATTLIST METRIC UNITS CDATA #IMPLIED
   !ATTLIST METRIC TN CDATA #IMPLIED
   !ATTLIST METRIC TMAX CDATA #IMPLIED
   !ATTLIST METRIC DMAX CDATA #IMPLIED
   !ATTLIST METRIC SLOPE (zero | positive | negative | both | 
unspecified) #IMPLIED
   !ATTLIST METRIC SOURCE (gmond | gmetric) #REQUIRED
!ELEMENT HOSTS EMPTY
   !ATTLIST HOSTS UP CDATA #REQUIRED
   !ATTLIST HOSTS DOWN CDATA #REQUIRED
   !ATTLIST HOSTS SOURCE (gmond | gmetric | gmetad) #REQUIRED
!ELEMENT METRICS EMPTY
   !ATTLIST METRICS NAME CDATA #REQUIRED
   !ATTLIST METRICS SUM CDATA #REQUIRED
   !ATTLIST METRICS NUM CDATA #REQUIRED
   !ATTLIST METRICS TYPE (string | int8 | uint8 | int16 | uint16 | 
int32 | uint32 | float | double | timestamp) #REQUIRED
   !ATTLIST METRICS UNITS CDATA #IMPLIED
   !ATTLIST METRICS SLOPE (zero | positive | negative | both | 
unspecified) #IMPLIED
   !ATTLIST METRICS SOURCE (gmond | gmetric) #REQUIRED
]
GANGLIA_XML VERSION=3.0.3 SOURCE=gmond
CLUSTER NAME=crawl LOCALTIME=1147718840 OWNER=unspecified 
LATLONG=unspecified URL=unspecified
/CLUSTER
/GANGLIA_XML
Connection closed by foreign host.

[EMAIL PROTECTED] bin]# gstat
CLUSTER INFORMATION
Name: crawl
   Hosts: 0
Gexec Hosts: 0
  Dead Hosts: 0
   Localtime: Mon May 15 12:47:46 2006

There are no hosts running gexec at this time
[EMAIL PROTECTED] bin]#
-

I'm guessing that there's no multicast issues since I'm just trying to
get 
gmond to tell me the locahost's stats, right?  Nothing is even leaving
the 
machine at this point, I'm just telnetting to the localhost's port and 
asking for stats.


I compiled the source on report01 and then just copied gmond, gstats  
gmertic to the workers and started them up.  Am I missing something on
the 
workers to collect stats?

- Steve

-- 
EMAIL: (h) [EMAIL PROTECTED]  WEB: http://badcheese.com/~steve



---
Using Tomcat but need to do more? Need to support web services,
security? Get stuff done quickly with pre-integrated technology to make
your job easier Download IBM WebSphere Application Server v.1.0.1 based
on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Ganglia-general mailing list Ganglia-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-general

For more information about Barclays 

Re: [Ganglia-general] newbie question

2003-12-12 Thread Matt Massie
mike-

i think you are right.  the router configuration is the place to look. 
setting the ttl in the header of a multicast packet works more like a
suggestion for the router.  if the router it configured to forward
mulitcast traffic, it will decrement the ttl and pass on the message
otherwise it will just drop the data.

good luck.  i know pitifully little about routers so you'll need to get
the details from someone else.  :)

-matt


On Fri, 2003-12-12 at 07:24, [EMAIL PROTECTED] wrote:
 I am just starting to work with ganglia and have one question.  I am working 
 to setup a cluster where systems reside on two subnets.  I changed the 
 'mcast_ttl' value from 1 to 16.   However the cluster members on subnet A do 
 not see the cluster members on subnet B.  Is there something I am missing.  
 The only other thing I can think of is knowing whether or not the routers 
 propogate multicast traffic
 
 Thanks
 
 
 Mike O'Donnell
 
 
 
 
 
 
 ---
 This SF.net email is sponsored by: SF.net Giveback Program.
 Does SourceForge.net help you be more productive?  Does it
 help you create better code?  SHARE THE LOVE, and help us help
 YOU!  Click Here: http://sourceforge.net/donate/
 ___
 Ganglia-general mailing list
 Ganglia-general@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/ganglia-general


signature.asc
Description: This is a digitally signed message part