Running PRTG Traffic Grapher on a Linux computer

 Originally published on September 25, 2006 by Dirk Paessler
Last updated on January 23, 2024 • 7 minute read

A new segment in the sphere of operating systems seems to build up. Somewhere between the paid-for Windows operating systems and the open-source Linux systems a new kind of offerings comes up: They are cheap or free, they are easy to install and to use (windows lookalikes) and.... They run Windows applications. One sample is Linux XP Desktop (free download, $40) which is built on Red-Hat Linux and offers a GUI that appeals to users that are familiar with Windows. And it is able to run many Windows applications out-of-the-box. Another sample is ReactOS, which is in an early alpha stage currently. Yes, it's true: Even PRTG Traffic Grapher can be run on this Linux system. The secret ingredient is called Wine.

"Wine is an Open Source implementation of the Windows API on top of X and Unix. Think of Wine as a compatibility layer for running Windows programs. Wine does not require Microsoft Windows, as it is a completely free alternative implementation of the Windows API consisting of 100% non-Microsoft code, however Wine can optionally use native Windows DLLs if they are available." I am really impressed by how far the Wine developers have come in their work to port the Windows API to Linux systems. PRTG is not at all an easy task to run on a Linux box since we had to put in a lot of system calls in order to get all the features we want to have for our product. All these system calls must be processed by the Windows emulator. For the coming months it will be interesting to see how these products and the Wine project will evolve. Microsoft won't like it, but there are some usage scenarios in the near future where it will be sufficient to use a Wine based operating system to run Windows apps and one can save the money for the Windows license.

PRTG On Linux: Hands On

If you want to try running PRTG on Linux yourself, here is what you need:

Note: You should use exactly the Mozilla installer above, because the "official" MozillaControl1712.exe installer has a problem in that the control is compiled with MSVC6 but some MSVC .Net DLLs were packaged instead of the MSVC6 one. This makes it unusable out of the box. The download link above was tested to run fine.

Installation

  • Step 1: Copy the installers of PRTG and Mozilla onto the Linux box
  • Step 2: Run the Mozilla installer
  • Step 3: Run the Tahoma font installer
  • Step 4: On the Linux system run "winecfg" and set the default for the emulated Windows version to "Windows 98"
  • Step 5: Run PRTG installer
  • Step 6: Run PRTG Traffic Grapher from the desktop link

Voila, PRTG runs on Linux! prtg_on_linux.jpg (Click the thumbnail to zoom in)

Known Problems

A number of issues is still unsolved yet:

  • PRTG can not be run as a service under Wine yet
  • The internal web server of PRTG only works on 127.0.0.1
  • The internal web browser of PRTG does not work
  • The window minimize/maximize icons are not there
  • Sometimes PRTG seems to crash upon exiting the program using "File|Exit", use ALT+F4 instead

One tip for Wine: If you happen to have a crashed window of a Windows EXE that blocks everything else, run the command "wineserver -k" to kill the Windows emulation process and with it all Windows apps.