Just another WordPress.com site

Category Archives: Tutorials

How to automate Nagios

Currently, I’m working on a project to automate a huge monitoring environment which is running on Nagios. This environment is managed at the moment mostly by hand. This makes ist very hard to maintain. So I tried to move the environment gradually to a fully automated system. In this blog post, I will give you some insights on how.


  • Several Nagios Nodes. Each independent managed.
    • All changes have to be done manually
    • No revision and versions
    • We do not know who made what changes and why
    • Can not rest easy to a known state
  • All Nodes have MKLivestatus and Thruk for visualization
    • Manual editing of connection
    • Different config on each Node
    • Updating and patching was very hard
  • Several plugins and costume scripts. Every Node has a different state of this plugins
    • No defined state of a node
    • Not known state fo scripts and plugins


The main goal fo the project is to get an easy to maintain an environment where we know at every time, what the last working state of the environment is and get new version and patches rolled out on all nodes and systems in a defined and straightforward way. To achieve this goal, the config of all the Nodes were centralised and pushed to a git repository.  The deployment was done via a continuous integration process.


Set up eduroam with a Raspberry PI (Hochschule Heilbronn / Heilbronn University)

I used a Raspberry PI type B and an EDIMAX WLAN stick.

To Connect to the Eduroam Network follow this steps:

  • Download the certificate from here Eduraom 3 in 1 certifikate HS-Heilbronn. You can also look at the Instruction PDF or the Network Info Page (in German) at the Heilbronn University
  • Copy the Certificat to an location you can later reach from /etc/wpa_supplicant/wpa_supplicant.conf
  • Make sure you have installed the WPA-Supplicant Software on your Raspbrry PI. If not, you can use this command:
    sudo apt-get install wpasupplicant
  • Edit the /etc/network/interfaces to this values:
  • auto lo
    iface lo inet loopback
    iface eth0 inet dhcp
    auto wlan0
    allow-hotplug wlan0
    iface wlan0 inet manual
    wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
    iface default inet dhcp
  • Edit the values of /etc/wpa_supplicant/wpa_supplicant.conf to this values:
  • ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
    #eduroam settings
    password="your Password"
    ca_cert="full path to your 3-in-1.cer certificate"
  • restart your network with: sudo /etc/init.d/networking restart

Similar tutorial you can find here and here