Xymon (hobbit) installation tutorial

Posted on 02. Oct, 2007 by forouzani in Server Monitoring, Software Installation

Before installing Xymon, we need to make sure its dependancies are installed – this includes PCRE, RRDTool and fping.

Installing PCRE

Installing the Perl Compatible Regular Expression library is quite simple:

# yum install pcre pcre-devel

You may also need to create a soft link from /usr/include/pcre/pcre.h to /usr/include/pcre.h

# ln -s /usr/include/pcre.h /usr/include/pcre/pcre.h

Installing RRDTool

RRDTool itself also has dependancies, in order to install RRDTool on RHEL / CentOS Linux 64 bit version you need to install these development tools and libraries (make sure you are logged in as root before continuing).

# yum install cairo-devel libxml2-devel pango-devel pango libpng-devel freetype freetype-devel libart_lgpl-devel

Wait until the installation of the dependancies of RRDTool ends, you will know its finished when you see output similar to:

Installed: libart_lgpl-devel.x86_64 0:2.3.17-4 libart_lgpl-devel.i386 0:2.3.17-4 pango-devel.i386 0:1.14.9-3.el5 pango-devel.x86_64 0:1.14.9-3.el5
Dependency Installed: cairo-devel.x86_64 0:1.2.4-5.el5 cairo-devel.i386 0:1.2.4-5.el5 fontconfig-devel.i386 0:2.4.1-7.el5 freetype-devel.x86_64 0:2.2.1-20.el5_2 freetype-devel.i386 0:2.2.1-20.el5_2 libX11-devel.i386 0:1.0.3-9.el5 libXau-devel.i386 0:1.0.1-3.1 libXdmcp-devel.i386 0:1.0.1-2.1 libXext-devel.i386 0:1.0.1-2.1 libXft-devel.i386 0:2.1.10-1.1 libXrender-devel.i386 0:0.9.1-3.1 libart_lgpl.i386 0:2.3.17-4 libpng-devel.i386 2:1.2.10-7.1.el5_0.1 libpng-devel.x86_64 2:1.2.10-7.1.el5_0.1 mesa-libGL-devel.i386 0:6.5.1-7.5.el5 xorg-x11-proto-devel.i386 0:7.1-9.fc6
Complete!

Now you need to download and install the latest version of RRDTool:

# cd /usr/local/src/
# wget http://oss.oetiker.ch/rrdtool/pub/rrdtool.tar.gz
# tar -xzf rrdtool.tar.gz
# cd rrdtool-1.3.7
# export PKG_CONFIG_PATH=/usr/lib/pkgconfig/
# ./configure
# make
# make install

Installing fping

To install fping…
# wget http://fping.sourceforge.net/download/fping.tar.gz
# tar -xzf fping.tar.gz
# cd fping-2.4b2_to
# ./configure
# make
# make install

Installing Xymon

Now that the dependancies have been installed we can install Xymon itself. Before doing that, we are going to create a xymon user on the system.

# useradd xymon

Download and install xymon:

# wget http://kent.dl.sourceforge.net/sourceforge/hobbitmon/xymon-4.2.3.tar.gz
# tar -xzf xymon-4.2.3.tar.gz
# cd xymon-4.2.3
# ./configure

At this stage you will be asked a number of configuration questions, to setup xymon as you require. After the configuration is complete, all you need to do to finish installing xymon is:

# make
# make install

Thats it. Xymon should now be installed – you will want to turn it on:

# /home/xymon/server/bin/hobbit.sh start

Then you can go the hobbit webpage to check the status of various services – http://localhost/xymon/

Launch xymon at boot

Once running, you will want to automatically lanch the xymon client/server every time the server restarts:

# cp -p /usr/local/src/xymon-4.2.3/rpm/hobbit-init.d /etc/rc.d/init.d/xymon
# chown root:root /etc/rc.d/init.d/xymon
# chmod 755 /etc/rc.d/init.d/xymon
# chkconfig xymon on

Tags: , , ,

  • m

    If you get an error similar to the following….

    * I found a copy of pkgconfig, but there is no pangocairo.pc file around. You may want to set the PKG_CONFIG_PATH variable to point to its location.
    ----------------------------------------------------------------------------
    configure: WARNING:
    ----------------------------------------------------------------------------
    * I could not find a working copy of pangocairo. Check config.log for hints on why this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately so that compiler and the linker can find libpango-1.0 and its header files. If you have not installed pangocairo, you can get it either from its original home on

    http://ftp.gnome.org/pub/GNOME/sources/pango/1.17

    You can find also find an archive copy on

    http://oss.oetiker.ch/rrdtool/pub/libs

    The last tested version of pangocairo is 1.17.

    LIBS=-lm
    LDFLAGS=
    CPPFLAGS=

    Try setting PKG_CONFIG_PATH to include the correct path to pangocairo. For a cpanel server I had to:

    export PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/local/lib/pkgconfig:/usr/local/cpanel/3rdparty/lib/pkgconfig
    ./configure

  • m

    If you get an error such as:

    Your intltool is too old. You need intltool 0.35.0 or later.

    Usually its just an issue with intltool not being installed on your server (or not be found). To install intltool just do:

    # yum install intltool

  • enzo

    Forbidden

    You don’t have permission to access /xymon/ on this server

    what can i do?

    • forouzani

      This is probably a permission setting in your webserver – check your httpd.conf settings to make sure you can access the path correctly (and the webserver has the correct permissions to access the path).