From: Ben C. <bcl...@pe...> - 2005-02-07 09:21:15
|
Dear Alex, I will answer you in line: Alex Peeters wrote: > Question? > > my $performanceData = "duration=$responseTime s;$trendline;;; 'response > time'=$responseTime s;$trendline;;;"; > > DUMMY-T5 > Condenced View test > <http://asnmtap.citap.be/cgi-bin/perfparse.cgi?graph=1&host=DUMMY%2DT5&service=Condenced+View+test&metric=duration> > duration > 2005-02-06 17:34:00 > 1 > UP > <http://asnmtap.citap.be/cgi-bin/perfparse.cgi?graph=1&host=DUMMY%2DT5&service=Condenced+View+test&metric=response+time> > response time > 2005-02-06 17:32:00 > 1 > WARNING > > The responstime is alway the same in this test for ‘duration’ and > ‘response time, and sended at the same time > > Why do I sea into PerfParse 2 different times 17:34 and 17:32 ? The times reflect the last time in which a valid result was parsed into PP. This suggests one of the metrics failed. Check your drop file. I see you have a small error: You have: $performanceData = "duration=$responseTime s;$trendline;;; Should be: $performanceData = "duration=${responseTime}s;$trendline;;; No space between value and unit. This may help. > Question? > > *Administration* > > Administraion Menu > <http://asnmtap.citap.be/cgi-bin/perfparse.cgi?admin_menu=1> > > Is it not ‘Administration Menu’ ? Yes. I am dyslexic. Since my 'vi' has no spell checker, I relay on kind people such as your self pointing these out. This will be fixed as soon as I have an excuse to release another version :) > Question? > > > Is it possible to sea the results from the same host, service coming > from one raw data, into one graphics. Soon. My self and Yves have been arguing hard about the best way of doing this. Unfortunately we both have little time available. As soon as I can find a few days, this will be done. This will be completed like a shopping card. You will add metrics to your cart, then 'check out' and store a permanent template. This can then be used at any time to draw multiple metrics. Watch this space! > I mean, is it possible to have the results for ‘duration’ and ‘response > time into the same graphic? The scaling may not show anything useful in this case, you will see only the shape of the lines on the graph. But, yes, this will be possible. > Question? > > The name ‘Host’ and ‘Service’ are the hard coded? > > This because into ASNMTAP, ‘Host’ means there ‘Plugin Group’ and > ‘Service’ means there ‘Plugin Title’ and if possible I want to change > these two names? Maybe you want to do a patch for us? Edit libpp_common.h and add: #define HOST_TITLE = _("Host"); #define SERVICE_TITLE = _("Title"); Then go through the code changing this. In your code you can change this to something else. If this is popular, this can become a configuration variable. > *A working version of PerfParse integrated into ASNMTAP:* > > * * > > *PerfParse facilitates the storage and analysis of binary performance > data produced by the Application Monitoring > <http://asnmtap.citap.be/cgi-bin/perfparse.cgi>* > > http://asnmtap.citap.be/asnmtap/nav/test/reports-index-cv.html > > http://asnmtap.citap.be/cgi-bin/perfparse.cgi Interesting! Please keep sending your ideas :) Regards, Ben Clewett. > > > > > > -----Original Message----- > *From:* Alex Peeters [mailto:ale...@ci...] > *Sent:* zondag 6 februari 2005 12:56 > *To:* 'bcl...@pe...' > *Cc:* 'gc...@pe...' > *Subject:* RE: Perfparse > > > > > > The idea is to replace: > > /opt/asnmtap/perfparse/bin/perfparse_nagios_pipe_command.pl > /opt/asnmtap/perfparse/var/var/perfdata-host.log "$TIMET$" "$HOSTNAME$" > "$OUTPUT$" "$PERFDATA$" > > > > > > with something like: > > /opt/asnmtap/perfparse/bin/ perfparse-pluginoutput2mysql > --pluginoutput "$TIMET$" "$HOSTNAME$" "$OUTPUT$" "$PERFDATA$" > > > > > > Hi Ben, > > > > Do you remember that i told you that is wanted to port perfparse to asnmtap, > > my application monitoring tool I’am writing. > > > > Now I have performance data support in it compatible with nagios. > > > > I will do my first test with perfparse-log2mysql, but my question is > > of that that is not possible to have a command perfparse-pluginoutput2mysql > > where perfparse-pluginoutput2mysql give me the possibility to write > > directly the output of my plugin into the database. > > > > With perfparse-log2mysql, I need to write the plugin output first into a > file, > > and then perfparse-log2mysql add these data to the database. > > > > perfparse-log2mysql - help > > -l, --serviceperf-log <string> : Input log source (from nagios or > perfparsed) > > > > The question is, can you moddify a version perfparse-log2mysql of where > I can give the plugin output as a parameter please: > > perfparse-pluginoutput2mysql > > -p, --pluginoutput <string> : pluginoutput (from nagios or perfparsed) > > > > > > *Application System Network Monitoring Tool Alex Peeters* > <http://asnmtap.citap.be/##> > > > > http://asnmtap.citap.be <http://asnmtap.citap.be/> > > > > -- Alex > > > > > > > > > > > -- > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.0.300 / Virus Database: 265.8.5 - Release Date: 3/02/2005 > > > -- > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.0.300 / Virus Database: 265.8.5 - Release Date: 3/02/2005 > > > -- > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.0.300 / Virus Database: 265.8.5 - Release Date: 3/02/2005 > > > -- > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.0.300 / Virus Database: 265.8.5 - Release Date: 3/02/2005 > > > -- > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.0.300 / Virus Database: 265.8.5 - Release Date: 3/02/2005 > |
From: Yves <yme...@pe...> - 2005-02-07 13:20:57
|
Alex, The following hack by Ben is a quick hack. Do it when you want to change = something yourself and when you don't want to spend too much time on it. Besides this, there is a mistake. The quick hack should be this : #define HOST_TITLE (_("Host")) #define SERVICE_TITLE (_("Title")) (and I have not tested if it works that way; I'm sure that is does not wo= rk the other way :) Yves >> The name =91Host=92 and =91Service=92 are the hard coded? >> >> This because into ASNMTAP, =91Host=92 means there =91Plugin Group=92 a= nd >> =91Service=92 means there =91Plugin Title=92 and if possible I want to= change >> these two names? > > Maybe you want to do a patch for us? > > Edit libpp_common.h and add: > > #define HOST_TITLE =3D _("Host"); > #define SERVICE_TITLE =3D _("Title"); > > Then go through the code changing this. In your code you can change > this to something else. If this is popular, this can become a > configuration variable. > > > >> *A working version of PerfParse integrated into ASNMTAP:* >> >> * * >> >> *PerfParse facilitates the storage and analysis of binary performance >> data produced by the Application Monitoring >> <http://asnmtap.citap.be/cgi-bin/perfparse.cgi>* >> >> http://asnmtap.citap.be/asnmtap/nav/test/reports-index-cv.html >> >> http://asnmtap.citap.be/cgi-bin/perfparse.cgi > > Interesting! > > Please keep sending your ideas :) > > Regards, > > Ben Clewett. > > > > >> >> >> >> >> >> -----Original Message----- >> *From:* Alex Peeters [mailto:ale...@ci...] >> *Sent:* zondag 6 februari 2005 12:56 >> *To:* 'bcl...@pe...' >> *Cc:* 'gc...@pe...' >> *Subject:* RE: Perfparse >> >> >> >> >> >> The idea is to replace: >> >> /opt/asnmtap/perfparse/bin/perfparse_nagios_pipe_command.pl >> /opt/asnmtap/perfparse/var/var/perfdata-host.log "$TIMET$" "$HOSTNAME$= " >> "$OUTPUT$" "$PERFDATA$" >> >> >> >> >> >> with something like: >> >> /opt/asnmtap/perfparse/bin/ perfparse-pluginoutput2mysql >> --pluginoutput "$TIMET$" "$HOSTNAME$" "$OUTPUT$" "$PERFDATA$" >> >> >> >> >> >> Hi Ben, >> >> >> >> Do you remember that i told you that is wanted to port perfparse to as= nmtap, >> >> my application monitoring tool I=92am writing. >> >> >> >> Now I have performance data support in it compatible with nagios. >> >> >> >> I will do my first test with perfparse-log2mysql, but my question is >> >> of that that is not possible to have a command perfparse-pluginoutput2= mysql >> >> where perfparse-pluginoutput2mysql give me the possibility to write >> >> directly the output of my plugin into the database. >> >> >> >> With perfparse-log2mysql, I need to write the plugin output first into= a >> file, >> >> and then perfparse-log2mysql add these data to the database. >> >> >> >> perfparse-log2mysql - help >> >> -l, --serviceperf-log <string> : Input log source (from nagios or >> perfparsed) >> >> >> >> The question is, can you moddify a version perfparse-log2mysql of wher= e >> I can give the plugin output as a parameter please: >> >> perfparse-pluginoutput2mysql >> >> -p, --pluginoutput <string> : pluginoutput (from nagios or perfpar= sed) >> >> >> >> >> >> *Application System Network Monitoring Tool Alex Peeters* >> <http://asnmtap.citap.be/##> >> >> >> >> http://asnmtap.citap.be <http://asnmtap.citap.be/> >> >> >> >> -- Alex >> >> >> >> >> >> >> >> >> >> >> -- >> No virus found in this outgoing message. >> Checked by AVG Anti-Virus. >> Version: 7.0.300 / Virus Database: 265.8.5 - Release Date: 3/02/2005 >> >> >> -- >> No virus found in this outgoing message. >> Checked by AVG Anti-Virus. >> Version: 7.0.300 / Virus Database: 265.8.5 - Release Date: 3/02/2005 >> >> >> -- >> No virus found in this outgoing message. >> Checked by AVG Anti-Virus. >> Version: 7.0.300 / Virus Database: 265.8.5 - Release Date: 3/02/2005 >> >> >> -- >> No virus found in this outgoing message. >> Checked by AVG Anti-Virus. >> Version: 7.0.300 / Virus Database: 265.8.5 - Release Date: 3/02/2005 >> >> >> -- >> No virus found in this outgoing message. >> Checked by AVG Anti-Virus. >> Version: 7.0.300 / Virus Database: 265.8.5 - Release Date: 3/02/2005 >> > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting > Tool for open source databases. Create drag-&-drop reports. Save time > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > Perfparse-users mailing list > Per...@li... > https://lists.sourceforge.net/lists/listinfo/perfparse-users > > --=20 - Homepage - http://ymettier.free.fr - http://www.logicacmg.com - - GPG key - http://ymettier.free.fr/gpg.txt - - Maitretarot - http://www.nongnu.org/maitretarot/ - - Perfparse - http://www.perfparse.org/ - |
From: Alex P. <ale...@ci...> - 2005-02-07 17:04:08
|
Hi Ben, #define HOST_TITLE =3D _("Host"); #define SERVICE_TITLE =3D _("Title"); or do you mean #define HOST_TITLE =3D _("Host"); #define SERVICE_TITLE =3D _("Service"); The first part is easy to do, but there are also al lot: The next are clear, this is text: --------------------------------- showHeader(_("Deletion Policies for Hosts"), ""); printf(" <td align=3Dcenter>%s<b>Host</b></font></td>\n", FONT); printf(" %s: \n",_("Select Host")); showHeader(_("Mark Host for complete deletion."), ""); printf(" %s%s", FONT,_("<b>Note:</b> Host and Host Data will be = deleted when\n" printf(" <b>%s</b><br>\n",_("Edit a Host Group List")); printf(" <a href=3D\"%s?add_amend_host_group=3D1\">%s</a>\n", = sProgName, _("Edit Host Groups")); printf(" %s\n",_("Select Host Group:")); printf(" %s\n",_("Add new Host to Group:")); printf(" <b>%s</b><br>\n", _("Host List")); ... Is this text or not? -------------------- sHost =3D strdup(scgi("host")); sService =3D strdup(scgi("service")); -- Alex -----Original Message----- From: Ben Clewett [mailto:bcl...@pe...]=20 Sent: maandag 7 februari 2005 10:19 To: ale...@ci... Cc: bcl...@pe...; gc...@pe...; per...@li... Subject: Re: Perfparse Dear Alex, I will answer you in line: Alex Peeters wrote: > Question? >=20 > my $performanceData =3D "duration=3D$responseTime s;$trendline;;; = 'response=20 > time'=3D$responseTime s;$trendline;;;"; >=20 > DUMMY-T5=20 > Condenced View test=20 > <http://asnmtap.citap.be/cgi-bin/perfparse.cgi?graph=3D1&host=3DDUMMY%2DT= 5&servi ce=3DCondenced+View+test&metric=3Dduration> > duration=20 > 2005-02-06 17:34:00=20 > 1=20 > UP=20 > <http://asnmtap.citap.be/cgi-bin/perfparse.cgi?graph=3D1&host=3DDUMMY%2DT= 5&servi ce=3DCondenced+View+test&metric=3Dresponse+time> > response time=20 > 2005-02-06 17:32:00=20 > 1=20 > WARNING=20 >=20 > The responstime is alway the same in this test for =91duration=92 and=20 > =91response time, and sended at the same time >=20 > Why do I sea into PerfParse 2 different times 17:34 and 17:32 ? The times reflect the last time in which a valid result was parsed into=20 PP. This suggests one of the metrics failed. Check your drop file. I see you have a small error: You have: $performanceData =3D "duration=3D$responseTime = s;$trendline;;; Should be: $performanceData =3D = "duration=3D${responseTime}s;$trendline;;; No space between value and unit. This may help. > Question? >=20 > *Administration* >=20 > Administraion Menu=20 > <http://asnmtap.citap.be/cgi-bin/perfparse.cgi?admin_menu=3D1> >=20 > Is it not =91Administration Menu=92 ? Yes. I am dyslexic. Since my 'vi' has no spell checker, I relay on=20 kind people such as your self pointing these out. This will be fixed as = soon as I have an excuse to release another version :) > Question? > =20 >=20 > Is it possible to sea the results from the same host, service coming=20 > from one raw data, into one graphics. Soon. My self and Yves have been arguing hard about the best way of=20 doing this. Unfortunately we both have little time available. As soon=20 as I can find a few days, this will be done. This will be completed like a shopping card. You will add metrics to=20 your cart, then 'check out' and store a permanent template. This can=20 then be used at any time to draw multiple metrics. Watch this space! > I mean, is it possible to have the results for =91duration=92 and = =91response=20 > time into the same graphic? The scaling may not show anything useful in this case, you will see only = the shape of the lines on the graph. But, yes, this will be possible. > Question? >=20 > The name =91Host=92 and =91Service=92 are the hard coded? >=20 > This because into ASNMTAP, =91Host=92 means there =91Plugin Group=92 = and=20 > =91Service=92 means there =91Plugin Title=92 and if possible I want to = change=20 > these two names? Maybe you want to do a patch for us? Edit libpp_common.h and add: #define HOST_TITLE =3D _("Host"); #define SERVICE_TITLE =3D _("Title"); Then go through the code changing this. In your code you can change=20 this to something else. If this is popular, this can become a=20 configuration variable. > *A working version of PerfParse integrated into ASNMTAP:* >=20 > * * >=20 > *PerfParse facilitates the storage and analysis of binary performance=20 > data produced by the Application Monitoring=20 > <http://asnmtap.citap.be/cgi-bin/perfparse.cgi>* >=20 > http://asnmtap.citap.be/asnmtap/nav/test/reports-index-cv.html >=20 > http://asnmtap.citap.be/cgi-bin/perfparse.cgi Interesting! Please keep sending your ideas :) Regards, Ben Clewett. >=20 > =20 >=20 > =20 >=20 > -----Original Message----- > *From:* Alex Peeters [mailto:ale...@ci...] > *Sent:* zondag 6 februari 2005 12:56 > *To:* 'bcl...@pe...' > *Cc:* 'gc...@pe...' > *Subject:* RE: Perfparse >=20 > =20 >=20 > =20 >=20 > The idea is to replace: >=20 > /opt/asnmtap/perfparse/bin/perfparse_nagios_pipe_command.pl =20 > /opt/asnmtap/perfparse/var/var/perfdata-host.log "$TIMET$" = "$HOSTNAME$"=20 > "$OUTPUT$" "$PERFDATA$" >=20 > =20 >=20 > =20 >=20 > with something like: >=20 > /opt/asnmtap/perfparse/bin/ perfparse-pluginoutput2mysql =20 > --pluginoutput "$TIMET$" "$HOSTNAME$" "$OUTPUT$" "$PERFDATA$" >=20 > =20 >=20 > =20 >=20 > Hi Ben, >=20 > =20 >=20 > Do you remember that i told you that is wanted to port perfparse to asnmtap, >=20 > my application monitoring tool I=92am writing. >=20 > =20 >=20 > Now I have performance data support in it compatible with nagios. >=20 > =20 >=20 > I will do my first test with perfparse-log2mysql, but my question is >=20 > of that that is not possible to have a command perfparse-pluginoutput2mysql >=20 > where perfparse-pluginoutput2mysql give me the possibility to write >=20 > directly the output of my plugin into the database. >=20 > =20 >=20 > With perfparse-log2mysql, I need to write the plugin output first into = a=20 > file, >=20 > and then perfparse-log2mysql add these data to the database. >=20 > =20 >=20 > perfparse-log2mysql - help >=20 > -l, --serviceperf-log <string> : Input log source (from nagios or=20 > perfparsed) >=20 > =20 >=20 > The question is, can you moddify a version perfparse-log2mysql of = where=20 > I can give the plugin output as a parameter please: >=20 > perfparse-pluginoutput2mysql >=20 > -p, --pluginoutput <string> : pluginoutput (from nagios or = perfparsed) >=20 > =20 >=20 > =20 >=20 > *Application System Network Monitoring Tool Alex Peeters*=20 > <http://asnmtap.citap.be/##> >=20 > =20 >=20 > http://asnmtap.citap.be <http://asnmtap.citap.be/> >=20 > =20 >=20 > -- Alex >=20 > =20 >=20 > =09 >=20 > =20 >=20 > =20 >=20 >=20 > -- > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.0.300 / Virus Database: 265.8.5 - Release Date: 3/02/2005 >=20 >=20 > -- > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.0.300 / Virus Database: 265.8.5 - Release Date: 3/02/2005 >=20 >=20 > -- > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.0.300 / Virus Database: 265.8.5 - Release Date: 3/02/2005 >=20 >=20 > -- > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.0.300 / Virus Database: 265.8.5 - Release Date: 3/02/2005 >=20 >=20 > -- > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.0.300 / Virus Database: 265.8.5 - Release Date: 3/02/2005 >=20 --=20 No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.8.5 - Release Date: 3/02/2005 =20 --=20 No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.8.5 - Release Date: 3/02/2005 =20 |
From: Ben C. <bcl...@pe...> - 2005-02-07 17:26:32
|
Alex, Alex Peeters wrote: > Hi Ben, > > #define HOST_TITLE = _("Host"); > #define SERVICE_TITLE = _("Title"); > > or do you mean > > #define HOST_TITLE = _("Host"); > #define SERVICE_TITLE = _("Service"); :) But please use Yves version: #define HOST_TITLE (_("Host")) #define SERVICE_TITLE (_("Title")) > Is this text or not? > -------------------- > sHost = strdup(scgi("host")); > sService = strdup(scgi("service")); No. This is a CGI variable. This should be the same as, or nearly the same as the field name in the database, by programming convention. It would not be a good idea to change any of these at this stage. Same of course with the SQL, keep the service and host names :) Sample of existing code: printf(" <b>%s</b><br>\n", _("Edit a Host Group List")); printf(" <a href=\"%s?add_amend_host_group=1\">%s</a>\n", sProgName, _("Edit Host Groups")); New code: pritnf(" <b>%s %s %s</b><br>\n", _("Edit a"), HOST_TITLE, _("Group List")); printf(" <a href=\"%s?add_amend_host_group=1\">%s %s %s</a>\n", sProgName, _("Edit"), HOST_TITLE, _T("Groups"))); This is worrying as this will force a re-translation of the program. A lot of hard work went into the French and German translations. May I ask you to complete some of the work, and open up your patch for review? Then we can all decide where to take this. There may be other ways of sed'ing the translations as a post-configure work, therefore not requiring any of this work. Or using a different language which is specific to your needs? Regards, Ben. > > > -- Alex > > -----Original Message----- > From: Ben Clewett [mailto:bcl...@pe...] > Sent: maandag 7 februari 2005 10:19 > To: ale...@ci... > Cc: bcl...@pe...; gc...@pe...; > per...@li... > Subject: Re: Perfparse > > Dear Alex, > > I will answer you in line: > > Alex Peeters wrote: > >>Question? >> >>my $performanceData = "duration=$responseTime s;$trendline;;; 'response >>time'=$responseTime s;$trendline;;;"; >> >> DUMMY-T5 >> Condenced View test >> > > <http://asnmtap.citap.be/cgi-bin/perfparse.cgi?graph=1&host=DUMMY%2DT5&servi > ce=Condenced+View+test&metric=duration> > >> duration >> 2005-02-06 17:34:00 >> 1 >> UP >> > > <http://asnmtap.citap.be/cgi-bin/perfparse.cgi?graph=1&host=DUMMY%2DT5&servi > ce=Condenced+View+test&metric=response+time> > >> response time >> 2005-02-06 17:32:00 >> 1 >> WARNING >> >>The responstime is alway the same in this test for ‘duration’ and >>‘response time, and sended at the same time >> >>Why do I sea into PerfParse 2 different times 17:34 and 17:32 ? > > > The times reflect the last time in which a valid result was parsed into > PP. This suggests one of the metrics failed. Check your drop file. > > I see you have a small error: > > You have: $performanceData = "duration=$responseTime s;$trendline;;; > Should be: $performanceData = "duration=${responseTime}s;$trendline;;; > > No space between value and unit. This may help. > > > >>Question? >> >>*Administration* >> >>Administraion Menu >><http://asnmtap.citap.be/cgi-bin/perfparse.cgi?admin_menu=1> >> >>Is it not ‘Administration Menu’ ? > > > Yes. I am dyslexic. Since my 'vi' has no spell checker, I relay on > kind people such as your self pointing these out. This will be fixed as > soon as I have an excuse to release another version :) > > > >>Question? >> >> >>Is it possible to sea the results from the same host, service coming >>from one raw data, into one graphics. > > > Soon. My self and Yves have been arguing hard about the best way of > doing this. Unfortunately we both have little time available. As soon > as I can find a few days, this will be done. > > This will be completed like a shopping card. You will add metrics to > your cart, then 'check out' and store a permanent template. This can > then be used at any time to draw multiple metrics. > > Watch this space! > > > >>I mean, is it possible to have the results for ‘duration’ and ‘response >>time into the same graphic? > > > The scaling may not show anything useful in this case, you will see only > the shape of the lines on the graph. But, yes, this will be possible. > > > >>Question? >> >>The name ‘Host’ and ‘Service’ are the hard coded? >> >>This because into ASNMTAP, ‘Host’ means there ‘Plugin Group’ and >>‘Service’ means there ‘Plugin Title’ and if possible I want to change >>these two names? > > > Maybe you want to do a patch for us? > > Edit libpp_common.h and add: > > #define HOST_TITLE = _("Host"); > #define SERVICE_TITLE = _("Title"); > > Then go through the code changing this. In your code you can change > this to something else. If this is popular, this can become a > configuration variable. > > > > >>*A working version of PerfParse integrated into ASNMTAP:* >> >>* * >> >>*PerfParse facilitates the storage and analysis of binary performance >>data produced by the Application Monitoring >><http://asnmtap.citap.be/cgi-bin/perfparse.cgi>* >> >>http://asnmtap.citap.be/asnmtap/nav/test/reports-index-cv.html >> >>http://asnmtap.citap.be/cgi-bin/perfparse.cgi > > > Interesting! > > Please keep sending your ideas :) > > Regards, > > Ben Clewett. > > > > > >> >> >> >> >>-----Original Message----- >>*From:* Alex Peeters [mailto:ale...@ci...] >>*Sent:* zondag 6 februari 2005 12:56 >>*To:* 'bcl...@pe...' >>*Cc:* 'gc...@pe...' >>*Subject:* RE: Perfparse >> >> >> >> >> >>The idea is to replace: >> >>/opt/asnmtap/perfparse/bin/perfparse_nagios_pipe_command.pl >>/opt/asnmtap/perfparse/var/var/perfdata-host.log "$TIMET$" "$HOSTNAME$" >>"$OUTPUT$" "$PERFDATA$" >> >> >> >> >> >>with something like: >> >>/opt/asnmtap/perfparse/bin/ perfparse-pluginoutput2mysql >>--pluginoutput "$TIMET$" "$HOSTNAME$" "$OUTPUT$" "$PERFDATA$" >> >> >> >> >> >>Hi Ben, >> >> >> >>Do you remember that i told you that is wanted to port perfparse to > > asnmtap, > >>my application monitoring tool I’am writing. >> >> >> >>Now I have performance data support in it compatible with nagios. >> >> >> >>I will do my first test with perfparse-log2mysql, but my question is >> >>of that that is not possible to have a command > > perfparse-pluginoutput2mysql > >>where perfparse-pluginoutput2mysql give me the possibility to write >> >>directly the output of my plugin into the database. >> >> >> >>With perfparse-log2mysql, I need to write the plugin output first into a >>file, >> >>and then perfparse-log2mysql add these data to the database. >> >> >> >>perfparse-log2mysql - help >> >>-l, --serviceperf-log <string> : Input log source (from nagios or >>perfparsed) >> >> >> >>The question is, can you moddify a version perfparse-log2mysql of where >>I can give the plugin output as a parameter please: >> >>perfparse-pluginoutput2mysql >> >>-p, --pluginoutput <string> : pluginoutput (from nagios or perfparsed) >> >> >> >> >> >>*Application System Network Monitoring Tool Alex Peeters* >><http://asnmtap.citap.be/##> >> >> >> >>http://asnmtap.citap.be <http://asnmtap.citap.be/> >> >> >> >>-- Alex >> >> >> >> >> >> >> >> >> >> >>-- >>No virus found in this outgoing message. >>Checked by AVG Anti-Virus. >>Version: 7.0.300 / Virus Database: 265.8.5 - Release Date: 3/02/2005 >> >> >>-- >>No virus found in this outgoing message. >>Checked by AVG Anti-Virus. >>Version: 7.0.300 / Virus Database: 265.8.5 - Release Date: 3/02/2005 >> >> >>-- >>No virus found in this outgoing message. >>Checked by AVG Anti-Virus. >>Version: 7.0.300 / Virus Database: 265.8.5 - Release Date: 3/02/2005 >> >> >>-- >>No virus found in this outgoing message. >>Checked by AVG Anti-Virus. >>Version: 7.0.300 / Virus Database: 265.8.5 - Release Date: 3/02/2005 >> >> >>-- >>No virus found in this outgoing message. >>Checked by AVG Anti-Virus. >>Version: 7.0.300 / Virus Database: 265.8.5 - Release Date: 3/02/2005 >> > > |
From: Alex P. <ale...@ci...> - 2005-02-07 18:11:43
|
> This is worrying as this will force a re-translation of the program. = A=20 > lot of hard work went into the French and German translations. > May I ask you to complete some of the work, and open up your patch for = > review? Then we can all decide where to take this. Oke, I do this on version 0.105.5 > There may be other ways of sed'ing the translations as a = post-configure=20 > work, therefore not requiring any of this work. Or using a different=20 > language which is specific to your needs? How does it works if I sea it like one different language. But I work with one configuration file for my application. PS: When the file Asnmtap.conf don't exist, the variable are the one = hardcoded. When the file Asnmtap.conf exist, the variable are taken from here.# -------------------------------------------------------------------------= -# =A9 Copyright 2003-2005 Alex Peeters [ale...@ci...] # -------------------------------------------------------------------------= -# Asnmtap.conf for Asnmtap.pm 2.000.000 or later # = -------------------------------------------------------------------------= - # SET ENVIRONMENT VARIABLES - - - - - - - - - - - - - - - - - - - - - - = - $ENV{'PATH'}=3D'/usr/local/bin:/usr/bin:/bin'; $ENV{'BASH_ENV'}=3D''; $ENV{'ENV'}=3D''; # Common variables - - - - - - - - - - - - - - - - - - - - - - - - - - = - $APPLICATION =3D "Application Monitoring"; $BUSINESS =3D "CITAP"; $DEPARTMENT =3D "Development"; $SENDEMAILTO =3D "alex.peeters\@citap.be"; $COPYRIGHT =3D "2003-2005"; $ASNMTAPMAN =3D "asnmtap.pdf"; -----Original Message----- From: Ben Clewett [mailto:bcl...@pe...]=20 Sent: maandag 7 februari 2005 18:25 To: ale...@ci... Cc: per...@li... Subject: Re: [Perfparse-users] RE: Perfparse Alex, Alex Peeters wrote: > Hi Ben, >=20 > #define HOST_TITLE =3D _("Host"); > #define SERVICE_TITLE =3D _("Title"); >=20 > or do you mean >=20 > #define HOST_TITLE =3D _("Host"); > #define SERVICE_TITLE =3D _("Service"); :) But please use Yves version: #define HOST_TITLE (_("Host")) #define SERVICE_TITLE (_("Title")) > Is this text or not? > -------------------- > sHost =3D strdup(scgi("host")); > sService =3D strdup(scgi("service")); No. This is a CGI variable. This should be the same as, or nearly the=20 same as the field name in the database, by programming convention. It=20 would not be a good idea to change any of these at this stage. Same of course with the SQL, keep the service and host names :) Sample of existing code: printf(" <b>%s</b><br>\n", _("Edit a Host Group List")); printf(" <a href=3D\"%s?add_amend_host_group=3D1\">%s</a>\n", sProgName, _("Edit Host Groups")); New code: pritnf(" <b>%s %s %s</b><br>\n", _("Edit a"), HOST_TITLE, _("Group List")); printf(" <a href=3D\"%s?add_amend_host_group=3D1\">%s %s %s</a>\n", sProgName, _("Edit"), HOST_TITLE, _T("Groups"))); This is worrying as this will force a re-translation of the program. A=20 lot of hard work went into the French and German translations. May I ask you to complete some of the work, and open up your patch for=20 review? Then we can all decide where to take this. There may be other ways of sed'ing the translations as a post-configure=20 work, therefore not requiring any of this work. Or using a different=20 language which is specific to your needs? Regards, Ben. >=20 >=20 > -- Alex >=20 > -----Original Message----- > From: Ben Clewett [mailto:bcl...@pe...]=20 > Sent: maandag 7 februari 2005 10:19 > To: ale...@ci... > Cc: bcl...@pe...; gc...@pe...; > per...@li... > Subject: Re: Perfparse >=20 > Dear Alex, >=20 > I will answer you in line: >=20 > Alex Peeters wrote: >=20 >>Question? >> >>my $performanceData =3D "duration=3D$responseTime s;$trendline;;; = 'response=20 >>time'=3D$responseTime s;$trendline;;;"; >> >> DUMMY-T5=20 >> Condenced View test=20 >> >=20 > <http://asnmtap.citap.be/cgi-bin/perfparse.cgi?graph=3D1&host=3DDUMMY%2DT= 5&servi > ce=3DCondenced+View+test&metric=3Dduration> >=20 >> duration=20 >> 2005-02-06 17:34:00=20 >> 1=20 >> UP=20 >> >=20 > <http://asnmtap.citap.be/cgi-bin/perfparse.cgi?graph=3D1&host=3DDUMMY%2DT= 5&servi > ce=3DCondenced+View+test&metric=3Dresponse+time> >=20 >> response time=20 >> 2005-02-06 17:32:00=20 >> 1=20 >> WARNING=20 >> >>The responstime is alway the same in this test for =91duration=92 and=20 >>=91response time, and sended at the same time >> >>Why do I sea into PerfParse 2 different times 17:34 and 17:32 ? >=20 >=20 > The times reflect the last time in which a valid result was parsed = into=20 > PP. This suggests one of the metrics failed. Check your drop file. >=20 > I see you have a small error: >=20 > You have: $performanceData =3D "duration=3D$responseTime = s;$trendline;;; > Should be: $performanceData =3D = "duration=3D${responseTime}s;$trendline;;; >=20 > No space between value and unit. This may help. >=20 >=20 >=20 >>Question? >> >>*Administration* >> >>Administraion Menu=20 >><http://asnmtap.citap.be/cgi-bin/perfparse.cgi?admin_menu=3D1> >> >>Is it not =91Administration Menu=92 ? >=20 >=20 > Yes. I am dyslexic. Since my 'vi' has no spell checker, I relay on=20 > kind people such as your self pointing these out. This will be fixed = as=20 > soon as I have an excuse to release another version :) >=20 >=20 >=20 >>Question? >>=20 >> >>Is it possible to sea the results from the same host, service coming=20 >>from one raw data, into one graphics. >=20 >=20 > Soon. My self and Yves have been arguing hard about the best way of=20 > doing this. Unfortunately we both have little time available. As = soon=20 > as I can find a few days, this will be done. >=20 > This will be completed like a shopping card. You will add metrics to=20 > your cart, then 'check out' and store a permanent template. This can=20 > then be used at any time to draw multiple metrics. >=20 > Watch this space! >=20 >=20 >=20 >>I mean, is it possible to have the results for =91duration=92 and = =91response=20 >>time into the same graphic? >=20 >=20 > The scaling may not show anything useful in this case, you will see = only=20 > the shape of the lines on the graph. But, yes, this will be possible. >=20 >=20 >=20 >>Question? >> >>The name =91Host=92 and =91Service=92 are the hard coded? >> >>This because into ASNMTAP, =91Host=92 means there =91Plugin Group=92 = and=20 >>=91Service=92 means there =91Plugin Title=92 and if possible I want to = change=20 >>these two names? >=20 >=20 > Maybe you want to do a patch for us? >=20 > Edit libpp_common.h and add: >=20 > #define HOST_TITLE =3D _("Host"); > #define SERVICE_TITLE =3D _("Title"); >=20 > Then go through the code changing this. In your code you can change=20 > this to something else. If this is popular, this can become a=20 > configuration variable. >=20 >=20 >=20 >=20 >>*A working version of PerfParse integrated into ASNMTAP:* >> >>* * >> >>*PerfParse facilitates the storage and analysis of binary performance=20 >>data produced by the Application Monitoring=20 >><http://asnmtap.citap.be/cgi-bin/perfparse.cgi>* >> >>http://asnmtap.citap.be/asnmtap/nav/test/reports-index-cv.html >> >>http://asnmtap.citap.be/cgi-bin/perfparse.cgi >=20 >=20 > Interesting! >=20 > Please keep sending your ideas :) >=20 > Regards, >=20 > Ben Clewett. >=20 >=20 >=20 >=20 >=20 >>=20 >> >>=20 >> >>-----Original Message----- >>*From:* Alex Peeters [mailto:ale...@ci...] >>*Sent:* zondag 6 februari 2005 12:56 >>*To:* 'bcl...@pe...' >>*Cc:* 'gc...@pe...' >>*Subject:* RE: Perfparse >> >>=20 >> >>=20 >> >>The idea is to replace: >> >>/opt/asnmtap/perfparse/bin/perfparse_nagios_pipe_command.pl =20 >>/opt/asnmtap/perfparse/var/var/perfdata-host.log "$TIMET$" = "$HOSTNAME$"=20 >>"$OUTPUT$" "$PERFDATA$" >> >>=20 >> >>=20 >> >>with something like: >> >>/opt/asnmtap/perfparse/bin/ perfparse-pluginoutput2mysql =20 >>--pluginoutput "$TIMET$" "$HOSTNAME$" "$OUTPUT$" "$PERFDATA$" >> >>=20 >> >>=20 >> >>Hi Ben, >> >>=20 >> >>Do you remember that i told you that is wanted to port perfparse to >=20 > asnmtap, >=20 >>my application monitoring tool I=92am writing. >> >>=20 >> >>Now I have performance data support in it compatible with nagios. >> >>=20 >> >>I will do my first test with perfparse-log2mysql, but my question is >> >>of that that is not possible to have a command >=20 > perfparse-pluginoutput2mysql >=20 >>where perfparse-pluginoutput2mysql give me the possibility to write >> >>directly the output of my plugin into the database. >> >>=20 >> >>With perfparse-log2mysql, I need to write the plugin output first into = a=20 >>file, >> >>and then perfparse-log2mysql add these data to the database. >> >>=20 >> >>perfparse-log2mysql - help >> >>-l, --serviceperf-log <string> : Input log source (from nagios or=20 >>perfparsed) >> >>=20 >> >>The question is, can you moddify a version perfparse-log2mysql of = where=20 >>I can give the plugin output as a parameter please: >> >>perfparse-pluginoutput2mysql >> >>-p, --pluginoutput <string> : pluginoutput (from nagios or = perfparsed) >> >>=20 >> >>=20 >> >>*Application System Network Monitoring Tool Alex Peeters*=20 >><http://asnmtap.citap.be/##> >> >>=20 >> >>http://asnmtap.citap.be <http://asnmtap.citap.be/> >> >>=20 >> >>-- Alex >> =20 --=20 No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.8.5 - Release Date: 3/02/2005 =20 |