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.