Showing posts with label Hobbit. Show all posts
Showing posts with label Hobbit. Show all posts

Tuesday, August 18, 2015

Hobbit System Montoring | Debian

Hobbit monitors your hosts, your network services, and anything else you configure it to do via extensions. Hobbit can periodically generate requests to network services - http, ftp, smtp and so on - and record if the service is responding as expected. You can also monitor local disk utilisation, logfiles and processes through the use of agents installed on the servers.
Before you install, make sure you have Apache web server installed.


apt-get install apache2

Configure /etc/apach2/sites-enabled/000-default

Example: Apache conf here.


Install hobbit packages

apt-get install hobbit hobbit-client hobbit-plugins


By default hobbit only allows connections from local host. Append the IP addresses you want to allow here in all three of the Allow from[...] lines like shown here

vi /etc/apache2/conf.d/hobbit

Allow from localhost ::1/128 192.168.0.5


In this case I have added the 192.168.0.5 but you should replace it to the one on your computer

Restart apache

/etc/init.d/apache2 restart


Now you can access the hobbit monitoring console on this location http://youservername/hobbit/ (Make sure you include the trailing slash)

Client Install

apt-get install hobbit-client hobbit-plugins

Server Configuration for Client Data

vi /etc/hobbit/bb-hosts

Example bb-hosts:


Note:  Be sure to use the fully qualified name of the server along with the IP Address.  If you do not, you will not get all or any of the information desired.

If desired, you may use the local configuration file to monitor more finitely.   This also requires adding "--local" setting to FILENAMEHERE.  I found that in Ver. 4.2.0 if you must copy the hobbitd_client file from the "hobbit-server".

Thursday, August 11, 2011

Hobbit/Xymon - Install on CentOS (coming soon)

A few notes for my future post...

After installing Xymon (Hobbit) on a CentOS system I found that the graphs didn't contain any text.  Very frustrating to say the least.  I did the following to temporarily solve my problem, but this might become permanent.

 Used the ldd tool to determine which rrdtool library was used

# ldd /usr/lib/xymon/server/bin/hobbitgraph.cgi
    linux-gate.so.1 =>  (0xffffe000)
    libpcre.so.0 => /lib/libpcre.so.0 (0xf7f5a000)
    librrd.so.2 => /usr/lib/librrd.so.2 (0xf7f10000)
    libpng12.so.0 => /usr/lib/libpng12.so.0 (0x004c4000)
    librt.so.1 => /lib/librt.so.1 (0x00b9d000)
    libc.so.6 => /lib/libc.so.6 (0x00a3b000)
    libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x003ac000)
    libz.so.1 => /usr/lib/libz.so.1 (0x0050a000)
    libart_lgpl_2.so.2 => /usr/lib/libart_lgpl_2.so.2 (0xf7ef8000)
    libm.so.6 => /lib/libm.so.6 (0x00bc3000)
    libpthread.so.0 => /lib/libpthread.so.0 (0x00ba8000)
    /lib/ld-linux.so.2 (0x00a1c000)


Then...I did a strings and grep to see what ttf file it references

# strings /usr/lib/librrd.so.2 |grep ttf
 @/usr/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf
"@/usr/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf
@/usr/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf
 @/usr/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf
 @/usr/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf

File did not exist nor the directory it was referencing...need to go back and determine why this is.

Created directory as referenced above.

Grep'd for the "DejaVuSnasMono-Roman.ttf" font and didn't find it on the system.  However I did find a very similar one named "DejaVuLGCSansMono.ttf and created a symbolic link to it for a test.

# ln -s /usr/share/fonts/dejavu-lgc/DejaVuLGCSansMono.ttf ./DejaVuSansMono-Roman.ttf

Presto.  Worked like a charm.