From: Ben C. <ben...@ww...> - 2005-02-08 21:34:35
|
Alex, This looks like an interesting piece of work. I think now we need to discuss with the other members where we take this. We can continue with this method but break the current translation. Or do something else. For this there are lots of other people who need to comment :) I very much want to use your system. Possibly you can let us know a little more about it? We have to work out the best way of making PerfParse generic to any data gathering system. If breaking the translation is the best way for the greater good, then so be it. Otherwise, we must be open to other non-destructive methods. It occurs to me that this may work well: #ifdef USE_NAGIOS _("Host"); #elsif USE_DARREN_KEMP_SYSTEM _("Plugin"); #endif Although some user may want to use both systems :) I am sorry I have only just thought if this way. But as I said, I think other members need to comment now. I have moved this discussion to per...@li... where this discussion is more appropriate. Ben. On Tue, 8 Feb 2005 19:43:51 +0100, Alex Peeters wrote > Hi Ben, > > I have attached a file with the patch and modified file into it. > > The patch have been created with: > > diff -u perfparse-0.105.5-asnmtap/libpp_common/ > perfparse-0.105.5/libpp_common/ > perfparse -patch-commom > > diff -u perfparse-0.105.5-asnmtap/cgi/ perfparse-0.105.5/cgi > perfparse > -patch-cgi > > -- Alex > > > > -- > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.0.300 / Virus Database: 265.8.6 - Release Date: 7/02/2005 -- PerfParse Project (http://www.perfparse.org) |
From: Alex P. <ale...@ci...> - 2005-02-08 22:02:26
|
Hi, I like a non-destructive method. The example: #ifdef USE_NAGIOS _("Host"); #elsif USE_ASNMTAP _("Plugin"); #endif is al lot of work. The idea from Yves, by using constants definitions into libpp_common.h #if ENABLE_ASNMTAP #define APPLICATION_TITLE (_("ASNMTAP")) #define HOST_TITLE (_("Plugin")) #define SERVICE_TITLE (_("Unique Key")) #define RAW_REPORT_TITLE (_("Raw ASNMTAP Plugin Report")) #define MARK_DELETION_TITLE (_("Mark Plugin for complete = deletion.")) #define DELETION_POLICIES_TITLE (_("Deletion Policies for Plugins")) = #endif #if ENABLE_NAGIOS #define APPLICATION_TITLE (_("Nagios")) #define HOST_TITLE (_("Host")) #define SERVICE_TITLE (_("Title")) #define RAW_REPORT_TITLE (_("Raw Nagios Host Report")) #define MARK_DELETION_TITLE (_("Mark Host for complete deletion.")) #define DELETION_POLICIES_TITLE (_("Deletion Policies for Hosts"))=20 #endif is less destructive. > I very much want to use your system. =20 > Possibly you can let us know a little more about it? =20 The data coming from the plugins is Nagios compatible. I use Nagios for for monitoring system and network compontents. But from the moment a = test takes more then 10 sec, Nagios can't be used anymore? ASNMTAP can run Nagios or ASNMTAP Nagios compatible plugins. These plugins that simulate a users for a whole application. That can be cactus, ftp servers (with up and downloading from files), setting up a ras connection to test it, testing a phone central, testing the sending and receiving from emails, receiving from xml emails with the status from test done by other processes, to report problems, = ... > Although some user may want to use both systems :) I also use both Nagios and ASNMTAP onto the same server. I dit compile = it 2 times. One time normally, and one time with=20 --prefix=3D/opt/asnmtap/perfparse = --with-imagedir=3D/opt/asnmtap/htmlroot/img/ --with-cgidir=3D/opt/asnmtap/htmlroot/cgi-bin --with-http_image_path=3D/asnmtap/img Is it possible to have the final patch into your next release,=20 so that I don't need to change every time there is a new release? May i make also a version of the 'Perfparse addon for Nagios' picture, 'Perfparse addon for ASNMTAP'? Now I compile with: ./configure --prefix=3D/opt/asnmtap/perfparse --with-imagedir=3D/opt/asnmtap/htmlroot/img/ --with-cgidir=3D/opt/asnmtap/htmlroot/cgi-bin --with-http_image_path=3D/asnmtap/img to compile perfparse. Is it possible to have one parameters: ./configure--enable-asnmtap =20 but where for the nagios users because of the=20 --enable-nagios (default) parameters nothings change!!! so that it automatically compiles with the next default parameters: --prefix=3D/opt/asnmtap/perfparse = --with-imagedir=3D/opt/asnmtap/htmlroot/img/ --with-cgidir=3D/opt/asnmtap/htmlroot/cgi-bin --with-http_image_path=3D/asnmtap/img and where then in libpp_common.h #if ENABLE_ASNMTAP #define APPLICATION_TITLE (_("ASNMTAP")) #define HOST_TITLE (_("Plugin")) #define SERVICE_TITLE (_("Unique Key")) #define RAW_REPORT_TITLE (_("Raw ASNMTAP Plugin Report")) #define MARK_DELETION_TITLE (_("Mark Plugin for complete = deletion.")) #define DELETION_POLICIES_TITLE (_("Deletion Policies for Plugins")) = #endif #if ENABLE_NAGIOS #define APPLICATION_TITLE (_("Nagios")) #define HOST_TITLE (_("Host")) #define SERVICE_TITLE (_("Title")) #define RAW_REPORT_TITLE (_("Raw Nagios Host Report")) #define MARK_DELETION_TITLE (_("Mark Host for complete deletion.")) #define DELETION_POLICIES_TITLE (_("Deletion Policies for Hosts")) = #endif and where then the 'Perfparse addon for ASNMTAP' pictures are copied = during install instead of the 'Perfparse addon for Nagios' pictures -- Alex Peeters -----Original Message----- From: Ben Clewett [mailto:ben...@ww...]=20 Sent: dinsdag 8 februari 2005 22:34 To: ale...@ci...; per...@li... Cc: ale...@sm... Subject: Re: Perfparse 2005 02 09, the one hase the correct patch Alex, This looks like an interesting piece of work. I think now we need to discuss with the other members where we take = this. We can continue with this method but break the current translation. Or = do something else. For this there are lots of other people who need to = comment :) I very much want to use your system. Possibly you can let us know a = little more about it? =20 We have to work out the best way of making PerfParse generic to any data gathering system. If breaking the translation is the best way for the greater good, then so be it. Otherwise, we must be open to other = non-destructive methods. It occurs to me that this may work well: #ifdef USE_NAGIOS _("Host"); #elsif USE_DARREN_KEMP_SYSTEM _("Plugin"); #endif Although some user may want to use both systems :) I am sorry I have only just thought if this way. But as I said, I think other members need to comment now. I have moved this discussion to per...@li... where = this discussion is more appropriate. Ben. On Tue, 8 Feb 2005 19:43:51 +0100, Alex Peeters wrote > Hi Ben, >=20 > I have attached a file with the patch and modified file into it. >=20 > The patch have been created with: >=20 > diff -u perfparse-0.105.5-asnmtap/libpp_common/ > perfparse-0.105.5/libpp_common/ > perfparse -patch-commom >=20 > diff -u perfparse-0.105.5-asnmtap/cgi/ perfparse-0.105.5/cgi > = perfparse > -patch-cgi >=20 > -- Alex >=20 > =20 >=20 > --=20 > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.0.300 / Virus Database: 265.8.6 - Release Date: 7/02/2005 -- PerfParse Project (http://www.perfparse.org) --=20 No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.8.6 - Release Date: 7/02/2005 =20 --=20 No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.8.6 - Release Date: 7/02/2005 =20 |
From: Ben C. <ben...@ww...> - 2005-02-09 08:37:59
|
Alex, You have some good ideas and I can see you are keen to get going. You suggestion about flags in the configure sounds like the correct option. Before you do too much work, I am keen to have some feedback from other users. As I said, the current method you use will break translation and make re-translation harder. Eg, to translate: "Show all Hosts below" is easy. To translate three isolated strings: " below", "Hosts" & "Show all " may result in a bad translation. To break the current translations requires a very good reason, as this is the work of many people. :) If you can wait a short while for the opinion of other users, this would be adventagious. But your work is very important as you will force the development of PerfParse into a more generic tool, which can be applied to more than just Nagios data. So your patch and other work in time, will be extremely useful and definitely result in a better product. Regards, Ben. On Tue, 8 Feb 2005 23:02:08 +0100, Alex Peeters wrote > Hi, > > I like a non-destructive method. > > The example: > #ifdef USE_NAGIOS > _("Host"); > #elsif USE_ASNMTAP > _("Plugin"); > #endif > > is al lot of work. > > The idea from Yves, by using constants definitions into libpp_common.h > > #if ENABLE_ASNMTAP > #define APPLICATION_TITLE (_("ASNMTAP")) > #define HOST_TITLE (_("Plugin")) > #define SERVICE_TITLE (_("Unique Key")) > #define RAW_REPORT_TITLE (_("Raw ASNMTAP Plugin Report")) > #define MARK_DELETION_TITLE (_("Mark Plugin for complete deletion.")) > #define DELETION_POLICIES_TITLE (_("Deletion Policies for Plugins")) #endif > > #if ENABLE_NAGIOS > #define APPLICATION_TITLE (_("Nagios")) > #define HOST_TITLE (_("Host")) > #define SERVICE_TITLE (_("Title")) > #define RAW_REPORT_TITLE (_("Raw Nagios Host Report")) > #define MARK_DELETION_TITLE (_("Mark Host for complete deletion.")) > #define DELETION_POLICIES_TITLE (_("Deletion Policies for Hosts")) > #endif > > is less destructive. > > > I very much want to use your system. > > Possibly you can let us know a little more about it? > The data coming from the plugins is Nagios compatible. I use Nagios for > for monitoring system and network compontents. But from the moment a > test takes more then 10 sec, Nagios can't be used anymore? > > ASNMTAP can run Nagios or ASNMTAP Nagios compatible plugins. > > These plugins that simulate a users for a whole application. > > That can be cactus, ftp servers (with up and downloading from files), > setting up a ras connection to test it, testing a phone central, > testing the sending and receiving from emails, receiving from xml emails > with the status from test done by other processes, to report > problems, ... > > > Although some user may want to use both systems :) > > I also use both Nagios and ASNMTAP onto the same server. I dit > compile it 2 times. One time normally, and one time with > > --prefix=/opt/asnmtap/perfparse --with-imagedir=/opt/asnmtap/htmlroot/img/ > --with-cgidir=/opt/asnmtap/htmlroot/cgi-bin > --with-http_image_path=/asnmtap/img > > Is it possible to have the final patch into your next release, > so that I don't need to change every time there is a new release? > > May i make also a version of the 'Perfparse addon for Nagios' > picture, 'Perfparse addon for ASNMTAP'? > > Now I compile with: > > ./configure --prefix=/opt/asnmtap/perfparse > --with-imagedir=/opt/asnmtap/htmlroot/img/ > --with-cgidir=/opt/asnmtap/htmlroot/cgi-bin > --with-http_image_path=/asnmtap/img > to compile perfparse. > > Is it possible to have one parameters: > > ./configure--enable-asnmtap > > but where for the nagios users because of the > --enable-nagios (default) parameters nothings change!!! > > so that it automatically compiles with the next default parameters: > > --prefix=/opt/asnmtap/perfparse --with-imagedir=/opt/asnmtap/htmlroot/img/ > --with-cgidir=/opt/asnmtap/htmlroot/cgi-bin > --with-http_image_path=/asnmtap/img > > and where then in libpp_common.h > > #if ENABLE_ASNMTAP > #define APPLICATION_TITLE (_("ASNMTAP")) > #define HOST_TITLE (_("Plugin")) > #define SERVICE_TITLE (_("Unique Key")) > #define RAW_REPORT_TITLE (_("Raw ASNMTAP Plugin Report")) > #define MARK_DELETION_TITLE (_("Mark Plugin for complete deletion.")) > #define DELETION_POLICIES_TITLE (_("Deletion Policies for Plugins")) #endif > > #if ENABLE_NAGIOS > #define APPLICATION_TITLE (_("Nagios")) > #define HOST_TITLE (_("Host")) > #define SERVICE_TITLE (_("Title")) > #define RAW_REPORT_TITLE (_("Raw Nagios Host Report")) > #define MARK_DELETION_TITLE (_("Mark Host for complete deletion.")) > #define DELETION_POLICIES_TITLE (_("Deletion Policies for Hosts")) #endif > > and where then the 'Perfparse addon for ASNMTAP' pictures are copied > during install instead of the 'Perfparse addon for Nagios' pictures > > -- Alex Peeters > > -----Original Message----- > From: Ben Clewett [mailto:ben...@ww...] > Sent: dinsdag 8 februari 2005 22:34 > To: ale...@ci...; per...@li... > Cc: ale...@sm... > Subject: Re: Perfparse 2005 02 09, the one hase the correct patch > > Alex, > > This looks like an interesting piece of work. > > I think now we need to discuss with the other members where we take this. > > We can continue with this method but break the current translation. > Or do something else. For this there are lots of other people who > need to comment :) > > I very much want to use your system. Possibly you can let us know a > little more about it? > > We have to work out the best way of making PerfParse generic to any data > gathering system. If breaking the translation is the best way for > the greater good, then so be it. Otherwise, we must be open to > other non-destructive methods. > > It occurs to me that this may work well: > > #ifdef USE_NAGIOS > _("Host"); > #elsif USE_DARREN_KEMP_SYSTEM > _("Plugin"); > #endif > > Although some user may want to use both systems :) > > I am sorry I have only just thought if this way. > > But as I said, I think other members need to comment now. > > I have moved this discussion to per...@li... > where this discussion is more appropriate. > > Ben. > > On Tue, 8 Feb 2005 19:43:51 +0100, Alex Peeters wrote > > Hi Ben, > > > > I have attached a file with the patch and modified file into it. > > > > The patch have been created with: > > > > diff -u perfparse-0.105.5-asnmtap/libpp_common/ > > perfparse-0.105.5/libpp_common/ > perfparse -patch-commom > > > > diff -u perfparse-0.105.5-asnmtap/cgi/ perfparse-0.105.5/cgi > perfparse > > -patch-cgi > > > > -- Alex > > > > > > > > -- > > No virus found in this outgoing message. > > Checked by AVG Anti-Virus. > > Version: 7.0.300 / Virus Database: 265.8.6 - Release Date: 7/02/2005 > > -- > PerfParse Project (http://www.perfparse.org) > > -- > No virus found in this incoming message. > Checked by AVG Anti-Virus. > Version: 7.0.300 / Virus Database: 265.8.6 - Release Date: 7/02/2005 > > > -- > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.0.300 / Virus Database: 265.8.6 - Release Date: 7/02/2005 -- PerfParse Project (http://www.perfparse.org) |
From: Flo G. <fl...@bi...> - 2005-02-09 10:00:23
|
Hi, what is the ASNMTAP tool? A nagios clone? Just curious. You talk about performance problems with nagios. I had them too with snmp checks. But since i use snmppd (snmp proxy daemon) http://bubble.nsys.by/projects/snmppd/ all problems are gone. About translation things: I'm not familiar with gettext(), but is it good to translate single words? I think we always have to use complete sentences in translations. Examples: english: Segmentation fault german word by word: Segmentierung Fehler german contextual: Speicherzugriffsfehler Sometimes verbs and nouns are not at the same place after translation, and some languages are strange: Indonesian don't have time information in verbs ("do", "did", "have done", "will do") but in additional words. Sonds like "do yesterday", "do tomorrow", "do soon", ... Flo On Wed, 9 Feb 2005, Ben Clewett wrote: > Alex, > > You have some good ideas and I can see you are keen to get going. > > You suggestion about flags in the configure sounds like the correct option. > > Before you do too much work, I am keen to have some feedback from other users. > As I said, the current method you use will break translation and make > re-translation harder. > > Eg, to translate: "Show all Hosts below" is easy. > To translate three isolated strings: " below", "Hosts" & "Show all " may > result in a bad translation. > > To break the current translations requires a very good reason, as this is the > work of many people. :) > > If you can wait a short while for the opinion of other users, this would be > adventagious. > > But your work is very important as you will force the development of PerfParse > into a more generic tool, which can be applied to more than just Nagios data. > So your patch and other work in time, will be extremely useful and definitely > result in a better product. > > Regards, Ben. > > > > > On Tue, 8 Feb 2005 23:02:08 +0100, Alex Peeters wrote >> Hi, >> >> I like a non-destructive method. >> >> The example: >> #ifdef USE_NAGIOS >> _("Host"); >> #elsif USE_ASNMTAP >> _("Plugin"); >> #endif >> >> is al lot of work. >> >> The idea from Yves, by using constants definitions into libpp_common.h >> >> #if ENABLE_ASNMTAP >> #define APPLICATION_TITLE (_("ASNMTAP")) >> #define HOST_TITLE (_("Plugin")) >> #define SERVICE_TITLE (_("Unique Key")) >> #define RAW_REPORT_TITLE (_("Raw ASNMTAP Plugin Report")) >> #define MARK_DELETION_TITLE (_("Mark Plugin for complete deletion.")) >> #define DELETION_POLICIES_TITLE (_("Deletion Policies for Plugins")) #endif >> >> #if ENABLE_NAGIOS >> #define APPLICATION_TITLE (_("Nagios")) >> #define HOST_TITLE (_("Host")) >> #define SERVICE_TITLE (_("Title")) >> #define RAW_REPORT_TITLE (_("Raw Nagios Host Report")) >> #define MARK_DELETION_TITLE (_("Mark Host for complete deletion.")) >> #define DELETION_POLICIES_TITLE (_("Deletion Policies for Hosts")) >> #endif >> >> is less destructive. >> >>> I very much want to use your system. >>> Possibly you can let us know a little more about it? >> The data coming from the plugins is Nagios compatible. I use Nagios for >> for monitoring system and network compontents. But from the moment a >> test takes more then 10 sec, Nagios can't be used anymore? >> >> ASNMTAP can run Nagios or ASNMTAP Nagios compatible plugins. >> >> These plugins that simulate a users for a whole application. >> >> That can be cactus, ftp servers (with up and downloading from files), >> setting up a ras connection to test it, testing a phone central, >> testing the sending and receiving from emails, receiving from xml emails >> with the status from test done by other processes, to report >> problems, ... >> >>> Although some user may want to use both systems :) >> >> I also use both Nagios and ASNMTAP onto the same server. I dit >> compile it 2 times. One time normally, and one time with >> >> --prefix=/opt/asnmtap/perfparse --with-imagedir=/opt/asnmtap/htmlroot/img/ >> --with-cgidir=/opt/asnmtap/htmlroot/cgi-bin >> --with-http_image_path=/asnmtap/img >> >> Is it possible to have the final patch into your next release, >> so that I don't need to change every time there is a new release? >> >> May i make also a version of the 'Perfparse addon for Nagios' >> picture, 'Perfparse addon for ASNMTAP'? >> >> Now I compile with: >> >> ./configure --prefix=/opt/asnmtap/perfparse >> --with-imagedir=/opt/asnmtap/htmlroot/img/ >> --with-cgidir=/opt/asnmtap/htmlroot/cgi-bin >> --with-http_image_path=/asnmtap/img >> to compile perfparse. >> >> Is it possible to have one parameters: >> >> ./configure--enable-asnmtap >> >> but where for the nagios users because of the >> --enable-nagios (default) parameters nothings change!!! >> >> so that it automatically compiles with the next default parameters: >> >> --prefix=/opt/asnmtap/perfparse --with-imagedir=/opt/asnmtap/htmlroot/img/ >> --with-cgidir=/opt/asnmtap/htmlroot/cgi-bin >> --with-http_image_path=/asnmtap/img >> >> and where then in libpp_common.h >> >> #if ENABLE_ASNMTAP >> #define APPLICATION_TITLE (_("ASNMTAP")) >> #define HOST_TITLE (_("Plugin")) >> #define SERVICE_TITLE (_("Unique Key")) >> #define RAW_REPORT_TITLE (_("Raw ASNMTAP Plugin Report")) >> #define MARK_DELETION_TITLE (_("Mark Plugin for complete deletion.")) >> #define DELETION_POLICIES_TITLE (_("Deletion Policies for Plugins")) #endif >> >> #if ENABLE_NAGIOS >> #define APPLICATION_TITLE (_("Nagios")) >> #define HOST_TITLE (_("Host")) >> #define SERVICE_TITLE (_("Title")) >> #define RAW_REPORT_TITLE (_("Raw Nagios Host Report")) >> #define MARK_DELETION_TITLE (_("Mark Host for complete deletion.")) >> #define DELETION_POLICIES_TITLE (_("Deletion Policies for Hosts")) #endif >> >> and where then the 'Perfparse addon for ASNMTAP' pictures are copied >> during install instead of the 'Perfparse addon for Nagios' pictures >> >> -- Alex Peeters >> >> -----Original Message----- >> From: Ben Clewett [mailto:ben...@ww...] >> Sent: dinsdag 8 februari 2005 22:34 >> To: ale...@ci...; per...@li... >> Cc: ale...@sm... >> Subject: Re: Perfparse 2005 02 09, the one hase the correct patch >> >> Alex, >> >> This looks like an interesting piece of work. >> >> I think now we need to discuss with the other members where we take this. >> >> We can continue with this method but break the current translation. >> Or do something else. For this there are lots of other people who >> need to comment :) >> >> I very much want to use your system. Possibly you can let us know a >> little more about it? >> >> We have to work out the best way of making PerfParse generic to any data >> gathering system. If breaking the translation is the best way for >> the greater good, then so be it. Otherwise, we must be open to >> other non-destructive methods. >> >> It occurs to me that this may work well: >> >> #ifdef USE_NAGIOS >> _("Host"); >> #elsif USE_DARREN_KEMP_SYSTEM >> _("Plugin"); >> #endif >> >> Although some user may want to use both systems :) >> >> I am sorry I have only just thought if this way. >> >> But as I said, I think other members need to comment now. >> >> I have moved this discussion to per...@li... >> where this discussion is more appropriate. >> >> Ben. >> >> On Tue, 8 Feb 2005 19:43:51 +0100, Alex Peeters wrote >>> Hi Ben, >>> >>> I have attached a file with the patch and modified file into it. >>> >>> The patch have been created with: >>> >>> diff -u perfparse-0.105.5-asnmtap/libpp_common/ >>> perfparse-0.105.5/libpp_common/ > perfparse -patch-commom >>> >>> diff -u perfparse-0.105.5-asnmtap/cgi/ perfparse-0.105.5/cgi > perfparse >>> -patch-cgi >>> >>> -- Alex >>> >>> >>> >>> -- >>> No virus found in this outgoing message. >>> Checked by AVG Anti-Virus. >>> Version: 7.0.300 / Virus Database: 265.8.6 - Release Date: 7/02/2005 >> >> -- >> PerfParse Project (http://www.perfparse.org) >> >> -- >> No virus found in this incoming message. >> Checked by AVG Anti-Virus. >> Version: 7.0.300 / Virus Database: 265.8.6 - Release Date: 7/02/2005 >> >> >> -- >> No virus found in this outgoing message. >> Checked by AVG Anti-Virus. >> Version: 7.0.300 / Virus Database: 265.8.6 - Release Date: 7/02/2005 > > > > -- > PerfParse Project (http://www.perfparse.org) > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Perfparse-devel-int mailing list > Per...@li... > https://lists.sourceforge.net/lists/listinfo/perfparse-devel-int > |
From: Alex P. <ale...@ci...> - 2005-02-09 12:48:24
|
Hi Flo, A nagios clone? Just curious.=20 Nagios is a network and system monitoring tool, with plugins that check by example a tcp ip port to see if a service is running. The plugin execution time is normally less then 10 sec. Nagios is a reactive monitoring tool. what is the ASNMTAP tool? Is one application monitoring tool. The plugins are Nagios compatible and we don't test by example a tcp ip port to see if a service is = running, we test the correct working of it.=20 ASNMPTAP is a proactive monitoring tool. Example: email Nagios:=20 - telnet emailserver 25 hello ikke quit ASNMTAP: - send one email to one non existing mailbox, and check the return mail to verify that the mailbox don't exist. If the email don't arrive in a a specified time, then we give one alert to inform that there is a problem. Have a look at http://asnmtap.citap.be/ Whe a logon neede use: Username: perfparse Passwd: a1A Is your test account. Main url: http://asnmtap.citap.be/ Main asnmtap monitoring screen: http://asnmtap.citap.be/asnmtap/nav/index/ Test asnmtap monitoring screen: http://asnmtap.citap.be/asnmtap/nav/test/ Admin Section: http://asnmtap.citap.be/cgi-bin/admin/index.pl Server Admin Section: http://asnmtap.citap.be/cgi-bin/sadmin/index.pl -----Original Message----- From: Flo Gleixner [mailto:fl...@bi...]=20 Sent: woensdag 9 februari 2005 11:00 To: per...@li... Cc: ale...@ci... Subject: Re: [Perfparse-devel-int] RE: Perfparse 2005 02 09, the one = hase the correct patch Hi, what is the ASNMTAP tool? A nagios clone? Just curious. You talk about=20 performance problems with nagios. I had them too with snmp checks. But=20 since i use snmppd (snmp proxy daemon)=20 http://bubble.nsys.by/projects/snmppd/ all problems are gone. About translation things: I'm not familiar with gettext(), but is it good to translate single = words?=20 I think we always have to use complete sentences in translations.=20 Examples: english: Segmentation fault german word by word: Segmentierung Fehler german contextual: Speicherzugriffsfehler Sometimes verbs and nouns are not at the same place after translation, = and some languages are strange: Indonesian don't have time information in=20 verbs ("do", "did", "have done", "will do") but in additional words. = Sonds=20 like "do yesterday", "do tomorrow", "do soon", ... Flo On Wed, 9 Feb 2005, Ben Clewett wrote: > Alex, > > You have some good ideas and I can see you are keen to get going. > > You suggestion about flags in the configure sounds like the correct option. > > Before you do too much work, I am keen to have some feedback from = other users. > As I said, the current method you use will break translation and make > re-translation harder. > > Eg, to translate: "Show all Hosts below" is easy. > To translate three isolated strings: " below", "Hosts" & "Show all " = may > result in a bad translation. > > To break the current translations requires a very good reason, as this = is the > work of many people. :) > > If you can wait a short while for the opinion of other users, this = would be > adventagious. > > But your work is very important as you will force the development of PerfParse > into a more generic tool, which can be applied to more than just = Nagios data. > So your patch and other work in time, will be extremely useful and definitely > result in a better product. > > Regards, Ben. > > > > > On Tue, 8 Feb 2005 23:02:08 +0100, Alex Peeters wrote >> Hi, >> >> I like a non-destructive method. >> >> The example: >> #ifdef USE_NAGIOS >> _("Host"); >> #elsif USE_ASNMTAP >> _("Plugin"); >> #endif >> >> is al lot of work. >> >> The idea from Yves, by using constants definitions into = libpp_common.h >> >> #if ENABLE_ASNMTAP >> #define APPLICATION_TITLE (_("ASNMTAP")) >> #define HOST_TITLE (_("Plugin")) >> #define SERVICE_TITLE (_("Unique Key")) >> #define RAW_REPORT_TITLE (_("Raw ASNMTAP Plugin Report")) >> #define MARK_DELETION_TITLE (_("Mark Plugin for complete deletion.")) >> #define DELETION_POLICIES_TITLE (_("Deletion Policies for Plugins")) #endif >> >> #if ENABLE_NAGIOS >> #define APPLICATION_TITLE (_("Nagios")) >> #define HOST_TITLE (_("Host")) >> #define SERVICE_TITLE (_("Title")) >> #define RAW_REPORT_TITLE (_("Raw Nagios Host Report")) >> #define MARK_DELETION_TITLE (_("Mark Host for complete = deletion.")) >> #define DELETION_POLICIES_TITLE (_("Deletion Policies for Hosts")) >> #endif >> >> is less destructive. >> >>> I very much want to use your system. >>> Possibly you can let us know a little more about it? >> The data coming from the plugins is Nagios compatible. I use Nagios = for >> for monitoring system and network compontents. But from the moment a >> test takes more then 10 sec, Nagios can't be used anymore? >> >> ASNMTAP can run Nagios or ASNMTAP Nagios compatible plugins. >> >> These plugins that simulate a users for a whole application. >> >> That can be cactus, ftp servers (with up and downloading from files), >> setting up a ras connection to test it, testing a phone central, >> testing the sending and receiving from emails, receiving from xml = emails >> with the status from test done by other processes, to report >> problems, ... >> >>> Although some user may want to use both systems :) >> >> I also use both Nagios and ASNMTAP onto the same server. I dit >> compile it 2 times. One time normally, and one time with >> >> --prefix=3D/opt/asnmtap/perfparse --with-imagedir=3D/opt/asnmtap/htmlroot/img/ >> --with-cgidir=3D/opt/asnmtap/htmlroot/cgi-bin >> --with-http_image_path=3D/asnmtap/img >> >> Is it possible to have the final patch into your next release, >> so that I don't need to change every time there is a new release? >> >> May i make also a version of the 'Perfparse addon for Nagios' >> picture, 'Perfparse addon for ASNMTAP'? >> >> Now I compile with: >> >> ./configure --prefix=3D/opt/asnmtap/perfparse >> --with-imagedir=3D/opt/asnmtap/htmlroot/img/ >> --with-cgidir=3D/opt/asnmtap/htmlroot/cgi-bin >> --with-http_image_path=3D/asnmtap/img >> to compile perfparse. >> >> Is it possible to have one parameters: >> >> ./configure--enable-asnmtap >> >> but where for the nagios users because of the >> --enable-nagios (default) parameters nothings change!!! >> >> so that it automatically compiles with the next default parameters: >> >> --prefix=3D/opt/asnmtap/perfparse --with-imagedir=3D/opt/asnmtap/htmlroot/img/ >> --with-cgidir=3D/opt/asnmtap/htmlroot/cgi-bin >> --with-http_image_path=3D/asnmtap/img >> >> and where then in libpp_common.h >> >> #if ENABLE_ASNMTAP >> #define APPLICATION_TITLE (_("ASNMTAP")) >> #define HOST_TITLE (_("Plugin")) >> #define SERVICE_TITLE (_("Unique Key")) >> #define RAW_REPORT_TITLE (_("Raw ASNMTAP Plugin Report")) >> #define MARK_DELETION_TITLE (_("Mark Plugin for complete deletion.")) >> #define DELETION_POLICIES_TITLE (_("Deletion Policies for Plugins")) #endif >> >> #if ENABLE_NAGIOS >> #define APPLICATION_TITLE (_("Nagios")) >> #define HOST_TITLE (_("Host")) >> #define SERVICE_TITLE (_("Title")) >> #define RAW_REPORT_TITLE (_("Raw Nagios Host Report")) >> #define MARK_DELETION_TITLE (_("Mark Host for complete = deletion.")) >> #define DELETION_POLICIES_TITLE (_("Deletion Policies for Hosts")) #endif >> >> and where then the 'Perfparse addon for ASNMTAP' pictures are copied >> during install instead of the 'Perfparse addon for Nagios' pictures >> >> -- Alex Peeters >> >> -----Original Message----- >> From: Ben Clewett [mailto:ben...@ww...] >> Sent: dinsdag 8 februari 2005 22:34 >> To: ale...@ci...; per...@li... >> Cc: ale...@sm... >> Subject: Re: Perfparse 2005 02 09, the one hase the correct patch >> >> Alex, >> >> This looks like an interesting piece of work. >> >> I think now we need to discuss with the other members where we take = this. >> >> We can continue with this method but break the current translation. >> Or do something else. For this there are lots of other people who >> need to comment :) >> >> I very much want to use your system. Possibly you can let us know a >> little more about it? >> >> We have to work out the best way of making PerfParse generic to any = data >> gathering system. If breaking the translation is the best way for >> the greater good, then so be it. Otherwise, we must be open to >> other non-destructive methods. >> >> It occurs to me that this may work well: >> >> #ifdef USE_NAGIOS >> _("Host"); >> #elsif USE_DARREN_KEMP_SYSTEM >> _("Plugin"); >> #endif >> >> Although some user may want to use both systems :) >> >> I am sorry I have only just thought if this way. >> >> But as I said, I think other members need to comment now. >> >> I have moved this discussion to per...@li... >> where this discussion is more appropriate. >> >> Ben. >> >> On Tue, 8 Feb 2005 19:43:51 +0100, Alex Peeters wrote >>> Hi Ben, >>> >>> I have attached a file with the patch and modified file into it. >>> >>> The patch have been created with: >>> >>> diff -u perfparse-0.105.5-asnmtap/libpp_common/ >>> perfparse-0.105.5/libpp_common/ > perfparse -patch-commom >>> >>> diff -u perfparse-0.105.5-asnmtap/cgi/ perfparse-0.105.5/cgi > = perfparse >>> -patch-cgi >>> >>> -- Alex >>> >>> >>> >>> -- >>> No virus found in this outgoing message. >>> Checked by AVG Anti-Virus. >>> Version: 7.0.300 / Virus Database: 265.8.6 - Release Date: 7/02/2005 >> >> -- >> PerfParse Project (http://www.perfparse.org) >> >> -- >> No virus found in this incoming message. >> Checked by AVG Anti-Virus. >> Version: 7.0.300 / Virus Database: 265.8.6 - Release Date: 7/02/2005 >> >> >> -- >> No virus found in this outgoing message. >> Checked by AVG Anti-Virus. >> Version: 7.0.300 / Virus Database: 265.8.6 - Release Date: 7/02/2005 > > > > -- > PerfParse Project (http://www.perfparse.org) > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real = users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=3D6595&alloc_id=3D14396&op=3Dclick > _______________________________________________ > Perfparse-devel-int mailing list > Per...@li... > https://lists.sourceforge.net/lists/listinfo/perfparse-devel-int > --=20 No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.8.6 - Release Date: 7/02/2005 =20 --=20 No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.8.6 - Release Date: 7/02/2005 =20 |
From: Alex P. <ale...@ci...> - 2005-02-09 12:59:58
|
More info anout ASNMTAP The picture explain already a litle bit more, because the text is still in Dutch. http://asnmtap.citap.be/asnmtap/pdf/Asnmtab-databases.jpg http://asnmtap.citap.be/asnmtap/pdf/Asnmtap-server-diagram.jpg http://asnmtap.citap.be/asnmtap/pdf/Asnmtab-webinterface.jpg http://asnmtap.citap.be/asnmtap/pdf/Application Monitor Version 2.pdf http://asnmtap.citap.be/asnmtap/pdf/CheckDummy.pdf http://asnmtap.citap.be/asnmtap/pdf/asnmtap.pdf -- Alex -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.8.6 - Release Date: 7/02/2005 |
From: Yves <yme...@pe...> - 2005-02-09 10:56:12
|
Some ideas. Answer to Flo : of course single words should not be translated as _("segmentation")+_("fault"). But there are cases where you have to trans= late single words, like for the title of a column in a table : _("host"). But in that= case, it's the translation of a sentence that contains one word, so it's the same : tran= slate as much as possible in one string :) About destructive/non-destructive methods for translations : never be afr= aid of breaking a translation. The software is first designed to work, and then to work i= n foreign languages, and not the other way round. A recent example : sylpheed (a ni= ce mail client) was released as 1.0. This usually means stable and tested version, and yo= u don't expect for a newer version before a while. Few weeks after, 1.0.1 was released. = Changelog : many translations updated. Now, Alex's subject : this is NOT a translation problem. It is a keyword = problem. So you have to put #ifdef USE_NAGIOS and #ifdef USE_ASNMTAP everywhere. When it's only a keyword problem, here is what you can do : #if defined ENABLE_ASNMTAP #define APPLICATION_TITLE "ASNMTAP" #endif #elsif defined ENABLE_NAGIOS #define APPLICATION_TITLE "Nagios" #endif Then, in the application, you can use this : char*application =3D strdup(_(APPLICATION_TITLE)); Here you see that you define the keywords to use somewhere, and you enabl= e the translation system (as _(...) ) somewhere else. I wrote an incorrect example to make things clear about keywords and tran= slation. It's incorrect because if you write this, the i18n tools will not see that "AS= NMTAP" and "Nagios" are strings to translate. The correct example is : #if defined ENABLE_ASNMTAP #define APPLICATION_TITLE N_("ASNMTAP") #endif #elsif defined ENABLE_NAGIOS #define APPLICATION_TITLE N_("Nagios") #endif Then, in the application, you can use this : char*application =3D strdup(_(APPLICATION_TITLE)); N_(...) does nothing but tell the translation system that it contains a s= tring to translate. The translation occurs only when you use _(...). > Is it possible to have one parameters: > > ./configure--enable-asnmtap > > but where for the nagios users because of the > --enable-nagios (default) parameters nothings change!!! > > so that it automatically compiles with the next default parameters: > > --prefix=3D/opt/asnmtap/perfparse --with-imagedir=3D/opt/asnmtap/htmlro= ot/img/ > --with-cgidir=3D/opt/asnmtap/htmlroot/cgi-bin > --with-http_image_path=3D/asnmtap/img I suggest that you make a variable, not a #define constant. This way, you can enable/disable asnmtap at runtime, and have one binary = only. This creates a problem for the CGI because it should read one config file= for nagios behaviour and another file for asnmtap behaviour. I suggest that you use = an environment variable (no problem to use it for perfparsed and perfparse tools too) to= say where the config file is. There would be 3 ways to say where it is, and the priority would be 1/ check if -c is set and take the config file name from the command line 2/ if -c is not set, check if PERFPARSE_CONFIG_FILE is set and take the c= onfig file name from that environment variable 3/ otherwise, use the default built-in config file name. In all cases, if the config file does not exist, use the built-in default= values. With this, you can edit your httpd.conf file and add the environment var = : <directory /your/web/repository/nagios/cgi-bin> Options ExecCgi ... SetEnv PERFPARSE_CONFIG_FILE /perfparse/etc/perfparse.conf </directory> <directory /your/web/repository/asnmtap/cgi-bin> Options ExecCgi ... SetEnv PERFPARSE_CONFIG_FILE /perfparse/etc/asnmtap.conf </directory> Then, no need to hard-code the paths at ./configure time. Just have 2 dis= tinct configuration files :) Documentation : http://httpd.apache.org/docs-2.0/mod/mod_env.html man getenv Yves --=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/ - |