Hi Ben,

 just for your info. In 3.0.3 gmetric will have a check to prevent
non-numbers being inserted into the XML stream.

 In the meanwhile below patch may help you. I will discuss it with on
the developers list.

Martin

--- Martin Knoblauch <[EMAIL PROTECTED]> wrote:

> Ben,
> 
>  are you able to rebuild gmetad with the follwing qick fix? This
> seems
> to solve it for me:
> 
> --- rrd_helpers.c-orig  2006-01-25 16:14:16.000000000 +0100
> +++ rrd_helpers.c       2006-01-25 16:10:27.000000000 +0100
> @@ -54,7 +54,7 @@
>        {
>           err_msg("RRD_update (%s): %s", rrd, rrd_get_error());
>           pthread_mutex_unlock( &rrd_mutex );
> -         return 1;
> +         return 0;
>        }
>     /* debug_msg("Updated rrd %s with value %s", rrd, val); */
>     pthread_mutex_unlock( &rrd_mutex );
> 
> 
> --- Martin Knoblauch <[EMAIL PROTECTED]> wrote:
> 
> > 
> > 
> > --- Ben Hartshorne <[EMAIL PROTECTED]> wrote:
> > 
> > > 
> > > Jan 24 17:24:18 localhost /usr/sbin/gmetad[30443]: RRD_update
> > > (/var/lib/ganglia/rrds/production/raiden-8-db1/users.rrd):
> > conversion
> > > of
> > > 'min,' to float not complete: tail 'min,'
> > > 
> > > This seems to relate to a recent change I made that I had
> forgotten
> > > about.  :)  I added the following line to my crontab:
> > > 
> > > */2 * * * * /usr/bin/gmetric --name="users" --value=`w | head -1
> |
> > > awk '{print $6}'` --type=int16
> > > 
> > 
> >  OK, as I discovered before, your command can put funny things like
> > "min," into the metrics stream. Unfortunatelly, gmetric or gmond
> are
> > stupid enough to handle that.
> > 
> >  I can now kind of reproduce your problem by inserting the
> following
> > into the stream:
> > 
> > gmetric --name="users" --type=int16 --value="min,"
> > 
> >  This appears then in both the gmond and gmetad XML. As a result,
> the
> > "report" graphs on my cluster view show the gaps. As soon as I
> insert
> > a
> > number into the stream, the graphs work fine.
> > 
> >  But - I only see the gaps in the cluster overview. The node
> displays
> > are not affected (both in the cluster overview and on the node
> > pages).
> > 
> >  Seems we need to make gmetric or gmond more robust against junk.
> Or
> > we
> > need to see what the problem in the web interface is. Or both :-)
> > 
> > Martin
> > 
> > ------------------------------------------------------
> > Martin Knoblauch
> > email: k n o b i AT knobisoft DOT de
> > www:   http://www.knobisoft.de
> > 
> > 
> > -------------------------------------------------------
> > This SF.net email is sponsored by: Splunk Inc. Do you grep through
> > log files
> > for problems?  Stop!  Download the new AJAX search engine that
> makes
> > searching your log files as easy as surfing the  web.  DOWNLOAD
> > SPLUNK!
> >
>
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
> > _______________________________________________
> > Ganglia-general mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/ganglia-general
> > 
> > 
> 
> 
> ------------------------------------------------------
> Martin Knoblauch
> email: k n o b i AT knobisoft DOT de
> www:   http://www.knobisoft.de
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through
> log files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD
> SPLUNK!
>
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
> _______________________________________________
> Ganglia-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ganglia-general
> 
> 


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

Reply via email to