№42

... it's better to have good questions

Conferences OUCE 2015 and 31c3

2014-12-27 1 min read OpenNMS Events Ronny Trommer

I spent some time with preparing the OUCE 2015 and we use the free an open-source software frab as conference management system. I do most of my server automation with Chef and my playground is running with Vagrant. For this reason I decided to spend some time an built a Vagrant / Chef environment and contributed it back to the frab project. This guys do a really good job and IMHO it is the best free conference management system you can get. If you want to play with it feel free and give it a try and contribute.

Continue reading

Open-source Experience

2014-11-22 3 min read Technology Open-Source Ronny Trommer

I spend a lot of time in the OpenNMS project and I love to work in free software and the workflows around it. We moved with our project from SourceForge to GitHub a few years ago and I think it was the right decision. There are now some established workflows in this ecosystem and they tear down borders between different open-source projects and here is an example of it.

I develop with IntelliJ IDEA and spend currently some time working in documentation of OpenNMS. We have migrated from Docbook XML format to AsciiDoc and started with the help of a few brave community volunteers a new documentation environment. I’ve found a plugin for IDEA which renders AsciiDoc and gave it a try to have a better workflow working on documentation and navigating through source code in just one program.

Continue reading

Investigate file descriptor issues

2014-11-07 2 min read Ronny Trommer

If you run a centralized monitoring system in large environment you can run in some issues regarding file descriptor limits. Linux gives you very detailed information in the kernel control and information center in /proc. The soft and hard limits have effect for file and network sockets, which can end up in a too many files open exception in OpenNMS.

The default values for soft and hard limits can be checked with

Continue reading

OpenNMS and Documentation

2014-07-15 3 min read OpenNMS Technology Ronny Trommer

To help the OpenNMS project I spent a year together with Alexander Finger and Klaus Thielking-Riechert writing an OpenNMS book. We started with a development version of for 1.8 and tried to find a mixture between consistent slow changing and new concepts in 1.8. It was kind a complicated thing and from my point of view not perfectly done. Nevertheless I’ve thought about something like: “It’s about time writing a second edition covering the topics in coming 1.14?” The problem I’ve with books, it doesn’t allow contribution and hasn’t a really long life cycle. So I’ve decided instead of spending a year again writing a book, I want something which is more helpful to the project itself.

Continue reading

DevOps Guy

2014-06-17 2 min read Technology Ronny Trommer

I started in 1998 in IT-Services and I did all the funny stuff – was involved building new networks for companies, migrated software from commercial vendors from version A to B to C to D and I have wasted too much lifetime on broken RAID 5s, backups and restores.

If you want to learn how to operate a computer network – this is a good place. You will always be called for the complicated problems nobody can solve with a simple Google search. You get also a good feeling, which solution is maintainable over a longer period of time. Fortunately people developing software experienced enough pain and started thinking about how to make code maintainable. Good developers realized years ago, people spend more time maintaining software than writing it. In my point of view an underestimated acceptance criteria in an “Agile” process ;) Since I spend more and more time in the OpenNMS project, I get much better an idea what the meaning about testing, documenting, Continuous Integration and Test Driven programming is. What people realize is a nameless magical connectivity between the guys who develop Things™ and the ones who bring them to production and the poor souls which have to keep it productive. In the late 90s there wasn’t a name for it. To make a good job Ops-Guys and the Dev-Guys have to work together – which wasn’t/isn’t a default behavior by nature.

Continue reading

OpenNMS Dev-Jam 2014

2014-06-04 1 min read Events OpenNMS Ronny Trommer

We are right in the middle of our 5th season of the year – DevJam. It is always a lot of fun spending one week with people from all over the world on the campus of the University of Minnesota. I’ve put on my personal agenda for this week, spending time with the folks working on the way how we want to document our project. I try also to gather the project ideas and where they contribute the code to the project. Currently i try to get some updates from the progress through the opennms.eu page. We have the following topics on the list:

Continue reading

OUCE 2014 Review

2014-04-22 2 min read OpenNMS Events Ronny Trommer

We have finished our 6th OpenNMS User Conference Europe. It was the first time we made a conference outside of Germany. We started with the first conference in 2009 when I worked at NETHINKS and begun with OpenNMS professional services. For the 3rd and 4th conference we decided to move the venue closer to the people organizing the conference and the IT center in Fulda was a really good place. In 2013 NETHINKS and the OpenNMS Foundation Europe worked together to move the organization of the conference to the community at the University of Applied Science in Fulda.

Continue reading

RRDtool graph improvement

2014-03-18 1 min read Ronny Trommer

If you have OpenNMS with RRDtool running, you can improve the whole rendering a little bit just by replacing the command.prefix in the following files:

  • snmp-graph.properties
  • snmp-adhoc-graph.properties
  • response-graph.properties
  • response-adhoc-graph.properties
command.prefix=/usr/bin/rrdtool graph - --imgformat PNG --font DEFAULT:7 --font TITLE:10 --start {startTime} --end {endTime} -E --width=1000 --height=180

I don’t like the stamp size graphs in OpenNMS, so I changed it for all. It could be problematic if you have grouped graph report (KSC report). So if you have trouble, you can just remove the –width and –height parameter. The command will also overwrite the width and height for all graphs, so they have all the same size. You have to be careful if you have KSC reports with multiple columns. If you have RRDtool running, you can improve the graphs with anti-aliasing using a few additional parameters:

