by acls us

Building RealOpInsight 2.4.0b2 on Mountain Lion (OSX 10.8)

RealOpInsight is an Advanced Open Source Business Service Management Dashboard Toolkit for Nagios, Zabbix, Icinga, Shinken, Centreon, op5 and other popular open source monitoring software.

On the RealOpInsight web site you will find downloads and installation binaries for a number of environments. However, there is no standard install for OSX. In this article I'll show you how to install this on OSX 10.8 Mountain Lion. There was a high degree of trial and error used in constructing this guide.



First of all, software levels.

I have built and installed RealOpsInsight using the following;


RealOPsInsight version;

2.4.0b2 - 16 August 2013 (Some modification will be required to source files and the installation script)


Target Monitoring Server;

Zabbix 1.8.3 (1.8.4 is a better minimum level to use!)


Host Console Operating System

OSX 10.8.4 Mountain Lion with Xcode Version 4.6.3 (4H1503)


Dependancies to be installed on OSX;

MacPorts 2.2.0 (for OSX 10.8 Mountain Lion)

gcc version 4.7.3 (MacPorts gcc47 4.7.3_2)

Graphviz 2.28.0

ZeroMQ 3.2.3

Qt 4.8.5 (with packages Headers & Libraries)



Installation/Build Procedure

I'm assuming you aready have Mountain Lion and Xcode installed. They are both the latest versions, check that all your updates to OSX and Xcode are installed via "System Preferences - Software Update". Also, check that the latest Xcode "Command Line Tools" are installed in Xcode from "Preferences - Downloads - Components".

Install MacPorts which is reguired to download gcc 4.7 (this in turn is required to enable compiler support for "-std=c++0x").

Download from 
Execute the downloaded file "MacPorts-2.2.0-10.8-MountainLion.pkg"
sudo port install gcc47
sudo port select gcc mp-gcc47
hash gcc

Install Graphviz 2.28.0

Download from
Execute the downloaded file "graphviz-2.28.0.pkg"

Build / Install ZeroMQ 3.2.3

Download from
Extract from archive
cd zero-3.2.3
./configure --prefix=/usr 
sudo make install

Install Qt 4.8.5

Download from
Install with defaults
Also install - Headers & Libraries
sudo vi /usr/local/Qt4.8/mkspecs/common/g++-macx.conf
 remove "-Xarch_x86_64" from QMAKE_CFLAGS_X86_64

Install RealOpsInsight 2.4.0b2 16 August 2013 (Some modifications are required!)

Download from
Extract archive
cd into the archive folder
Edit "install-sh"
Locate the lines containing "lscpu", comment them out using a # at the start of the line (there are 3)
On the lines following these add -spec macx-g++ after ${QMAKE} (there are 3)
On the lines following these change -Bj${ncpu} to -B or remove -j${ncpu}
Edit include/client/Base.hpp and add #include <libgen.h> to the list of #include directives
Edit src/client/utilsClient.cpp and change the function utils::getAbsolutePath() as below
QString utils::getAbsolutePath(const QString& _path)
  QFileInfo fileInfo(_path);
  return fileInfo.absoluteFilePath();
Edit src/client/GreaphView.cpp in the function GraphView::load() change -
int exitCode = dotParser->execute("dot", arguments);
int exitCode = dotParser->execute("/usr/local/bin/dot", arguments);
The following changes are ONLY required if you are using Zabbix prior to 1.8.4
Edit src/client/ZbxHelper.cpp in the function ZbxHelper::requestsPatterns()
in patterns[Login] change
\"method\": \"user.login\", \
\"method\": \"user.authenticate\", \
and in patterns[TriggerV18]
\"filter\": { \"host\":[\"%2\"}], \
\"filter\": { \"host\":\"%2\"}, \
Time to install with;
sudo ./install-sh
This will install the three apps into the current folder.
Zip file containing changed files Here.

I hope this is useful. If you have any questions, please e-mail me at This email address is being protected from spambots. You need JavaScript enabled to view it.