From sleach at wiggum.com Tue Jun 12 14:26:03 2007 From: sleach at wiggum.com (Sean Leach) Date: Tue, 12 Jun 2007 07:26:03 -0700 Subject: [dsc] compile issue on linux Message-ID: Howdy, Trying to compile the collector (dsc-200705151838) on CentOS 4 (RHEL 4 rebuild), and I get the following error building pcap.c: cc -g -Wall -DUSE_IPV6=1 -I ../TmfBase/Hapy/src/include -g -Wall - DUSE_IPV6=1 -I ../TmfBase/Hapy/src/include -c -o pcap.o pcap.c pcap.c: In function `handle_tcp': pcap.c:459: error: structure has no member named `th_off' pcap.c:465: error: structure has no member named `th_sport' pcap.c:465: error: structure has no member named `th_sport' pcap.c:466: error: structure has no member named `th_dport' pcap.c:466: error: structure has no member named `th_dport' pcap.c:496: error: structure has no member named `th_seq' pcap.c:496: error: structure has no member named `th_seq' pcap.c:496: error: structure has no member named `th_seq' pcap.c:496: error: structure has no member named `th_seq' pcap.c:509: error: structure has no member named `th_flags' pcap.c:509: error: `TH_SYN' undeclared (first use in this function) pcap.c:509: error: (Each undeclared identifier is reported only once pcap.c:509: error: for each function it appears in.) pcap.c:518: error: structure has no member named `th_flags' pcap.c:545: error: structure has no member named `th_flags' pcap.c:545: error: `TH_FIN' undeclared (first use in this function) make: *** [pcap.o] Error 1 Suggestions? I tried adding a #define FAVOR_BSD as well, just in case, that didn't help. Thanks! Sean From wessels at measurement-factory.com Wed Jun 13 15:18:21 2007 From: wessels at measurement-factory.com (Duane Wessels) Date: Wed, 13 Jun 2007 09:18:21 -0600 (MDT) Subject: [dsc] compile issue on linux In-Reply-To: References: Message-ID: <20070613091421.P57674@measurement-factory.com> On Tue, 12 Jun 2007, Sean Leach wrote: > Howdy, > > Trying to compile the collector (dsc-200705151838) on CentOS 4 (RHEL > 4 rebuild), and I get the following error building pcap.c: > > cc -g -Wall -DUSE_IPV6=1 -I ../TmfBase/Hapy/src/include -g -Wall - > DUSE_IPV6=1 -I ../TmfBase/Hapy/src/include -c -o pcap.o pcap.c > pcap.c: In function `handle_tcp': > pcap.c:459: error: structure has no member named `th_off' Hi Sean, Another Linux user informed me of this problem a last week, so it should already be fixed. There is a new version (200706121022) available for download at http://dns.measurement-factory.com/tools/dsc/source.html Duane W. From sleach at wiggum.com Wed Jun 13 15:25:56 2007 From: sleach at wiggum.com (Sean Leach) Date: Wed, 13 Jun 2007 08:25:56 -0700 Subject: [dsc] compile issue on linux In-Reply-To: <20070613091421.P57674@measurement-factory.com> References: <20070613091421.P57674@measurement-factory.com> Message-ID: That did it, thanks Duane! On Jun 13, 2007, at 8:18 AM, Duane Wessels wrote: > > > On Tue, 12 Jun 2007, Sean Leach wrote: > >> Howdy, >> >> Trying to compile the collector (dsc-200705151838) on CentOS 4 (RHEL >> 4 rebuild), and I get the following error building pcap.c: >> >> cc -g -Wall -DUSE_IPV6=1 -I ../TmfBase/Hapy/src/include -g -Wall - >> DUSE_IPV6=1 -I ../TmfBase/Hapy/src/include -c -o pcap.o pcap.c >> pcap.c: In function `handle_tcp': >> pcap.c:459: error: structure has no member named `th_off' > > Hi Sean, > > Another Linux user informed me of this problem a last week, so it > should already be fixed. There is a new version (200706121022) > available for download at > http://dns.measurement-factory.com/tools/dsc/source.html > > Duane W. From warno at okezone.com Wed Jun 27 10:51:22 2007 From: warno at okezone.com (warno) Date: Wed, 27 Jun 2007 17:51:22 +0700 Subject: [dsc] Trouble Viewing dsc Graphs Message-ID: <001f01c7b8a9$19a165a0$4ce430e0$@com> Dear all, Im in a newbie with perl coding dan xml parser. Im running dsc on linux platform and the xml files have been uploading successfully to the remote presenter. But I just cant see the graph even though the xml file have been created for one days. With the dsc-grapher.pl, I can only see the left menu and "No Data To Display At This Time" at the right panel. At presenter, the xml files is at /usr/local/dsc/data/Server/ns2. My dsc-grapher.cfg : server Server ns2 trace_windows 1hour 4hour 1day 1week accum_windows 1day 2days 3days 1week domain_list all_okezone com valid_domains server all_okezone Please help and point any misconfiguration. Thank you, Warno. Warno IT Infrastructure Bimantara Building, 4th Fl Jl. Kebon Sirih No.17-19 Jakarta 10340 INDONESIA Office : +6221 390 2275 ext. 141 Fax : +6221 390 2295 Mobile : +6288 8800 6336 okezone.com disclaimer: The contents of this e-mail and its attachments, if any, are for the intended recipient(s) only and may contain proprietary, confidential or otherwise private information. If you are not the intended recipient or if you have inadvertently received this email, please note that any use, disclosure, copying, distribution or any action taken or omitted to be taken in reliance on this e-mail or any attachments hereto is prohibited and may be unlawful, and that you should delete this e-mail and its attachments, if any, and duly notify us of the miss delivery by e-mailing the sender. -------------- next part -------------- An HTML attachment was scrubbed... URL: From wessels at measurement-factory.com Wed Jun 27 15:49:21 2007 From: wessels at measurement-factory.com (Duane Wessels) Date: Wed, 27 Jun 2007 09:49:21 -0600 (MDT) Subject: [dsc] Trouble Viewing dsc Graphs In-Reply-To: <001f01c7b8a9$19a165a0$4ce430e0$@com> References: <001f01c7b8a9$19a165a0$4ce430e0$@com> Message-ID: <20070627094603.K24911@measurement-factory.com> On Wed, 27 Jun 2007, warno wrote: > But I just cant see the graph even though the xml file have been created for > one days. With the dsc-grapher.pl, I can only see the left menu and "No Data > To Display At This Time" at the right panel. Hi Warno, There is another step which you may be missing. There is a cron job that you should run to convert "xml" files to "dat" files. You should run the refile-and-grok.sh script every minute from cron with an entry like this: * * * * * /usr/bin/nice -10 /usr/local/dsc/libexec/refile-and-grok.sh Another problem could be file permissions. Make sure that the userid for dsc-grapher.pl has read permission on the "dat" files. Duane W. From warno at okezone.com Thu Jun 28 03:16:42 2007 From: warno at okezone.com (warno) Date: Thu, 28 Jun 2007 10:16:42 +0700 Subject: [dsc] Trouble Viewing dsc Graphs - Email found in subject In-Reply-To: <20070627094603.K24911@measurement-factory.com> References: <001f01c7b8a9$19a165a0$4ce430e0$@com> <20070627094603.K24911@measurement-factory.com> Message-ID: <001101c7b932$c089fb00$419df100$@com> Yes, you guess it right Duane. That's the source of my problem. The refile-and-grok.sh script and cron job has been up dan running but with error as you can see below. I don't know what that script is for until now, thank you for your information. Below is the output from /usr/local/dsc/data/refile-and-grok.sh.stdout : Thu Jun 28 09:22:01 ICT 2007 Server/ns2: And after that the error from dsc-xml-extractor.pl output file at /usr/local/dsc/data/Server/ns2/dsc-xml-extractor.out: Can't locate Proc/PID/File.pm in @INC (@INC contains: /usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at /usr/local/dsc/libexec/dsc-xml-extractor.pl line 13. BEGIN failed--compilation aborted at /usr/local/dsc/libexec/dsc-xml-extractor.pl line 13. And this is the line 13 from the script: use Proc::PID::File and, find out that is a module to manage process id files. After install the module, the dat files was successfully created in 20070627/ (I wonder why the 20070628/ is not also created). So after I browse the presenter machine, the "No Data To Display At This Time" message is display again. Is it because the 20070628/ is not available? So I browse to the previous day and ive got the 500 internal server error. Below is the web server error log: Use of uninitialized value in join or string at /usr/lib/perl5/site_perl/5.8.5/DSC/ploticus.pm line 414., referer: http://dev.okezone.com/cgi-bin/dsc-grapher.pl?node=ns2&plot=bynode&server=Se rver Can't exec "-stdin": No such file or directory at /usr/lib/perl5/site_perl/5.8.5/DSC/ploticus.pm line 418., referer: http://dev.okezone.com/cgi-bin/dsc-grapher.pl?node=ns2&plot=bynode&server=Se rver -stdin -maxrows 20000 -png -o /usr/local/dsc/cache/c603b953d9fa5ea1508700fe451201d1.png.new at /usr/lib/perl5/site_perl/5.8.5/DSC/ploticus.pm line 418., referer: http://dev.okezone.com/cgi-bin/dsc-grapher.pl?node=ns2&plot=bynode&server=Se rver Premature end of script headers: dsc-grapher.pl, referer: http://dev.okezone.com/cgi-bin/dsc-grapher.pl?node=ns2&plot=bynode&server=Se rver The lines mentioned in the ploticus.pm is about: sub ploticus_begin { die "wrong state" unless (1 == $ploticus_state); my $prog = (grep {-f $_} qw(/usr/local/bin/ploticus /usr/local/bin/pl))[0]; my $cmd = join(" ", $prog, "-stdin", (map { "$_ $ploticus_args{$_}" } keys %ploticus_args), "-$ploticus_type", "-o $ploticus_output"); print STDERR "$cmd\n" if ($main::ploticus_debug); open(PLOTICUS, "|$cmd") or die "$cmd"; $ploticus_state = 2; } Okay, that's my problem for now. Thank you for your kind reply. > -----Original Message----- > From: Duane Wessels [mailto:wessels at measurement-factory.com] > Sent: Wednesday, June 27, 2007 10:49 PM > To: warno > Cc: dsc at measurement-factory.com > Subject: [SPAM] - Re: [dsc] Trouble Viewing dsc Graphs - Email found in > subject > > > > On Wed, 27 Jun 2007, warno wrote: > > > But I just cant see the graph even though the xml file have been > created for > > one days. With the dsc-grapher.pl, I can only see the left menu and > "No Data > > To Display At This Time" at the right panel. > > Hi Warno, > > There is another step which you may be missing. There is a cron job > that you should run to convert "xml" files to "dat" files. You should > run the refile-and-grok.sh script every minute from cron with an entry > like > this: > > * * * * * /usr/bin/nice -10 /usr/local/dsc/libexec/refile-and- > grok.sh > > Another problem could be file permissions. Make sure that the userid > for > dsc-grapher.pl has read permission on the "dat" files. > > Duane W. Warno IT Infrastructure Bimantara Building, 4th Fl Jl. Kebon Sirih No.17-19 Jakarta 10340 INDONESIA Office : +6221 390 2275 ext. 141 Fax : +6221 390 2295 Mobile : +6288 8800 6336 okezone.com disclaimer: The contents of this e-mail and its attachments, if any, are for the intended recipient(s) only and may contain proprietary, confidential or otherwise private information. If you are not the intended recipient or if you have inadvertently received this email, please note that any use, disclosure, copying, distribution or any action taken or omitted to be taken in reliance on this e-mail or any attachments hereto is prohibited and may be unlawful, and that you should delete this e-mail and its attachments, if any, and duly notify us of the miss delivery by e-mailing the sender. From wessels at measurement-factory.com Thu Jun 28 07:38:15 2007 From: wessels at measurement-factory.com (Duane Wessels) Date: Thu, 28 Jun 2007 01:38:15 -0600 (MDT) Subject: [dsc] Trouble Viewing dsc Graphs In-Reply-To: <001101c7b932$c089fb00$419df100$@com> References: <001f01c7b8a9$19a165a0$4ce430e0$@com> <20070627094603.K24911@measurement-factory.com> <001101c7b932$c089fb00$419df100$@com> Message-ID: <20070628013321.E15073@measurement-factory.com> On Thu, 28 Jun 2007, warno wrote: > and, find out that is a module to manage process id files. After install the > module, the dat files was successfully created in 20070627/ (I wonder why > the 20070628/ is not also created). It may take a while for those scripts to catch up with the backlog. You should see that 20070628 directory is created eventually and all XML files are moved out of the incoming directory. > Can't exec "-stdin": No such file or directory at > /usr/lib/perl5/site_perl/5.8.5/DSC/ploticus.pm line 418., referer: > http://dev.okezone.com/cgi-bin/dsc-grapher.pl?node=ns2&plot=bynode&server=Se > rver It looks to me like the 'ploticus' program is not installed. DSC expects to find it at /usr/local/bin/ploticus (or /usr/local/bin/pl for older ploticus versions). If you have it installed somewhere else, then you can either make a symlink, or one of us needs to fix the ploticus.pm module to tell it where else to look. Duane W. From warno at okezone.com Thu Jun 28 08:55:50 2007 From: warno at okezone.com (warno) Date: Thu, 28 Jun 2007 15:55:50 +0700 Subject: [dsc] [SPAM] - Re: Trouble Viewing dsc Graphs - Email found in subject In-Reply-To: <20070628013321.E15073@measurement-factory.com> References: <001f01c7b8a9$19a165a0$4ce430e0$@com> <20070627094603.K24911@measurement-factory.com><001101c7b932$c089fb00$419df 100$@com> <20070628013321.E15073@measurement-factory.com> Message-ID: <002801c7b962$20a18ba0$61e4a2e0$@com> That's rock bro. I make my pl (ploticus) soft link to /bin. For that is one of my environment path. I soft linked it to /usr/local/bin and in no time, the graph is available as expected. Thank you for your kind help Duane. Cheers, Warno. > -----Original Message----- > From: Duane Wessels [mailto:wessels at measurement-factory.com] > Sent: Thursday, June 28, 2007 2:38 PM > To: dsc at measurement-factory.com > Cc: warno > Subject: [SPAM] - Re: [dsc] Trouble Viewing dsc Graphs - Email found in > subject > > > > On Thu, 28 Jun 2007, warno wrote: > > > and, find out that is a module to manage process id files. After > install the > > module, the dat files was successfully created in 20070627/ (I wonder > why > > the 20070628/ is not also created). > > It may take a while for those scripts to catch up with the backlog. > You should see that 20070628 directory is created eventually and all > XML files are moved out of the incoming directory. > > > Can't exec "-stdin": No such file or directory at > > /usr/lib/perl5/site_perl/5.8.5/DSC/ploticus.pm line 418., referer: > > http://dev.okezone.com/cgi-bin/dsc- > grapher.pl?node=ns2&plot=bynode&server=Se > > rver > > It looks to me like the 'ploticus' program is not installed. DSC > expects to find it at /usr/local/bin/ploticus (or /usr/local/bin/pl > for older ploticus versions). If you have it installed somewhere > else, then you can either make a symlink, or one of us needs to fix > the ploticus.pm module to tell it where else to look. > > Duane W. Warno IT Infrastructure Bimantara Building, 4th Fl Jl. Kebon Sirih No.17-19 Jakarta 10340 INDONESIA Office : +6221 390 2275 ext. 141 Fax : +6221 390 2295 Mobile : +6288 8800 6336 okezone.com disclaimer: The contents of this e-mail and its attachments, if any, are for the intended recipient(s) only and may contain proprietary, confidential or otherwise private information. If you are not the intended recipient or if you have inadvertently received this email, please note that any use, disclosure, copying, distribution or any action taken or omitted to be taken in reliance on this e-mail or any attachments hereto is prohibited and may be unlawful, and that you should delete this e-mail and its attachments, if any, and duly notify us of the miss delivery by e-mailing the sender.