Continue reading

OUCE 2013 Lab Setup

2013-03-15 3 min read Ronny Trommer

System

  • Ubuntu 12.10
  • Language: English
  • Keyboard Layout: English
  • Login: opennms
  • Pass: ouce2013

Admins toolbox

sudo -s
apt-get install openssh-server
apt-get install vim tcpdump git-core htop joe nmap iftop
apt-get install snmp snmpd snmp-mibs-downloader

Maven2 and Oracle Java 1.6

apt-get install maven2
wget http://files.opennms-edu.net/jdk-6u41-linux-x64.bin
chmod +x jdk-6u41-linux-x64.bin
./jdk-6u41-linux-x64.bin
mv jdk1.6.0_41 /opt
update-alternatives --install "/usr/bin/java" "java" "/opt/jdk1.6.0_41/bin/java" 1
update-alternatives --install "/usr/bin/javac" "javac" "/opt/jdk1.6.0_41/bin/javac" 1
update-alternatives --install "/usr/bin/javaws" "javaws" "/opt/jdk1.6.0_41/bin/javaws" 1
update-alternatives --install "/usr/bin/jar" "jar" "/opt/jdk1.6.0_41/bin/jar" 1
update-alternatives --install "/usr/lib/mozilla/plugins/mozilla-javaplugin.so" "mozilla-javaplugin.so" "/opt/jdk1.6.0_41/jre/lib/amd64/libnpjp2.so" 1
update-alternatives --config java

Some privacy and data leak stuff

apt-get remove unity-lens-shopping
System Settings -> Privacy Include Online Search results OFF / Record Activity OFF

Installing OpenNMS

update-alternatives --config java
vi /etc/apt/sources.list.d/opennms.list
deb http://debian.opennms.org stable main
deb-src http://debian.opennms.org stable main
wget -O - http://debian.opennms.org/OPENNMS-GPG-KEY | sudo apt-key add -
apt-get update
apt-get install opennms
echo "export JAVA_HOME=\"/opt/jdk1.6.0_41\"" >> /etc/profile
echo "export OPENNMS_HOME=\"/usr/share/opennms\"" >> /etc/profile
source /etc/profile
/usr/share/opennms/bin/runjava -s
vi /etc/postgresql/9.1/main/pg_hba.conf
file:/etc/postgresql/9.1/main/pg_hba.conf

host    all             all             127.0.0.1/32            trust
service postgresql restart
/usr/share/opennms/bin/install -dis
echo JAVA_HEAP_SIZE=768 >> /etc/opennms/opennms.conf
echo START_TIMEOUT=0 >> /etc/opennms/opennms.conf
service opennms start
apt-get install libwww-perl libxml-twig-perl

iReport installieren

cd ~
wget http://files.opennms-edu.net/iReport-3.7.6.tar.gz
tar xzf iReport-3.7.6.tar.gz
mv iReport-3.7.6 /opt
chown opennms:opennms /opt/iReport-3.7.6 -R
apt-get install --no-install-recommends gnome-panel
gnome-desktop-item-edit /usr/share/applications/ --create-new
Name: iReport 3.7.6
Binary: /opt/iReport-3.7.6/bin/ireport
Icon: gnome-power-statistics.png
Comment: Jasper Reports-Report Designer

Wallpaper

cd ~/Pictures
wget http://files.opennms-edu.net/wallpaper/free-software-ulf.jpg
cd /usr/share/backgrounds
wget http://files.opennms-edu.net/warty-final-ubuntu-ouce.png
sudo -i
xhost +SI:localuser:lightdm
su lightdm -s /bin/bash
gsettings set com.canonical.unity-greeter draw-user-backgrounds 'false'
gsettings set com.canonical.unity-greeter draw-grid 'false'
gsettings set com.canonical.unity-greeter background '/usr/share/backgrounds/warty-final-ubuntu-ouce.png'

RRD-Tool

sudo apt-get install rrdtool

Groovy

sudo -s
cd /root
wget http://files.opennms-edu.net/groovy-binary-2.1.1.zip
mv groovy-2.1.1 /opt
echo "export GROOVY_HOME=\"/opt/groovy-2.1.1\"" >> /etc/profile
source /etc/profile
ln -s /opt/groovy-2.1.1/bin/groovy /usr/local/bin/groovy
ln -s /opt/groovy-2.1.1/bin/groovyc /usr/local/bin/groovyc
ln -s /opt/groovy-2.1.1/bin/groovyConsole /usr/local/bin/groovyConsole
ln -s /opt/groovy-2.1.1/bin/groovysh /usr/local/bin/groovysh

Gradle

wget http://files.opennms-edu.net/gradle-1.4-all.zip
unzip gradle-1.4-all.zip
mv gradle-1.4 /opt
echo "export GRADLE_HOME=\"/opt/gradle-1.4\"" >> /etc/profile
ln -s /opt/gradle-1.4/bin/gradle /usr/local/bin/gradle

Workshop: Rule based event processing

cd ~
git clone http://www.github.com/m-schneider/ouce2013
cd ouce2013/groovy
. ./setenv.sh
cd ./non-gradle
./change-rules.sh

Output should look like:

Continue reading
Older posts Newer posts