Monitoring Blog

Release announcements, technical guides and monitoring insights from the ConSol team.

Posts in 2011
  • Validate Excel files in Citrus

    Wednesday, June 22, 2011 in Insights

    Lately I had to deal with Excel files as REST Http service response. I came up with a pretty clever validation mechanism in Citrus that I would like to share with you. You can apply the Excel validator to your Citrus project, too. It is not very complicated as you will see in this post. First of all lets have a closer look at the response message we get from REST Http service. HTTP/1.1 200 OK Content-Language: de-DE Content-Type: application/vnd.ms-excel;charset=windows-1252 Pragma: private Cache-Control: private, must-revalidate Content-Disposition: attachment; filename="ReportData.xls" Transfer-Encoding: chunked Server: Jetty(7.2.2.v20101205) -- binary content -- The response message states a Content-Type header set to “application/vnd.ms-excel” which indicates the Excel content to the …

    Read more

  • Use TestNG data provider with Citrus

    Friday, June 17, 2011 in Insights

    TestNG provides brilliant support for test parameters and data providers. With some annotation magic you are able to pass parameter values to your test method and finally to your Citrus test logic. Actually the TestNG parameters are injected to the Citrus test as normal test variables. Lets put this to the test with a simple example: public class DataProviderITest extends AbstractTestNGCitrusTest { @Parameters( { "message" } ) @Test(dataProvider = "citrusDataProvider") public void dataProviderITest(ITestContext testContext) { executeTest(testContext); } @Override protected Object[][] getParameterValues() { return new Object[][] { { "Hello World!" }, { "Hallo Welt!" }, { "Hallo Citrus!" }, }; } } We have to use the Citrus data provider (citrusDataProvider) along with a named parameter …

    Read more

  • Die Feature-Liste von check_oracle_health wächst weiter...

    Thursday, June 16, 2011 in Insights

    Seit heute gibt es die Version 1.6.9 von check_oracle_health. Hauptzweck ist die Beseitigung eines Problems, das auftaucht, wenn man das Plugin unter OMD einsetzt. Daneben ist aber auch die Liste der Modi erweitert worden, um noch mehr Fehlersituationen in großen Oracle-Installationen rechtzeitig erkennen zu können. Zunächst wurde ein Problem behoben, welches im kenntwas-Blog zu Recht angemeckert wurde. Bisher schrieb check_oracle_health temporäre Dateien (mit Informationen, die von Plugin-Aufruf zu Plugin-Aufruf weitergereicht werden müssen) ins Verzeichnis /var/tmp/check_oracle_health. In einer OMD-Umgebung mit ihren unterschiedlichen Sites und somit unterschiedlichen Benutzern kommt es hier natürlich zu Kollisionen bzw. Problemen mit Schreibrechten. In der neuen Version erkennt …

    Read more

  • Citrus 1.2.M2

    Monday, May 23, 2011 in Insights

    The next Citrus milestone release for version 1.2 has landed. This version introduces new REST Http support on client and server side. In particular we are now able to handle the Http request methods (GET, POST, PUT, DELETE, …) as well as Http response codes (e.g. 404 Not Found). Citrus 1.2.M2 now works with Spring 3.0, Spring Integration 2.0 and Spring WS 2.0. In addition to that we have some bugfixes and improvements in this release. Check out the reference documentation for the complete changes list on what’s new.

    Read more

  • Thruk Release 0.94

    Thursday, April 28, 2011 in Insights

    Straight on the road to the Thruk 1.0 this will probably the last feature release so far. The main focus was on usability and accessibility. This version will also be in the next OMD release. A lot of things have been done: New Cool Theme There is a new cool theme included dedicated to the people saying the classic gui is too ugly. I hope this theme is better. It’s set as default theme, but if you changed your theme, you will have to switch the theme in your preferences. Inline Pnp4nagios Graphing Inline pnp4nagios graphs when using a /pnp4nagios/ action_url. Config Tool Config tool to change most of the thruk config on the fly plus the possibility to change htpasswd based users and your cgi.cfg. Problems View added a new problems view which combines your host and service problems in a …

    Read more

  • ConSol Labs Forum

    Sunday, April 17, 2011 in Insights

    labs.consol.de hat nun ein Forum für Fragen rund um labs.consol.de und unsere Open Source Projekte. labs.consol.de now hosts a forum for discussions related to our open source projects. Now that labs.consol.de is only for nearly two years, a look at the statistics reveals that it has been well received as a special purpose site: About 20 Open Source projects are hosted, written by ConSol employees (mostly in their spare time) Roundabout 600 visits per day on labs.consol.de 74 blog posts, 25 pages and 1417 comments Thank you very much for the great interest ! But as always, there is room for improvements and especially the number of comments makes them rather hard to deal with. 483 comments on check_logfiles might be worth an entry in the Guiness Book of records, but there are not really …

    Read more

  • Jolokia and Jmx4Perl 0.90 released

    Monday, April 11, 2011 in Insights

    Hand in hand, Jolokia and Jmx4Perl started their countdown for their first major version, scheduled late this summer. While Jolokia got some minor enhancements, Jmx4Perl now finally got rid of any Java code, relying now completely on a Jolokia agent. The changes in detail: Jolokia Reworked policy lookup to allow lookup from any (loadable) URL for the servlet and for the possibility to consume am OSGi restrictor service in an OSGi environment. Error codes for search requests has been streamlined. Maps and Lists are supported to some degree for input parameters in write and exec requests. Reference manual updates. Update to jQuery 1.5.1 for the Javascript client library. JSON values have now the proper type (string, number, boolean) instead of being returned always as strings. Jmx4Perl Added …

    Read more

  • Jolokia 0.83 with Roo addon

    Monday, February 21, 2011 in Insights

    Jolokia 0.83 has been released which now contains a Roo addon. Version 0.83 contains the following features: The OSGi Jolokia agents have been revisited. The all-in-one bundle has now been switched to use the Felix HttpService implementation and requires only an import of OSGi LogService interface definition. Read more about the OSGi agents in the reference manual Virgo 2.1 has been added to the list of supported platforms and a dedicated Virgo detector has been added. A brand new Spring Roo addon for integrating Jolokia into a Roo managed web project. It will register a Jolokia agent servlet into the project’s web.xml. Details about this add-on can be found in the reference manual, too. In case you don’t know roo, in short, it is a rapid application development shell for Java …

    Read more

  • OMD 0.46 is there!

    Saturday, February 19, 2011 in Insights

    The developer team of OMD released the version 0.46 last week. Now you will not only be able to run Nagios out of the box. Shinken has been added as an alternative core. This enables you to create one set of configuration files and switch between two monitoring technologies with only a few commands. For those of you who haven’t heard of the Open Monitoring Distribution yet, it’s a Linux based collection of the most popular Plugins, AddOns and GUIs as well as Nagios and Shinken. It’s a monitoring starter kit in one rpm/deb package which even allows you to run multiple Nagios/Shinken installations in parallel. OMD is available for the major Linux brands (SLES, Debian, Ubuntu, RedHat/CentOS). Have a look at the website of OMD to learn how easy it is to get it installed and ready to run. OMD …

    Read more

  • Wenn der ESX-Server keine Icinga-VM annimmt...

    Friday, February 18, 2011 in Insights

    Wer sich die neueste Version von Icinga zum Ausprobieren herunterladen will, greift aus Bequemlichkeit sicher auf die virtuelle Maschine zurück, die bereits eine vorgefertigte, vollständige Installation enthält. Das dabei verwendete ova-Format kann allerdings nicht ohne weiteres in einer VMware-Umgebung verwendet werden. Zwar taucht auch ova in den von VMware unterstützten Virtualisierungsformaten auf, in diesem speziellen Fall trifft das jedoch nicht zu. Der VMware vCenter Converter zumindest weigert sich, die Icinga-Datei anzunehmen. Was man tun muss, um Icinga.ova in einen ESX-Server hochzuladen, wird hier beschrieben. Zuerst zerlegt man Icinga.ova in seine beiden Bestandteile, die virtuelle Disk Icinga-disk1.vmdk und die Beschreibungsdatei Icinga.ovf. Das funktioniert ganz einfach mit …

    Read more