|
From: Craig B. <cra...@ro...> - 2008-10-16 03:39:38
|
Hi Buchan,
This is great, I have it up and working but only if I run the script
manually, It won't run from hobbitlaunch.
I took your entries from weathermap.cfg and added to hobbitlaunch.cfg as
below but the hobbit environment variables don't seem to be passed to
the perl script so it fails to run.
[weathermap]
ENVFILE /home/hobbit/server/etc/hobbitserver.cfg
CMD $BBHOME/ext/weathermap.pl --image-uri=weathermap.png
LOGFILE $BBSERVERLOGS/bb-weathermap-wan.log
INTERVAL 1m
I then reread the install notes and noticed the following that I had
over looked the following, I assume this is why the environment
variables are not getting passed.
the weathermap.cfg file to a directory referenced by hobbitlaunch.cfg
(e.g. $BBHOME/etc/hobbitlaunch.d/)
Can you expand on the weathermap.cfg and hobbitlaunch.cfg configuration.
Thanks
Craig
-----Original Message-----
From: Buchan Milne [mailto:bg...@st...]
Sent: Friday, 10 October 2008 2:46 a.m.
To: dev...@li...
Subject: [Devmon] Initial weather map implementation
I have been hacking on the perl versions of weathermap that I found, and
have hacked one up that works with Hobbit and devmon (for now, only
devices using the if_load test).
The interface load and descriptions are taken from the if_load test
(retrieve from Hobbit via hobbitdlog), and the map is created using a
configuration file (mostly the same format as that used by the other
implementations).
The difference is that a lot less information needs to be included in
the weathermap configuration (the INFOURL, OVERLIBGRAPH, TARGET,
BANDWIDTH), as they are unnecessary for Devmon/Hobbit.
However, the node names need to match the hostname used in bb-hosts, and
the interfaces need to be specified with the INTERFACES tag.
E.g., this is sufficient to get two nodes and a link between them, with
popup graphs of the interface (on the arrows) and load (on the nodes).
NODE tau
LABEL TAU
POSITION 86 524
NODE upsilon
LABEL UPSILON
POSITION 421 524
LINK tau-upsilon
NODES tau upsilon
INTERFACES Gi1/1 Gi1/1
A tarball is available at: http://staff.telkomsa.net/~bgmilne/devmon-
weathermap-1.1.2.tar.gz for now.
I think sufficient instructions are available, but I would love to hear
what other people think ...
Regards,
Buchan
------------------------------------------------------------------------
-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge Build the coolest Linux based applications with Moblin SDK &
win great prizes Grand prize is a trip for two to an Open Source event
anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Devmon-support mailing list
Dev...@li...
https://lists.sourceforge.net/lists/listinfo/devmon-support
#####################################################################################
Disclaimer:
The information in this electronic mail message is confidential and may be legally privileged.
It is intended solely for the Addressee.Access to this internet electronic mail message by anyone else is unauthorised.
If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be
taken in reliance on it is prohibited and may be unlawful.
If you have received this message in error please notify us immediately.
Rodney District Council accepts no responsibility for any effects this email message or attachments has on the recipient
network or computer system.
#####################################################################################
|