Problem with "TITLE exec:" in hobbitgraph.cfg
list wally.nl
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
Attachments (1)
list Lukas Kohl
Hello,
I am facing the exact same Problem with the TITLE exec: Parameter.
Server and Clients are running RHEL 6.4 with Xymon 4.3.7.
I am astonished, because the crappy Titles appear as soon as I set TITLE
exec: even, when the script doesn't exist, or when I don't set a Script at
all.
I tried a Perl and a Bash Script, both without success.
Kind regards,
Lukas
www.ergodirekt.de
www.facebook.com/ergodirekt
www.twitter.com/ergodirekt
ERGO Direkt Lebensversicherung AG · Sitz: Fürth
Amtsgericht Fürth HRB 2787 · UST-ID-Nr. DE159593454
ERGO Direkt Versicherung AG · Sitz: Fürth
Amtsgericht Fürth HRB 2934 · UST-ID-Nr. DE159593438
ERGO Direkt Krankenversicherung AG · Sitz: Fürth
Amtsgericht Fürth HRB 4694 · UST-ID-Nr. DE159593446
Vorsitzender der Aufsichtsräte: Dr. Daniel von Borries
Vorstände: Peter M. Endres (Vorsitzender),
Ralf Hartmann, Dr. Jörg Stoffels
Adresse: Karl-Martell-Straße 60 · 90344 Nürnberg · Deutschland
attachment.png