From: Alex P. <ale...@ci...> - 2005-02-18 15:20:32
|
./configure --with-data-source=asnmtap ... checking for what data source... Nagios ... instead: ... checking for what data source... Asnmtap ... -- 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 |
From: Alex P. <ale...@ci...> - 2005-02-18 15:45:25
|
Here you can see that it works without the options: ./configure --with-data-source=asnmtap http://asnmtap.citap.be/cgi-bin/perfparse.cgi with: #define KEYWORD_APPLICATION N_("ASNMTAP") #define KEYWORD_HOST N_("Plugin") #define KEYWORD_SERVICE N_("Unique Key") hardcoded. Do I something wrong regarding ./configure --with-data-source=asnmtap The version with: #ifdef USE_SOURCE_NAGIOS #define KEYWORD_APPLICATION N_("Nagios") #define KEYWORD_HOST N_("Host") #define KEYWORD_SERVICE N_("Title") #elseif USE_SOURCE_ASNMTAP #define KEYWORD_APPLICATION N_("ASNMTAP") #define KEYWORD_HOST N_("Plugin") #define KEYWORD_SERVICE N_("Unique Key") #endif and #ifdef USE_SOURCE_NAGIOS printf(" %s%s", FONT,_("<b>Note:</b> Host and Host Data will be deleted when\n" " <font fact=\"Courier\">perfparse-db-purge</font> is next run.\n" " Please dissable performance data in Nagios for any hosts you wish to delete.\n" " Otherwise hosts will be regenerated on next import of data from that host.")); #elseif USE_SOURCE_ASNMTAP printf(" %s%s", FONT,_("<b>Note:</b> Plugin and Plugin Data will be deleted when\n" " <font fact=\"Courier\">perfparse-db-purge</font> is next run.\n" " Please dissable performance data in ASNMTAP for any Plugins you wish to delete.\n" " Otherwise plugins will be regenerated on next import of data from that plugin.")); #endif is ready for testing. -- Alex -- 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 |
From: Alex P. <ale...@ci...> - 2005-02-18 16:08:35
|
Extra info: The next compiles: #ifdef USE_SOURCE_NAGIOS /* #define KEYWORD_APPLICATION N_("Nagios") #define KEYWORD_HOST N_("Host") #define KEYWORD_SERVICE N_("Title") #elseif USE_SOURCE_ASNMTAP */ #define KEYWORD_APPLICATION N_("ASNMTAP") #define KEYWORD_HOST N_("Plugin") #define KEYWORD_SERVICE N_("Unique Key") #endif #ifdef USE_SOURCE_NAGIOS /* printf(" %s%s", FONT,_("<b>Note:</b> Host and Host Data will be deleted when\n" " <font fact=\"Courier\">perfparse-db-purge</font> is next run.\n" " Please dissable performance data in Nagios for any hosts you wish to delete.\n" " Otherwise hosts will be regenerated on next import of data from that host.")); #elseif USE_SOURCE_ASNMTAP */ printf(" %s%s", FONT,_("<b>Note:</b> Plugin and Plugin Data will be deleted when\n" " <font fact=\"Courier\">perfparse-db-purge</font> is next run.\n" " Please dissable performance data in ASNMTAP for any Plugins you wish to delete.\n" " Otherwise plugins will be regenerated on next import of data from that plugin.")); #endif This means that #ifdef USE_SOURCE_NAGIOS works but that the problem is with USE_SOURCE_ASNMTAP -- Alex -- 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 |
From: Yves <yme...@pe...> - 2005-02-18 17:52:00
|
Alex, there were a lot of mails (and a problem on my mailbox is that they= are duplicate...) Ben and I subscribe to per...@li... so you can answer= to only the list. Do you subscribe to perfparse-devel-int too ? So I'm not sure about what you found yourself and what is still a problem= . I just noticed this: #if defined USE_SOURCE_NAGIOS ... #elseif defined USE_SOURCE_ASNMTAP ... #endif It should work better than #ifdef :) Could you write a new mail with what is working, what is still not workin= g and what you would like us to give our opinion ? :) Yves (lost with so many mails :) > #ifdef USE_SOURCE_NAGIOS > /* > #define KEYWORD_APPLICATION N_("Nagios") > #define KEYWORD_HOST N_("Host") > #define KEYWORD_SERVICE N_("Title") > #elseif USE_SOURCE_ASNMTAP > */ > #define KEYWORD_APPLICATION N_("ASNMTAP") > #define KEYWORD_HOST N_("Plugin") > #define KEYWORD_SERVICE N_("Unique Key") > #endif > > > #ifdef USE_SOURCE_NAGIOS > /* > printf(" %s%s", FONT,_("<b>Note:</b> Host and Host Data > will be deleted when\n" > " <font fact=3D\"Courier\">perfparse-db-purge</font> is > next run.\n" > " Please dissable performance data in Nagios for any > hosts you wish to delete.\n" > " Otherwise hosts will be regenerated on next import of > data from that host.")); > #elseif USE_SOURCE_ASNMTAP > */ > printf(" %s%s", FONT,_("<b>Note:</b> Plugin and Plugin > Data will be deleted when\n" > " <font fact=3D\"Courier\">perfparse-db-purge</font> is > next run.\n" > " Please dissable performance data in ASNMTAP for any > Plugins you wish to delete.\n" > " Otherwise plugins will be regenerated on next import of > data from that plugin.")); > #endif > > > > This means that #ifdef USE_SOURCE_NAGIOS works but that the problem is = with > USE_SOURCE_ASNMTAP --=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-18 18:30:02
|
Hi Yves, I have progress: There is only one problem anymore: ./configure --with-data-source=asnmtap ... checking for what data source... Nagios ... instead: ... checking for what data source... ASNMTAP ... No error when: ./configure --with-data-source=bestaatNiet Data Source is: nagios|asnmtap Not displayed when: ./configure --with-data-source=asnmtap and config.h is wrong: config.h /* Data Source is ASNMTAP */ /* #undef USE_SOURCE_ASNMTAP */ /* Data Source is Nagios */ /* define USE_SOURCE_NAGIOS 1 */ into: Configuration options: Prefix: /opt/asnmtap/perfparse Perfparse: Selected DB tools: Selected CGI: Selected HTTP path for images: /asnmtap/img Installation path for images: /opt/asnmtap/htmlroot/img/ Installation path for CGIs: /opt/asnmtap/htmlroot/cgi-bin Using glib2.0: 2.2.3 Database support: mysql The next don't give any compilation errors anymore: #ifdef USE_SOURCE_NAGIOS #define KEYWORD_APPLICATION N_("Nagios") #define KEYWORD_HOST N_("Host") #define KEYWORD_SERVICE N_("Title") #elif defined USE_SOURCE_ASNMTAP #define KEYWORD_APPLICATION N_("ASNMTAP") #define KEYWORD_HOST N_("Plugin") #define KEYWORD_SERVICE N_("Unique Key") #endif #ifdef USE_SOURCE_NAGIOS showHeader(_("Deletion Policies for Hosts"), ""); #elif defined USE_SOURCE_ASNMTAP showHeader(_("Deletion Policies for Plugins"), ""); #endif The problem is that USE_SOURCE_ASNMTAP is not set by --with-data-source=nagios|asnmtap If I change config.h /* Data Source is ASNMTAP */ /* #undef USE_SOURCE_ASNMTAP */ /* Data Source is Nagios */ #define USE_SOURCE_NAGIOS 1 with /* Data Source is ASNMTAP */ /* #undef USE_SOURCE_ASNMTAP */ #define USE_SOURCE_ASNMTAP 1 /* Data Source is Nagios */ /* #define USE_SOURCE_NAGIOS 1 */ then it works for me, because if force everthing for asnmtap -- Alex -- 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 |
From: Alex P. <ale...@ci...> - 2005-02-18 17:51:31
|
I have progress: The next don't give any compilation errors anymore: #ifdef USE_SOURCE_NAGIOS #define KEYWORD_APPLICATION N_("Nagios") #define KEYWORD_HOST N_("Host") #define KEYWORD_SERVICE N_("Title") #elif defined USE_SOURCE_ASNMTAP #define KEYWORD_APPLICATION N_("ASNMTAP") #define KEYWORD_HOST N_("Plugin") #define KEYWORD_SERVICE N_("Unique Key") #endif #ifdef USE_SOURCE_NAGIOS showHeader(_("Deletion Policies for Hosts"), ""); #elif defined USE_SOURCE_ASNMTAP showHeader(_("Deletion Policies for Plugins"), ""); #endif The problem is that USE_SOURCE_ASNMTAP is not set by --with-data-source=nagios|asnmtap If I change config.h /* Data Source is ASNMTAP */ /* #undef USE_SOURCE_ASNMTAP */ /* Data Source is Nagios */ #define USE_SOURCE_NAGIOS 1 with /* Data Source is ASNMTAP */ /* #undef USE_SOURCE_ASNMTAP */ #define USE_SOURCE_ASNMTAP 1 /* Data Source is Nagios */ /* #define USE_SOURCE_NAGIOS 1 */ then it works for me, because if force everthing for asnmtap -- Alex -- 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 |