From Stefan.Sabolowitsch at felten-group.com Tue Aug 11 14:21:10 2009 From: Stefan.Sabolowitsch at felten-group.com (StefanS) Date: Tue, 11 Aug 2009 16:21:10 +0200 Subject: [dsc] Premature end of script headers: dsc-grapher.pl, Message-ID: Hi First thanks for this good program. If i start dsc-grapher.pl (select Server) in the browser, i get ?Premature end of script headers?. Here the error log file from Apache. [Tue Aug 11 16:09:35 2009] [error] [client 192.168.1.69] Use of uninitialized value in join or string at /usr/lib/perl5/site_perl/5.8.8/DSC/ploticus.pm line 424., referer: http://it.feltengmbh.de/cgi-bin/dsc-grapher.pl?window=86400&plot=third_ld_vs _rcode_accum [Tue Aug 11 16:09:35 2009] [error] [client 192.168.1.69] Can't exec "-stdin": No such file or directory at /usr/lib/perl5/site_perl/5.8.8/DSC/ploticus.pm line 429., referer: http://it.feltengmbh.de/cgi-bin/dsc-grapher.pl?window=86400&plot=third_ld_vs _rcode_accum [Tue Aug 11 16:09:35 2009] [error] [client 192.168.1.69] -stdin -csmap -mapfile /usr/local/dsc/cache/6dd09ecbb37626c277823c9f4363b36e.map.new -png -pagesize 12,12 -o /usr/local/dsc/cache/6dd09ecbb37626c277823c9f4363b36e.png.new at /usr/lib/perl5/site_perl/5.8.8/DSC/ploticus.pm line 429., referer: http://it.feltengmbh.de/cgi-bin/dsc-grapher.pl?window=86400&plot=third_ld_vs _rcode_accum [Tue Aug 11 16:09:35 2009] [error] [client 192.168.1.69] Premature end of script headers: dsc-grapher.pl, referer: http://it.feltengmbh.de/cgi-bin/dsc-grapher.pl?window=86400&plot=third_ld_vs _rcode_accum Possibly eien idea? Thanks for each assistance Stefan From wessels at measurement-factory.com Tue Aug 11 15:20:24 2009 From: wessels at measurement-factory.com (Duane Wessels) Date: Tue, 11 Aug 2009 09:20:24 -0600 (MDT) Subject: [dsc] Premature end of script headers: dsc-grapher.pl, In-Reply-To: References: Message-ID: On Tue, 11 Aug 2009, StefanS wrote: > [Tue Aug 11 16:09:35 2009] [error] [client 192.168.1.69] Can't exec > "-stdin": No such file or directory at This looks to me like the "ploticus" program was not found on your system. The code looks for it at /usr/local/bin/ploticus and /usr/local/bin/pl. Maybe it was installed as a different path on your system, such as /usr/bin/ploticus? If so I should update this code. DW From Stefan.Sabolowitsch at felten-group.com Tue Aug 11 15:44:15 2009 From: Stefan.Sabolowitsch at felten-group.com (StefanS) Date: Tue, 11 Aug 2009 17:44:15 +0200 Subject: [dsc] Premature end of script headers: dsc-grapher.pl, In-Reply-To: Message-ID: Hi The error is no longer present with the most current version of ploticus. But i have now the problem that with the legends no text is shown. The individual legend colors are visible, however the text is missing. An idea? Thanks for your assistance Am 11.08.09 17:20 schrieb "Duane Wessels" unter : > > > > > On Tue, 11 Aug 2009, StefanS wrote: > >> > [Tue Aug 11 16:09:35 2009] [error] [client 192.168.1.69] Can't exec >> > "-stdin": No such file or directory at > > This looks to me like the "ploticus" program was not found on your > system. The code looks for it at /usr/local/bin/ploticus and > /usr/local/bin/pl. > > Maybe it was installed as a different path on your system, such as > /usr/bin/ploticus? If so I should update this code. > > DW > > From mehmet at icann.org Tue Aug 11 16:35:02 2009 From: mehmet at icann.org (Mehmet Akcin) Date: Tue, 11 Aug 2009 09:35:02 -0700 Subject: [dsc] Premature end of script headers: dsc-grapher.pl, In-Reply-To: Message-ID: Hi Stefan I have had similar issue when using Ploticus 2.41. I found a way around by installing Ploticus 2.33 first, and then Ploticus 2.40 and finally Ploticus 2.41 (with this order..) and after that I seem to have no problems displaying stats. Mehmet On 8/11/09 8:44 AM, "StefanS" wrote: > Hi > The error is no longer present with the most current version of ploticus. > > > But i have now the problem that with the legends no text is shown. > The individual legend colors are visible, however the text is missing. > > An idea? > > Thanks for your assistance > > > > Am 11.08.09 17:20 schrieb "Duane Wessels" unter > : > >> >> >> >> >> On Tue, 11 Aug 2009, StefanS wrote: >> >>>> [Tue Aug 11 16:09:35 2009] [error] [client 192.168.1.69] Can't exec >>>> "-stdin": No such file or directory at >> >> This looks to me like the "ploticus" program was not found on your >> system. The code looks for it at /usr/local/bin/ploticus and >> /usr/local/bin/pl. >> >> Maybe it was installed as a different path on your system, such as >> /usr/bin/ploticus? If so I should update this code. >> >> DW >> >> > > _______________________________________________ > dsc mailing list > dsc at measurement-factory.com > http://www.measurement-factory.com/mailman/listinfo/dsc > From Stefan.Sabolowitsch at felten-group.com Wed Aug 12 10:45:09 2009 From: Stefan.Sabolowitsch at felten-group.com (StefanS) Date: Wed, 12 Aug 2009 12:45:09 +0200 Subject: [dsc] Premature end of script headers: dsc-grapher.pl, In-Reply-To: Message-ID: Hi Mehmet sa?ol Thanks for the hint, that was the solution. But the 2.41 version makes problems g?le g?le Stefan Am 11.08.09 18:35 schrieb "Mehmet Akcin" unter : > Hi Stefan > > I have had similar issue when using Ploticus 2.41. I found a way around by > installing Ploticus 2.33 first, and then Ploticus 2.40 and finally Ploticus > 2.41 (with this order..) and after that I seem to have no problems > displaying stats. > > Mehmet > > > On 8/11/09 8:44 AM, "StefanS" wrote: > >> > Hi >> > The error is no longer present with the most current version of ploticus. >> > >> > >> > But i have now the problem that with the legends no text is shown. >> > The individual legend colors are visible, however the text is missing. >> > >> > An idea? >> > >> > Thanks for your assistance >> > >> > >> > >> > Am 11.08.09 17:20 schrieb "Duane Wessels" unter >> > : >> > >>> >> >>> >> >>> >> >>> >> >>> >> On Tue, 11 Aug 2009, StefanS wrote: >>> >> >>>>> >>>> [Tue Aug 11 16:09:35 2009] [error] [client 192.168.1.69] Can't exec >>>>> >>>> "-stdin": No such file or directory at >>> >> >>> >> This looks to me like the "ploticus" program was not found on your >>> >> system. The code looks for it at /usr/local/bin/ploticus and >>> >> /usr/local/bin/pl. >>> >> >>> >> Maybe it was installed as a different path on your system, such as >>> >> /usr/bin/ploticus? If so I should update this code. >>> >> >>> >> DW >>> >> >>> >> >> > >> > _______________________________________________ >> > dsc mailing list >> > dsc at measurement-factory.com >> > http://www.measurement-factory.com/mailman/listinfo/dsc >> > > > > From aj.mckee at druid-dns.com Thu Aug 13 23:08:53 2009 From: aj.mckee at druid-dns.com (AJ McKee) Date: Fri, 14 Aug 2009 00:08:53 +0100 Subject: [dsc] Collector Customizations Message-ID: <75ea54210908131608h266a35c6md34574aa2c172fe7@mail.gmail.com> Howdy all, I've been playing with DSC for a few days now and am wondering how I would go about accomplishing recording just the client IP address and the record they queried. From there I'll take the dataset and run my own presenter over it as well as the DSC one. Could this be done by a filter rule, or would I be really looking at altering the sources? TIA AJ From wessels at measurement-factory.com Tue Aug 18 04:58:48 2009 From: wessels at measurement-factory.com (Duane Wessels) Date: Mon, 17 Aug 2009 22:58:48 -0600 (MDT) Subject: [dsc] Collector Customizations In-Reply-To: <75ea54210908131608h266a35c6md34574aa2c172fe7@mail.gmail.com> References: <75ea54210908131608h266a35c6md34574aa2c172fe7@mail.gmail.com> Message-ID: On Fri, 14 Aug 2009, AJ McKee wrote: > Howdy all, > > I've been playing with DSC for a few days now and am wondering how I would > go about accomplishing recording just the client IP address and the record > they queried. From there I'll take the dataset and run my own presenter over > it as well as the DSC one. > > Could this be done by a filter rule, or would I be really looking at > altering the sources? Hi AJ, There is some good news/bad news. The good news is that the collector part should be easy to customize. You could create a dataset such as: dataset client_and_qname dns ClientAddr:client Qname:qname queries-only; The resulting XML file sent from collector to presenter might be pretty big, depending on how busy your nameserver is. The bad news is that the presenter won't know how to handle this new dataset. If you do nothing, I think you might see some warnings in some of the cron job output. You won't see any .dat files or graphs for this dataset. If you want .dat files and/or graphs, you have to decide how the data should be stored and displayed. Then write some perl code to do that. I can give advice if it gets to that point. If you just want the data to be collected, you could write your own XML reader and then do something else with it after that... Duane W. From aj.mckee at druid-dns.com Tue Aug 18 07:27:03 2009 From: aj.mckee at druid-dns.com (AJ McKee) Date: Tue, 18 Aug 2009 08:27:03 +0100 Subject: [dsc] Collector Customizations In-Reply-To: References: <75ea54210908131608h266a35c6md34574aa2c172fe7@mail.gmail.com> Message-ID: <75ea54210908180027m3b6644d2x78ebf590c493f6ec@mail.gmail.com> Hi Duane, Yes that works fine. As for the presenter, well I am taking the output and passing it through an XML transform for processing by another app (this is not to say the presenter is not great, it is, we have a slightly different use case happening here) . This works quite well. However I'd like to extend it further so its more multidimensional (clientip, qtype, qname, rcode etc) as otherwise my transform is too flaky as its trying to guess too much at times. I understand DSC logs in 2 dimensions so maybe I will have a look at this aspect and see it I can do anything. For the moment however I have enough to go on anyhow. Many thanks AJ From wessels at measurement-factory.com Tue Aug 18 15:18:07 2009 From: wessels at measurement-factory.com (Duane Wessels) Date: Tue, 18 Aug 2009 09:18:07 -0600 (MDT) Subject: [dsc] Collector Customizations In-Reply-To: <75ea54210908180027m3b6644d2x78ebf590c493f6ec@mail.gmail.com> References: <75ea54210908131608h266a35c6md34574aa2c172fe7@mail.gmail.com> <75ea54210908180027m3b6644d2x78ebf590c493f6ec@mail.gmail.com> Message-ID: On Tue, 18 Aug 2009, AJ McKee wrote: > Hi Duane, > > Yes that works fine. As for the presenter, well I am taking the output and passing it through an XML transform for processing by > another app (this is not to say the presenter is not great, it is, we have a slightly different use case happening here) . > > This works quite well. However I'd like to extend it further so its more multidimensional (clientip, qtype, qname, rcode etc) as > otherwise my transform is too flaky as its trying to guess too much at times. I understand DSC logs in 2 dimensions so maybe I > will have a look at this aspect and see it I can do anything. Yes, its 2-dimensionalness is hard coded. For example, in md_array.h you see: struct _md_array { const char *name; filter_list *filter_list; struct { indexer_t *indexer; const char *type; int alloc_sz; } d1; struct { indexer_t *indexer; const char *type; int alloc_sz; } d2; dataset_opt opts; struct _md_array_node *array; }; So to extend it, you might have to start there and add more indexing dimensions. DW From aj.mckee at druid-dns.com Tue Aug 18 23:59:56 2009 From: aj.mckee at druid-dns.com (AJ McKee) Date: Wed, 19 Aug 2009 00:59:56 +0100 Subject: [dsc] Collector Customizations In-Reply-To: References: <75ea54210908131608h266a35c6md34574aa2c172fe7@mail.gmail.com> <75ea54210908180027m3b6644d2x78ebf590c493f6ec@mail.gmail.com> Message-ID: <75ea54210908181659nab2a774va46a94065e8d66d3@mail.gmail.com> Thanks Duane, I'll let you know how I get on. AJ