[hobbit] Cisco interface descriptions

Robert Holden robertholden at gmail.com
Thu Apr 26 23:33:33 CEST 2007


Are you using mrtg on top of hobbit for monitor the interfaces?  If so, then
you do something like this:

In hobbitgraph.cfg, under the mrtg section put:
          TITLE exec:/usr/local/hobbit/server/bin/mrtg-title.sh  (or
whatever path works for you)

Then in mrtg-title.sh do something like this:
#!/bin/sh
HOSTNAME="$1"; shift
GTYPE="$1"; shift
LEGEND="$1"; shift
RRD="$1"; shift
MRTGSET="`echo $RRD | sed -e's/\.rrd$//'`"
MRTGTITLE=`grep -i "Title\[$MRTGSET\]:"
/usr/local/mrtg/cfg/devices/$HOSTNAME.cfg | cut -d: -f2-`
echo "$MRTGTITLE $LEGEND"
exit 0

You may have to modify it a little if you don't have seperate mrtg config
files for each device.

Robert

On 4/24/07, Brown, Seymour <Seymour.Brown at wjmc.org> wrote:
>
>  Greetings, all.
>
> We had been using Big Brother until our server hardware died a few months
> back, and we decided to upgrade to Hobbit. We monitor over 100 servers and about
> 90 network devices with it.
>
> Is there any way to get Cisco interface descriptions to show up on the
> graphs in the Trend column? We managed to get the interface name to
> appear, but we'd really like more control over how things are labeled. i.e
> . we'd like the interface name AND its description to appear. Where they
> appear on the graph is not that important.
>
> Thanks,
>
> =Seymour=
>
> Seymour J. Brown
>
> Network Analyst
>
> West Jefferson Medical Center
>
> 1101 Medical Center Blvd.
>
> Marrero, LA 70072
>
> 504-349-2396
>
>
>
>
> This message contains confidential information and is intended only for
> the individual named. If you are not the named addressee you should not
> disseminate, distribute or copy this e-mail. Please notify the sender
> immediately by e-mail if you have received this e-mail by mistake and delete
> this e-mail from your system. E-mail transmission cannot be guaranteed to be
> secure or error-free as information could be intercepted, corrupted, lost,
> destroyed, arrive late or incomplete, or contain viruses. The sender
> therefore does not accept liability for any errors or omissions in the
> contents of this message, which arise as a result of e-mail transmission. If
> verification is required please request a hard-copy version. West Jefferson
> Medical Center, 1101 Medical Center Blvd., Marrero, USA, www.wjmc.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20070426/fe93c400/attachment.html>


More information about the Xymon mailing list