Performing simple Backups with Cfengine 3

Today I noticed that it might be useful to backup some folders on one of my VMs from time to time. At first I thought about creating a new cron job, but then I noticed that Cfengine 3 is running on that VM. So – why not letting Cfengine 3 do all the work? Writing […]... Read More

Taking a quick look at the configuration management system Puppet

As you might already know I am a huge fan of Cfengine (2/3). But I do realize that there are also other configuration management systems, such as Puppet or Chef and they might have their advantages over Cfengine 3. I have published a few Cfengine 3 snippets and am planning to re-write those snippets in […]... Read More

Cfengine 3.4.0 released

Today the Cfengine team from Oslo released version 3.4.0 of Cfengine (3). If you read my article in the German Linux Magazine issue 11/2012, you’d know that this version is really amazing 😛 The community edition of Cfengine 3.4.0 now contains POSIX ACL support for both Windows and Linux platforms. Furthermore the remote syslog support […]... Read More

Setting up Ntop automatically with Cfengine 3

Recently, I had to use Ntop to analyze the network traffic of one customer file server. Ntop shows the traffic per interface and there per protocol, source IP and offers many other ways of showing you what happens in your network. Ntop is great; however, I observed this tool taking many system resources since it […]... Read More

Setting file permissions and ownerships with Cfengine 3

One of the most common tasks of a Linux sysadmin (or DevOp) might be setting file permissions and ownerships. In this blog I’ll show you how you can do that in a very simple but effective way with Cfengine 3. Writing the Cfengine 3 code for setting file permissions and ownerships body common control { […]... Read More

Add a new user with Cfengine 3

In my last blog post about Cfengine 3 we talked about how Cfengine 3 can check for you if an user exists or not. Today we will have a look at a very simple way of how a new user can be created if it doesn’t already exist. Writing the Cfengine 3 code for creating […]... Read More

Check if an user exists with Cfengine 3

Often there is a need to add new users after deploying a new Linux box. In my case, I often have to add an user which takes care of the monitoring stuff (e.g. owning the Nagios plugins and executing them). The following little Cfengine 3 code snippet should help you to determine if a specific […]... Read More

Creating new symlinks with Cfengine 3

Sometimes it is necessary to create new symlinks. The following code snippet shows you how to do that with Cfengine 3. Please note that there are several ways of achieving our goal, but the following one should be the most efficient one when you only want to set one symlink. Writing the Cfengine 3 code […]... Read More

Official Cfengine 3 design center now contains’s Cfengine snippets

Good and awesome news: Diego Zamboni himself has approved my pull request on GitHub for’s Cfengine 3 code examples. They are now also available in the examples section at the official Cfengine design center: If you would like to download the samples from my site, you can do that here.... Read More

Monitoring the Apache web server with Cfengine 3

During the last weeks I received a lot of positive feedback on my blog posts and the Cfengine 3 code snippets so I started to post them on Twitter. Especially my little article about monitoring the CPU load with Cfengine 3 gained some attention there, that is why I am very motivated to dive in […]... Read More