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 |