From: Ben C. <bcl...@pe...> - 2005-02-15 17:30:13
|
Alex, Sorry been a while, lot to do here. New release out. I have fixed the deletion problem. Very much the same as old version. If it works there is a new configuration flag: --with-data-source=nagios|asnmtap Data Source (default=nagios) This allow you to use this code: #ifdef USE_SOURCE_NAGIOS _("Host") #elseif USE_SOURCE_ASNMTAP _("Plugin") #endif Looking at comments from users mentioning that it would be better for translation to keep with entire sentence. I wonder whether you may be able to replace entire sentence containing the word 'host' with your own wording? Hopefully leaving the existing existing wording as is, so that current translation work is still valid? I am sorry that this may mean repeating some work you have completed before. I hope that this will produce a far better quality product when completed. I look forward to seeing it, Regards, Ben. Alex Peeters wrote: > Hi Ben, > > I dit marked one host for permanently deletion into the host deletion > policy. > > I dit run first the mysql-delete script > > Then again the mysql-create script > > The asnmtap added some data > > I dit run the /opt/asnmtap/perfparse/bin/perfparse-db-purge script. > > >>Can I please ask you to send all support questions to the mailing list >>per...@li...? > > Oke, > > I do have one account at nagios-exchange.org, but there I can't add > problems. > > > -----Original Message----- > From: Ben Clewett [mailto:bcl...@pe...] > Sent: maandag 7 februari 2005 10:05 > To: ale...@ci... > Cc: bcl...@pe...; gc...@pe...; > per...@li... > Subject: Re: Perfparse error for version 0.105.5 > > Hi Alex, > > Can I please ask you to send all support questions to the mailing list > per...@li...? > > You are likely to get better support as well as maybe helping other > users with same problem :) > > May I ask what you were doing at the time of this failure? I believe > you may have been deleting a host which was permanently marked as deleted? > > If this is the case you have found a hole in the system. New tables > have been added which are not included in the deletion function. The > database is trying to protect your data from bad programmes :) > > Regards, Ben. > > PS, (TODO: Edit the purge code to delete data from summary tables.) > > > Alex Peeters wrote: > >>Hi, >> >> >> >> >> >>/opt/asnmtap/perfparse/bin/perfparse-db-purge >> >> >> >>root@chablis [/opt/asnmtap/plugins]# >>/opt/asnmtap/perfparse/bin/perfparse-db-purge >> >>An error occured with the SQL: >> >> >> >> "DELETE perfdata_service FROM perfdata_service,perfdata_host WHERE >>perfdata_service.host_name = perfdata_host.host_name AND >>perfdata_host.is_deleted = 1" >> >> >> >>Failure Message: >> >> >> >> "Cannot delete or update a parent row: a foreign key constraint fails" >> >> >> >> >> >>-- 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 >> >> >>-- >>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-15 17:59:02
|
Ben, Where do I find the source code from your latest version. -- Alex -----Original Message----- From: Ben Clewett [mailto:bcl...@pe...]=20 Sent: dinsdag 15 februari 2005 18:28 To: ale...@ci...; per...@li... Subject: Re: [Perfparse-users] RE: Perfparse error for version 0.105.5 Alex, Sorry been a while, lot to do here. New release out. I have fixed the deletion problem. Very much the same as old version. If it works there is a new=20 configuration flag: --with-data-source=3Dnagios|asnmtap Data Source (default=3Dnagios) This allow you to use this code: #ifdef USE_SOURCE_NAGIOS _("Host") #elseif USE_SOURCE_ASNMTAP _("Plugin") #endif Looking at comments from users mentioning that it would be better for=20 translation to keep with entire sentence. I wonder whether you may be=20 able to replace entire sentence containing the word 'host' with your own = wording? Hopefully leaving the existing existing wording as is, so that = current translation work is still valid? I am sorry that this may mean repeating some work you have completed=20 before. I hope that this will produce a far better quality product when = completed. I look forward to seeing it, Regards, Ben. Alex Peeters wrote: > Hi Ben, >=20 > I dit marked one host for permanently deletion into the host deletion > policy. >=20 > I dit run first the mysql-delete script >=20 > Then again the mysql-create script >=20 > The asnmtap added some data >=20 > I dit run the /opt/asnmtap/perfparse/bin/perfparse-db-purge script. >=20 >=20 >>Can I please ask you to send all support questions to the mailing list = >>per...@li...? >=20 > Oke, >=20 > I do have one account at nagios-exchange.org, but there I can't add > problems. >=20 > -----Original Message----- > From: Ben Clewett [mailto:bcl...@pe...]=20 > Sent: maandag 7 februari 2005 10:05 > To: ale...@ci... > Cc: bcl...@pe...; gc...@pe...; > per...@li... > Subject: Re: Perfparse error for version 0.105.5 >=20 > Hi Alex, >=20 > Can I please ask you to send all support questions to the mailing list = > per...@li...? >=20 > You are likely to get better support as well as maybe helping other=20 > users with same problem :) >=20 > May I ask what you were doing at the time of this failure? I believe=20 > you may have been deleting a host which was permanently marked as = deleted? >=20 > If this is the case you have found a hole in the system. New tables=20 > have been added which are not included in the deletion function. The=20 > database is trying to protect your data from bad programmes :) >=20 > Regards, Ben. >=20 > PS, (TODO: Edit the purge code to delete data from summary tables.) >=20 >=20 > Alex Peeters wrote: >=20 >>Hi, >> >>/opt/asnmtap/perfparse/bin/perfparse-db-purge >> >>root@chablis [/opt/asnmtap/plugins]# =20 >>/opt/asnmtap/perfparse/bin/perfparse-db-purge >> >>An error occured with the SQL: >> >> "DELETE perfdata_service FROM perfdata_service,perfdata_host WHERE=20 >>perfdata_service.host_name =3D perfdata_host.host_name AND=20 >>perfdata_host.is_deleted =3D 1" >> >>Failure Message: >> >> "Cannot delete or update a parent row: a foreign key constraint = fails" >> >>-- Alex =20 --=20 No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.8.8 - Release Date: 14/02/2005 =20 |
From: Yves <yme...@pe...> - 2005-02-16 09:45:51
|
> --with-data-source=3Dnagios|asnmtap Data Source (default=3Dnagios) > > This allow you to use this code: > > #ifdef USE_SOURCE_NAGIOS > _("Host") > #elseif USE_SOURCE_ASNMTAP > _("Plugin") > #endif Again, in the #ifdef, use keywords, not translations. #ifdef USE_SOURCE_NAGIOS #define KEYWORD N_("Host") #elseif USE_SOURCE_ASNMTAP #define KEYWORD N_("Plugin") #endif /* ... */ printf("%s\n", _(KEYWORD)); Or : #ifdef USE_SOURCE_NAGIOS printf("%s\n", _("Host")); #elseif USE_SOURCE_ASNMTAP printf("%s\n", _("Plugin")); #endif If there is a translation file specific to asnmtap, there is a problem. I just wanted to make things clear. Sorry if this is redundant :) 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/ - |
From: Alex P. <ale...@ci...> - 2005-02-16 15:53:41
|
Yves, I will do it like in this example. If I use the next methode: #ifdef USE_SOURCE_NAGIOS #define KEYWORD N_("Host") #elseif USE_SOURCE_ASNMTAP #define KEYWORD N_("Plugin") #endif /* ... */ printf("%s\n", _(KEYWORD)); it is almost the same then the work I already did do. But when you prefere: #ifdef USE_SOURCE_NAGIOS printf("%s\n", _("Host")); #elseif USE_SOURCE_ASNMTAP printf("%s\n", _("Plugin")); #endif Let me now. Tommorow and the following days, I have time to do it. -- Alex -----Original Message----- From: Yves [mailto:yme...@pe...]=20 Sent: woensdag 16 februari 2005 10:46 To: Ben Clewett Cc: ale...@ci...; per...@li... Subject: Re: [Perfparse-devel-int] Re: [Perfparse-users] RE: Perfparse = error for version 0.105.5 > --with-data-source=3Dnagios|asnmtap Data Source (default=3Dnagios) > > This allow you to use this code: > > #ifdef USE_SOURCE_NAGIOS > _("Host") > #elseif USE_SOURCE_ASNMTAP > _("Plugin") > #endif Again, in the #ifdef, use keywords, not translations. #ifdef USE_SOURCE_NAGIOS #define KEYWORD N_("Host") #elseif USE_SOURCE_ASNMTAP #define KEYWORD N_("Plugin") #endif /* ... */ printf("%s\n", _(KEYWORD)); Or : #ifdef USE_SOURCE_NAGIOS printf("%s\n", _("Host")); #elseif USE_SOURCE_ASNMTAP printf("%s\n", _("Plugin")); #endif If there is a translation file specific to asnmtap, there is a problem. I just wanted to make things clear. Sorry if this is redundant :) 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/ - --=20 No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.8.8 - Release Date: 14/02/2005 =20 --=20 No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.8.8 - Release Date: 14/02/2005 =20 |
From: Yves <yme...@pe...> - 2005-02-16 16:00:29
|
Alex, do what you prefer. It only depends on if you want to use #define o= r not. Yves > #ifdef USE_SOURCE_NAGIOS > #define KEYWORD N_("Host") > #elseif USE_SOURCE_ASNMTAP > #define KEYWORD N_("Plugin") > #endif > > /* ... */ > printf("%s\n", _(KEYWORD)); ------------------------------ > #ifdef USE_SOURCE_NAGIOS > printf("%s\n", _("Host")); > #elseif USE_SOURCE_ASNMTAP > printf("%s\n", _("Plugin")); > #endif --=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/ - |