Oct 14

All major Linux Distributtionen nowadays bring packages for the Open Source monitoring tool Nagios with. However, Nagios has the merit of its expansion (and, of course, due to its low cost) has prevailed in many companies.

The integration of extensions (such as MK or nsca live status) is associated with some manual work. This is the programmers of these tools and also noticed they have simply joined together and share their knowledge and software in the Open Monitoring Distribution (OMD) together.

OMD (version 0.42) holds in its packets (for SLES 11, Debian 5.0, Ubuntu 10.04 and RedHat / CentOS 5.4 and 5.5) Nagios itself, plus these enhancements:

  • nagvis
  • pnp4nagios
  • rrdtool / rrdcached
  • nagios-plugins
  • Check_mk
  • MK Live Status
  • MultiSite
  • dokuwiki
  • nsca
  • check_nrpe

Another advantage of OMD is the tenancy. So you can run multiple independent environments Nagios on a server that can run on different OS users. An instance is created and starts with you:

  omd create foo
 omd start foo 

OMD is always installed below /opt/omd and is thus independent of the installation paths of different Linux distributions.
With the integration of different tools has been taken to improve the performance. It was deliberately left out the I / O-heavy NDO and instead set on MK Live Status, which directly accesses the Nagios data in main memory.

Those who prefer to be Nagios compiled by hand, you must not resign yet on the other benefits of OMD. Corresponding tar balls are in addition to the packages in the download area available.

gklinkmann written by \ \ tags: ,

Oct 12

When a design pattern has been proven in web development, then there is the Model-View-Controller pattern or just MVC. I have long been looking for a PHP framework that implements MVC consistently shoots but not the same as using a sledgehammer to crack a nut. Fleet Footed (or "New German" lightweight) object-oriented and it should be. PHP Fame Works such as Zend, CakePHP and Symphony are as likely to race cars. Although they set perfectly to MVC, object-oriented they are, but light-footed is different.

So I'm on CodeIgniter encountered, what is claimed by a "narrow base" (small footprint) to come along.

The installation is ever easy. The ZIP in "DocumentRoot" Unpacking the Web server, rename the directory and the full URL for the website in the configuration file system/application/config/config.php specify.

  'base_url' ] = "http://localhost/allMedia/" ; $ Config ['base_url'] = "http://localhost/allMedia/"; 

And you can already write his first one.

  Controller { extends Controller {class books
    ...  some logic ...

    / / Build view
    load -> view ( 'common/header' , $headerdata ) ; $ This -> load -> view ('common / header', $ header data);
    load -> view ( 'book/list' , $data ) ; $ This -> load -> view ('book / list', $ data);
    load -> view ( 'common/menu' , $menudata ) ; $ This -> load -> view ('common / menu', $ menudata);
    load -> view ( 'common/footer' ) ; $ This -> load -> view ('common / footer');
 } 

CodeIgniter is able to assemble parts of a view before shipping. Templates are supported but not required.

For me, this framework brings everything to what I need:

  • the MVC design pattern
  • consistent object-oriented
  • Performance
  • nice URL's
  • Helper classes (eg for paging)
  • good integration of doctrine as an OR Mapper
  • not to mention a good documentation

"The fire is kindled in me" and implemented a small project already with CodeIgniter. So if Zend and Co. are too complex, should take a look at CodeIgniter a little more closely. It's worth it.

gklinkmann written by \ \ tags: , ,

Oct 09

This year was my first time at the Open Source Monitoring Conference in Nuremberg. Focus of this conference is open source monitoring solutions for monitoring servers on network components to SERVICEN within the company. The program can be best described with the name of a lecture - "Pimp my supervision."

It was interesting to see how to use open source solutions, many companies such as Nagios and Icinga and the versatility of these tools. The higlights for me were the performances of the Nagios fork Icinga , the tool MK Live status and the fact-based multi-site .

The event was perfectly organized and I would like to thank all the organizers once again. The dates for next year related to the 09.11. / 11.10.2011 fixed already. I'm happy again.

gklinkmann written by \ \ tags: ,

July 01

For this short film takes you to say nothing more except, necessarily look at and understand the message. :-)

gklinkmann written by \ \ tags: ,

June 16

Sometimes you want to know is how long it has its own Java program. If one is satisfied with the indication of milliseconds, this is a couplet.

  new Date ( ) ; Date start = new Date ();
 / / Do something
 . println ( "Anzahl Millisekunden: " System.out.println ("Number of milliseconds"..
    System . currentTimeMillis ( ) - start. getTime ( ) ) ; + (. System current time millis () - start getTime ().); 

If you want to but at a slightly longer-term programs do not have to convert to hours and minutes, so it is somewhat difficult. What you get on the internet is not all for advice, making sure you do not reinvent the wheel. A look at the Apache Commons library helps here, as so often continue.

  ; org.apache.commons.lang.time.DurationFormatUtils import;
 ...
 new Date ( ) ; Date start = new Date ();
 / / Do something
 . println ( "Laufzeit: " System.out.println ("Term"..
    ( System . currentTimeMillis ( ) - start. getTime ( ) , "HH:mm:ss" ) ; . + DurationFormatUtils formatDuration (. System current time millis () - start getTime (), "hh: mm: ss."); 

gklinkmann written by \ \ tags: , ,