From: <wis...@ho...> - 2010-02-10 17:45:29
|
> From: bgmilne > On Tuesday, 9 February 2010 21:10:32 wis...@ho... wrote: >> Buchan; >> [...] >>> 2. Within the weathermap.conf, BB is defined > > There is no BB in weathermap.conf. If you mean in the weathermap script, if > the script is run by xymon (or, in a xymon shell environment, e.g. under > bbcmd), the environment variable from the xymon environment is used. So ... > this shouldn't matter. Did you actually have a problem here? Yes, you are right, it's BB in the script. I am running weathermap from within my hobbitlaunch, once per minute. I am noticing that some files are created as root ownership, otherwise no problem, just trying to understand this more. >> as the bb that lives in the >> ~xymon/client and not the ~xymon/server directory, was this an oversight? >> Does it matter? > > This could be run anywhere, my packages for xymon have the server require the > client, and no binaries are duplicated (which violates packaging standards), > so the best place to find bb is under the client directory ... Thanks, I've tried both, different size binaries, and they both produce the same results. >> 3. I've added weathermap to my hobbitlaunch.cfg as follows: >> >> [weathermap] >> ENVFILE $BBHOME/etc/hobbitserver.cfg >> CMD $BBHOME/ext/weathermap >> LOGFILE $BBSERVERLOGS/weathermap.log >> INTERVAL 1m >> >> Looks OK? By the way, I must have my CONFIG settings wrong in the weathermap script, I had to change the above to: CMD $BBHOME/ext/weathermap -c /FULL/PATH/TO-XYMON/etc/weathermap.conf The weathermap.png is not being created automatically in the correct place as a result and using $BBHOME/etc/weathermap.conf did not work :-( >> >> 4. What is ICONDIR? Is it the same as the weathermap/images directory? I >> have mine set as: >> >> $ICONDIR = "$ENV{'BBHOME'}/etc/weathermap"; > > Whereever you have the images referred to in your weathermap config files with > the ICON statements. Since the example weathermap.conf locations for the images were already prefixed with images, I've just pointed this at the www/weathermap directory. I will cleanup the .conf later and remove this, then repoint back to www/weathermap/images. Thanks! >> Yet, I have no such directory or file. Should I create one? > > Copy the images directory from the source tarball there? Yes, the name ICON had confused me a bit, got it working as above. On a side-note, I've noticed that my weathermap/index.html page when created, contains some extraneous characters, the top of the page contains: Content-type: text/html This is hidden by the java menu from Xymon. And I am seeing a "\n" in the left middle-left side of the HTML output, which I've tracked to this in the HTML source: <table border=0> <tr> <td><a href="weathermap.html"><img src="weathermap.png" width="100%" height="100%" border="0"></a></td> </table>\n<BR><BR> By the way, I am using Xymon 4.3.0-0.beta2 Regards again, .vadim |