From: Buchan M. <bg...@st...> - 2008-10-09 13:46:02
|
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 |
From: Engineering <fo...@tr...> - 2008-10-09 20:33:11
|
I got it to load and it seems to function pretty good. I noticed that the node seems to link back to the trends column and when you are doing mouseovers it is an issue. Because there are so many graphs on the page it is unable to bring up a mouseover image. I do however like how easy it was to get the node and links done with overlibs. Normally it takes about 15-20 lines and this time it only took about 3-4. I didn't have to go hunting for the links for the overlib and the links for when you click on the overlib. So far I think it a good step in the right direction. I noticed the code you used was from http://netmon.grnet.gr/weathermap/ which hasn't been updated since February 20th, 2006. Didn't know if you were aware of one that is currently being kept up-to-date at http://www.network-weathermap.com/. I know that the first one is perl and the second one is done in php but the php version seems to have more options. Don't know if they would make it harder to port or not. Thanks, -Josh -----Original Message----- From: Buchan Milne [mailto:bg...@st...] Sent: Thursday, October 09, 2008 9:46 AM 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 |
From: Buchan M. <bg...@st...> - 2008-10-10 12:58:22
|
On Thursday 09 October 2008 22:05:10 Engineering wrote: > I got it to load and it seems to function pretty good. I noticed that the > node seems to link back to the trends column and when you are doing > mouseovers it is an issue. How so? On mouse over it should show the CPU graph. On clicking it takes you to the trends page. > Because there are so many graphs on the page it > is unable to bring up a mouseover image. I only get one graph on mouse over (as I had intended). I'll try and get either decent screenshots, or a demo up somewhere ... > I do however like how easy it was > to get the node and links done with overlibs. Normally it takes about > 15-20 lines and this time it only took about 3-4. I didn't have to go > hunting for the links for the overlib and the links for when you click on > the overlib. So far I think it a good step in the right direction. The next step is to make it easier to generate parts of the config (or, an editor), possibly using some CDP data (I have a cdp test which I am working on). > I > noticed the code you used was from http://netmon.grnet.gr/weathermap/ That's the code I started with on Wednesday morning. Yesterday morning I merged in some of the changes Howie made (available here: http://wotsit.thingy.com/haj/cacti-weathermap.html). > which > hasn't been updated since February 20th, 2006. Didn't know if you were > aware of one that is currently being kept up-to-date at > http://www.network-weathermap.com/. I know that the first one is perl and > the second one is done in php but the php version seems to have more > options. I will look at adding some of the options, but it won't be possible to have 100% compatibility (in the config). It may actually be possible to add features not available in the cacti plugin. The features I still need are: 1)Better arrow placement (VIA keyword in the network-weathermap.com one) 2)Icon support > Don't know if they would make it harder to port or not. I suspect support for the VIA keyword is about 10 minutes of work, and Icon support about 20 minutes ... let's see. Support for some of the DEFAULT settings might take bit longer. Regards, Buchan |
From: Buchan M. <bg...@st...> - 2008-10-10 16:01:22
Attachments:
weathermap.pl
|
On Friday 10 October 2008 10:58:44 Buchan Milne wrote: > On Thursday 09 October 2008 22:05:10 Engineering wrote: > > I > > noticed the code you used was from http://netmon.grnet.gr/weathermap/ > > That's the code I started with on Wednesday morning. Yesterday morning I > merged in some of the changes Howie made (available here: > http://wotsit.thingy.com/haj/cacti-weathermap.html). > > > which > > hasn't been updated since February 20th, 2006. Didn't know if you were > > aware of one that is currently being kept up-to-date at > > http://www.network-weathermap.com/. I know that the first one is perl > > and the second one is done in php but the php version seems to have more > > options. > > I will look at adding some of the options, but it won't be possible to have > 100% compatibility (in the config). It may actually be possible to add > features not available in the cacti plugin. > > The features I still need are: > 1)Better arrow placement (VIA keyword in the network-weathermap.com one) > 2)Icon support > > > Don't know if they would make it harder to port or not. > > I suspect support for the VIA keyword is about 10 minutes of work, and Icon > support about 20 minutes ... let's see. I was right mostly ... except that trying to get transparency right for both cases (png file for icon has transparency or not) and trying to get the label and the icon to both display nicely took more time. With this version, put your images in /etc/hobbit/images (or, specifically, the ICON tags should have a path relative to /etc/hobbit). Regards, Buchan |
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. ##################################################################################### |
From: Buchan M. <bg...@st...> - 2008-10-16 07:55:53
|
On Thursday 16 October 2008 05:39:21 Craig Boyce wrote: > 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. By manually, do you mean in a shell that was started by bbcmd (or some other means that ensures the ENV variables are available)? > 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. Hmm, that's almost impossible ... everything run by hobbitlaunch should get the environment variables. > [weathermap] > ENVFILE /home/hobbit/server/etc/hobbitserver.cfg Is this the right file? > 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. echo "directory $BBHOME/etc/hobbitlaunch.d/" >> $BBHOME/etc/hobbitlaunch.cfg But, it's effectively the same as cat'ing the file on to hobbitlaunch.cfg (but, using it makes it easier to ship extensions in packages, which is what I plan to do once I'm finished with major changes to this). I can't think of anything else that would be wrong, but I'll think about it some more. Regards, Buchan |
From: Craig B. <cra...@ro...> - 2008-11-06 21:51:45
|
Hi Buchan, I'm looking at creating a weathermap of our data centre and want to include information from our devmon polled temperature / humidity sensors. Is it possible to include another option or change the existing option so that you can specify the devmon test name and alias and retrieve a single value. Something along the lines of the following syntax and conf entries "TARGET $devmontest $devmonalias" NODE APC-EMS1 LABEL APC-EMS1 POSITION 200 200 TARGET env temperature Thanks Craig ##################################################################################### 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. ##################################################################################### |
From: Buchan M. <bg...@st...> - 2008-11-10 08:32:49
|
On Thursday 06 November 2008 23:31:33 Craig Boyce wrote: > Hi Buchan, > > I'm looking at creating a weathermap of our data centre and want to > include information from our devmon polled temperature / humidity > sensors. > > Is it possible to include another option or change the existing option > so that you can specify the devmon test name and alias and retrieve a > single value. > > Something along the lines of the following syntax and conf entries > > "TARGET $devmontest $devmonalias" > > NODE APC-EMS1 > LABEL APC-EMS1 > POSITION 200 200 > TARGET env temperature It really depends what you want the behaviour to be. I don't know if I want to write parsers for each devmon test ... but it would be relatively easy to allow different tests for the label colour (currently the colour of the 'cpu' test for the device), and which graph to show on mouse-over on the device (currently 'cpu', but anything that goes into a single string in the service= paramater to hobbitgraph.sh could work). Is this what you were thinking? Regards, Buchan |
From: Craig B. <cra...@ro...> - 2008-11-12 02:29:10
|
Hi Buchan, That would work for the graphing side, But I would also want to have the value pulled from Devmon displayed on the weathermap next to the label if possible. Thanks Craig -----Original Message----- From: Buchan Milne [mailto:bg...@st...] Sent: Monday, 10 November 2008 9:33 p.m. To: dev...@li... Cc: Craig Boyce Subject: Re: [Devmon] Weather Map feature request On Thursday 06 November 2008 23:31:33 Craig Boyce wrote: > Hi Buchan, > > I'm looking at creating a weathermap of our data centre and want to > include information from our devmon polled temperature / humidity > sensors. > > Is it possible to include another option or change the existing option > so that you can specify the devmon test name and alias and retrieve a > single value. > > Something along the lines of the following syntax and conf entries > > "TARGET $devmontest $devmonalias" > > NODE APC-EMS1 > LABEL APC-EMS1 > POSITION 200 200 > TARGET env temperature It really depends what you want the behaviour to be. I don't know if I want to write parsers for each devmon test ... but it would be relatively easy to allow different tests for the label colour (currently the colour of the 'cpu' test for the device), and which graph to show on mouse-over on the device (currently 'cpu', but anything that goes into a single string in the service= paramater to hobbitgraph.sh could work). Is this what you were thinking? Regards, Buchan ##################################################################################### 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. ##################################################################################### |
From: Marco A. <mar...@re...> - 2008-11-12 12:10:25
|
i also start to work to integrate Weather Map in hobbit, now only to create a general traffic map of my network M. ----- Original Message ----- From: "Craig Boyce" <cra...@ro...> To: <dev...@li...> Sent: Wednesday, November 12, 2008 3:28 AM Subject: Re: [Devmon] Weather Map feature request > Hi Buchan, > > That would work for the graphing side, But I would also want to have the > value pulled from Devmon displayed on the weathermap next to the label > if possible. > > Thanks > > Craig > > > -----Original Message----- > From: Buchan Milne [mailto:bg...@st...] > Sent: Monday, 10 November 2008 9:33 p.m. > To: dev...@li... > Cc: Craig Boyce > Subject: Re: [Devmon] Weather Map feature request > > On Thursday 06 November 2008 23:31:33 Craig Boyce wrote: >> Hi Buchan, >> >> I'm looking at creating a weathermap of our data centre and want to >> include information from our devmon polled temperature / humidity >> sensors. >> >> Is it possible to include another option or change the existing option > >> so that you can specify the devmon test name and alias and retrieve a >> single value. >> >> Something along the lines of the following syntax and conf entries >> >> "TARGET $devmontest $devmonalias" >> >> NODE APC-EMS1 >> LABEL APC-EMS1 >> POSITION 200 200 >> TARGET env temperature > > > It really depends what you want the behaviour to be. > > I don't know if I want to write parsers for each devmon test ... but it > would be relatively easy to allow different tests for the label colour > (currently the colour of the 'cpu' test for the device), and which graph > to show on mouse-over on the device (currently 'cpu', but anything that > goes into a single string in the service= paramater to hobbitgraph.sh > could work). > > Is this what you were thinking? > > Regards, > Buchan > > ##################################################################################### > > 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. > > ##################################################################################### > > ------------------------------------------------------------------------- > 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 |