RE: [Ganglia-general] PHP front end: has anyone modified the load metric color / computation?

2006-01-04 Thread Martin Knoblauch
Alexei,

 Richard seems to be closer to the solution. The problem is the
definition of the funtion load_color in functions.php. Everything
above a load of 1.0 is considered to be a problem case. Same with the
function load_image. It would likely make sense to introduce a
scaling variable in conf.php (default 1.0) and work that into the two
functions. Can you play a bit around and show us the code that makes
you happy?

 The problem is that the threshold for high load is very subjective. On
a HPC Machine everything above 1 (per CPU or core) is likely bad. For a
web/file/database server, this might be totally different.

Cheers
Martin

--- [EMAIL PROTECTED] wrote:

 Of you could hack the load value itself by dividing by 5 in
 cluster_view.php.
  
 regards,
 richard
  
 p.s.
 this is a bit yuk, but is certainly easy.
 
   -Original Message-
   From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of
 Alexei
 Rodriguez
   Sent: 04 January 2006 07:05
   To: ganglia-general@lists.sourceforge.net
   Subject: [Ganglia-general] PHP front end: has anyone modified
 the load metric color / computation?
   
   
   Greetings. First off, I want to say that ganglia rocks. It has
 been a very valuable tool in the short time we have had it deployed,
 and
 we are only using the very basic things.
   
   The load on our systems tends to be high (5.0 and above), on
 Solaris 10 systems (on AMD Opteron servers). The problem is that the
 graphs being generated are all of the same color (bright, bloody
 red).
 Given that all the systems have such high (relative) loads, I wanted
 to
 see what the best way of changing the PHP front end to reflect my
 local
 colors and load scheme.
   
   If I change $load_colors in php.conf, such that the number
 ranges are multiplied by 5x, would that work or is there a better
 way?
   
   I just want to make sure that the solution I implement does not
 make upgrades difficult :)
   
   
   thanks!
   
   
   Alexei
   
   
 
 
 


 For more information about Barclays Capital, please
 visit our web site at http://www.barcap.com.
 
 
 Internet communications are not secure and therefore the Barclays 
 Group does not accept legal responsibility for the contents of this 
 message.  Although the Barclays Group operates anti-virus programmes,
 
 it does not accept responsibility for any damage whatsoever that is 
 caused by viruses being passed.  Any views or opinions presented are 
 solely those of the author and do not necessarily represent those of
 the 
 Barclays Group.  Replies to this email may be monitored by the
 Barclays 
 Group for operational or business reasons.
 


 
 


--
Martin Knoblauch
email: k n o b i AT knobisoft DOT de
www:   http://www.knobisoft.de



Re: [Ganglia-general] PHP front end: has anyone modified the load metric color / computation?

2006-01-04 Thread Martin Knoblauch
--- Alexei Rodriguez [EMAIL PROTECTED] wrote:

 These changes accomplish what I was looking for. Thanks! Now I don't
 have a sea of red that my users ask me about ;)
 
 I do think this is a good knob to have. Thank you very much!
 
 Alexei
 
Alexei,

 good. This will be in 3.0.3.

Cheers
Martin

--
Martin Knoblauch
email: k n o b i AT knobisoft DOT de
www:   http://www.knobisoft.de