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 |