Thanks. This works. \\ Naman
-----Original Message----- From: Tobias Oetiker [mailto:[EMAIL PROTECTED] Sent: Monday, May 10, 2004 10:30 PM To: Naman Latif Cc: [EMAIL PROTECTED] Subject: RE: [smokeping] Using nodata_color Hi Naman, Try this patch: --- Smokeping.pm.orig 2004-05-11 07:29:48.418546000 +0200 +++ Smokeping.pm 2004-05-11 07:25:47.106959000 +0200 @@ -757,7 +757,7 @@ # be distinguished from network being down. ( $cfg->{Presentation}{detail}{nodata_color} ? ( 'CDEF:nodata=loss,UN,INF,UNKN,IF', - "AREA:nodata$cfg->{Presentation}{detail}{nodata_color}" ): + "AREA:nodata#$cfg->{Presentation}{detail}{nodata_color}" ): ()), 'HRULE:0#000000', 'COMMENT:\s', @@ -1439,8 +1439,8 @@ }, }, nodata_color => { - _re => '#[0-9a-f]{6}', - _re_error => "color must be defined with in #rrggbb syntax", + _re => '[0-9a-f]{6}', + _re_error => "color must be defined with in rrggbb syntax", _doc => "Paint the graph background in a special color when there is no data for this period because smokeping has not been running (#rrggbb)", }, logarithmic => { _doc => 'should the graphs be shown in a logarithmic scale (yes/no)', Yesterday Naman Latif wrote: > Hi Tobi, > Still the same result. I might be missing something but just can't seem > to figure out. > > My config looks like > > + detail > > width = 600 > height = 200 > unison_tolerance = 2 > nodata_color = ffff80 (I also tried nodata_color = "#ffff80") > > But still get the same message > > bash-2.05$ /usr/local/smokeping/bin/smokeping > ERROR: /usr/local/smokeping/etc/config, line 49: color must be defined > with in #rrggbb syntax > > Thanks \\ Naman > > -----Original Message----- > From: Tobias Oetiker [mailto:[EMAIL PROTECTED] > Sent: Monday, May 10, 2004 11:31 AM > To: Naman Latif > Cc: [EMAIL PROTECTED] > Subject: Re: [smokeping] Using nodata_color > > Today Naman Latif wrote: > > > Hi, > > I am trying to add nodata_color option. Have tried all the following > but > > always get the error > > "ERROR: /usr/local/smokeping/etc/config, line 49: color must be > defined > > with in #rrggbb syntax" > > > > nodata_color = C0C0C0 > > nodata_color = #C0C0C0 > > nodata_color = "#C0C0C0" > > nodata_color = "C0C0C0" > > Hi Naman, > > we are looking for lower case letters here ... > > cheers > tobi > > > > > > Regards \\ Naman > > -----Original Message----- > > From: Tobias Oetiker [mailto:[EMAIL PROTECTED] > > Sent: Friday, May 07, 2004 3:56 PM > > > > > > * added nodata_color property to specify background color for graph > when > > when no data is available -- David Hull <[EMAIL PROTECTED]> > > > > > > -- ______ __ _ /_ __/_ / / (_) Oetiker @ ISG.EE, ETZ J97, ETH, CH-8092 Zurich / // _ \/ _ \/ / System Manager, Time Lord, Coder, Designer, Coach /_/ \.__/_.__/_/ http://people.ee.ethz.ch/~oetiker +41(0)44-632-5286 -- Unsubscribe mailto:[EMAIL PROTECTED] Help mailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/smokeping-users WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
