no42

... it's better to have good questions

OpenNMS Horizon, Docker, Traefik and Let's Encrypt

2021-08-11 3 min read technology Ronny Trommer
I work from home for over 6 years now and especially when you like networking, want to get stuff up and running and breaking it - you start looking around :) You’ve heard about k8s, k{0,3}s or Microk8s but you don’t want to use it to run your private blog and you find yourself in a spot where the benefits running stuff in containers justify the pain - this article might be something for you :) Continue reading

Quick manual Kafka OpenNMS stack

We have gathered a few ready-to-run Docker stacks in our public stack-play GitHub repository. But sometimes you need Kafka, Zookeeper and OpenNMS quickly on a baremetal deployment without Docker. Here a few quick notes how to get the bare minimum up and running. Zookeeper Install OpenJDK 11 JRE sudo apt install -y openjdk-11-jre Create a user for zookeeper sudo adduser --system --home /opt/zookeeper --disabled-login zookeeper Create a logs directory sudo mkdir /var/log/zookeeper sudo chown zookeeper:nogroup /var/log/zookeeper -R Install zookeeper Continue reading

Setting up a VMware Test environment

2021-08-04 4 min read technology Ronny Trommer
To test functions like importing OVA files in VMware ESXi and with vCenter the trial phase and a local deployment can be used. You need the following requirements: VMware Workstation on Windows or VMware Fusion on Mac OSX VMware Hypervisor ISO image to install the ESXi host system VMware vCenter ISO image for local deployment If you just want to learn how it works you can get a 60 days trial license registering an account on VMware. Continue reading

VMware multipathd log spam

2021-04-07 3 min read technology Ronny Trommer
While I was deploying Loki with Promtail I’ve seen a lot of log spam from Ubuntu virtual machines in my VMware environment. As a note to myself and for some others who want cleaner system logs – here is what I’ve found to get rid of it. The log entries look like these here: 2021-04-07 20:14:21 opennms-bgp multipathd[693]: sda: failed to get sgio uid: No such file or directory 2021-04-07 20:14:21 opennms-bgp multipathd[693]: sda: failed to get sysfs uid: Invalid argument 2021-04-07 20:14:21 opennms-bgp multipathd[693]: sda: failed to get udev uid: Invalid argument 2021-04-07 20:14:21 opennms-bgp multipathd[693]: sda: add missing path The best article I’ve found was from SUSE describing the problems source. Continue reading

Installing Node Exporter on Linux

2021-03-11 2 min read technology Open-Source Ronny Trommer
In OpenNMS Horizon 28+ is now a PrometheusCollector available. It scrapes the metrics from the provided exporter pages and allows to add data collections. As of speaking today it is not 100% feature complete, scraping data types like histograms is not implemented yet. If you want to play around here is a quick way to get the Linux Node_Exporter installed. The following steps are executed in a root shell with sudo -i. Continue reading

Hardening SSH for audit

2021-02-19 2 min read technology Ronny Trommer
Running a server in the public requires some additional work. Especially if you want management access via SSH for Ansible or if you want break stuff manually with fiddeling around :) You can run an SSH audit of your public server using https://www.sshaudit.com. This section here is a very condensed way to get an A rating. Just use strong host key for authentication of the host # file: /etc/ssh/sshd_config HostKey /etc/ssh/ssh_host_ed25519_key HostKey /etc/ssh/ssh_host_rsa_key Delete existing keys and re-generate the RSA and ED25519 keys Continue reading

UCARP and High Availability

2020-02-07 2 min read technology Open-Source Ronny Trommer
If you have ever played with BSD you probably ran into CARP. It allows you to build a high available service which is provided by two physical servers behind a virtual shared IP address. The CARP nodes define a master and a backup system. A master serves the content and if the master crashes, the backup system takes over automatically the virtual IP (VIP) and the client won’t notice. Disclaimer: You should be aware this setup will not share load and increase your network throughput. Continue reading

Docker build and cache invalidation

2019-05-15 3 min read container technology Ronny Trommer
Right now I’m working with my work mates @opennms integrating the docker image building in our CI/CD environment. We build our container image based on CentOS and we noticed the caching doesn’t work for ${reasons}. Running a docker build -t myimage . ended up always in installing packages from the official yum repositories even we haven’t changed anything in the Dockerfile. To understand things better, I went back to drawing board and started with a simple example and rebuilding things step by step to understand when gets the docker build cache unnecessarily invalidated. Continue reading

Docker, Java, Signals and Pid 1

2019-02-20 9 min read container technology Ronny Trommer
Running a Java application in a container seems to be very easy. The devil is in the details and I want to shed some light on the PID 1 problem when you run Java applications in containers. In a general running applications in containers should not have any state so you just don’t care, but reality is different forces you to have to. Signals are used to a running process to behave in a certain ways. Continue reading

SSL and Java

2018-11-26 3 min read Tutorial technology Ronny Trommer
Running applications with a current Java is not a big deal thanks Let’s Encrypt. This article describes what happens if you want to authenticate your OpenNMS against LDAP using SSL with a self-certified certificate. First of all I assume you have confiured verything so you can authenticate against LDAP in plaintext and you got a role mapping as you wanted it. If not you can have a look here. So the naive approach would be, just changing the line in your activeDirectory. Continue reading
Older posts Newer posts