Problem with "TITLE exec:" in hobbitgraph.cfg

wally.nl hobbit at general-failure.com
Tue Mar 31 11:46:52 CEST 2009


I'm having trouble getting "TITLE exec:" working (currently running xymon
4.2.3 on debian lenny). The hobbitgraph.cfg snippet:

[mrtg]
    ..
    TITLE exec:/usr/local/hobbit/bin/lun-title.sh
    ..
    ..

the file /usr/local/hobbit/bin/lun-title.sh:

-rwxr-xr-x 1 hobbit hobbit    395 2009-03-30 11:46 lun-title.sh

------------<cut>------------
#!/bin/sh

HOSTNAME="$1"; shift
GTYPE="$1"; shift
LEGEND="$1"; shift
RRD="$1"; shift

echo "RRD=$RRD, rest is $*" >>/tmp/title.log

MRTGSET="`echo $RRD | sed -e's/\.rrd$//'`"
echo "MRTGSET=$MRTGSET" >>/tmp/title.log

# MRTGTITLE=`grep -i "Title\[$MRTGSET\]:" /etc/lun-title.cfg | cut -d: -f2-`
MRTGTITLE="IOPS per lun"
echo "TITLE=$MRTGTITLE" >>/tmp/title.log

echo "$MRTGTITLE $LEGEND"
exit 0
------------<cut>------------

So the title should (at the moment) always be "IOPS per lun" but I've got
the feeling that the script isn't even executed since it isn't logging to
the /tmp/title.log file. I can't find anything wrong in /var/log/xymon/*
files.

The graph itself works fine but the title is random 'crap' with every
refresh (see attached example).

Any help would be appreciated
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lun12iops.png
Type: image/png
Size: 20551 bytes
Desc: not available
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20090331/e0bd5528/attachment.png>


More information about the Xymon mailing list