Hey Francisco, 

Basically, if you can produce a number from any sort of script (then run via 
cron), then it can be graphed with ganglia.
I would take a look at the various scripts people have written in the gmetric 
repository, but I'll give you an example here.
This just takes a snapshot of iostat, and parses the output, and then hands it 
to gmetric which does all of the work:

#!/bin/sh
CLIENT="/usr/bin/gmetric"
/usr/bin/iostat -x 4 2 /dev/hda1 | grep -v ^$ | tail -4 > /tmp/disk-io.tmp

UTIL=`grep cciss /tmp/disk-io.tmp | awk '{print $14}'` 
WRITE=`tail -1 /tmp/disk-io.tmp | awk '{print $9}'`
READ=`tail -1 /tmp/disk-io.tmp | awk '{print $8}'`
IOWAIT=`head -2 /tmp/disk-io.tmp | tail -1 | awk '{print $4}'`
$CLIENT -t uint16 -n diskio-util -v $UTIL -u '%'    
$CLIENT -t uint16 -n diskio-write -v $WRITE -u 'wkB/s'
$CLIENT -t uint16 -n diskio-read -v $READ -u 'rkB/s'
$CLIENT -t uint16 -n diskio-iowait -v $IOWAIT -u '%'       

good luck,
john
----- Original Message ----
From: Francisco Manuel Delicado Martínez <[EMAIL PROTECTED]>
To: ganglia-list <[email protected]>
Sent: Friday, October 20, 2006 10:53:22 AM
Subject: [Ganglia-general] measuring metrics of applications

Hello,

I want to measure QoS statistics of the applications which are running
in a network, for instance: I have a network with some computers
running a video-conference or voice applications between them. I want
measure the delay of video or voice packets from source to receiver. I
have think that it could be done as follow:
    1.- I take sending time of the packet in sender and the reception
time in receiver running two scripts (one in sender and the other in the
receiver) using 'tethereal'.
    2.- using gmond and gmetric to measure this new metrics and,
announce the state of them.
    3.- I have to program some function to process statistics
before they are been represented in the frontend.
        3.1.- I have to subtract the reception time to the
sending one.
        3.2.- Calculate average, variance and other
statistical parameters.

My questions are:
    1.- Have you done something similar?
    2.- Do you think that I could implement that? I have never
used Ganglia.

Best regards.

    
-- 
################################################ 
##                           ##
##         ATENCIÓN-ATTENTION               ##
##           Mi e-mail ha cambiado               ##
##     My e-mail address changed           ##
##                           ##
##       la nueva dirección es:            ## 
##         the new one is:                ##
##                           ## 
##        [EMAIL PROTECTED]               ## 
################################################
 
Francisco M. Delicado Martínez 
UCLM 
Departamento de Sistemas Informáticos 
E.P.S.A.   Despacho 0.A.8 
Campus Universitario s/n Albacete 02071 
Telf:+34-967-599200 ext 2497 
Fax: +34-967-599224 
e-mail: [EMAIL PROTECTED] 
http://www.info-ab.uclm.es/personal/franman/franman.html


-------------------------------------------------------------------------
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=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Ganglia-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-general






Reply via email to