I've been running the script as root until I could get the issue figured out, as I thought at first it was a permissions problem. I'm stumped, as the output to test.log shows no errors, nothing. While researching the issue I noticed a couple posts of people having problems with some perl scripts not running in cron with regards to full paths and such, but it sounds like others here have got the script to run just fine.

FYI, I'm running Mandrake 10.1 and the latest and greatest Perl/Cacti/etc. Thanks in advance for any help you can give.

I've started writing up the changes I made to weathermap-1.1.1, and a page showing how it can be set up with Cacti. The page is half-finished, but it does have a download for the modified version, and has the documentation for my changes.

Here it is if anyone wants to take a look. The last section is missing pieces in particular.

I'm actually playing with a PHP version of this program too, so that you wouldn't need to have perl/GD installed, and hopefully that can read from rrd files directly. So far the config-file is read OK, and it draws the map. No data-reading yet, but I'm still going This is the largest PHP project I've written from scratch, so it's slow sometimes. I'll post something if I get it all going enough to be useful. The theory is that it'd have the same dependencies as Cacti, so if you have gotten that running, this should just drop in - maybe even read Cacti's database to find links.

Just one problem : on the generated html page, the link to the image is absolute :<IMG SRC="/data/web/html/meteo/noc.png" WIDTH="1200" HEIGHT="800".......

Need to be<IMG SRC="noc.png" WIDTH="1200" HEIGHT="800".....

Ooops. Hehe. If you cd to the script directory first, then it's OK

I'll take a look, but it's a bit complex - it means that the weathermap script needs to know what the URL of the HTML page is, and the relative position of the image, since you can get . Maybe it should have an --output-dir option and dump both files in there instead?

I believe I am doing what you are after... Got mine working just today, actually... I basically define the icon I want to overlay on my map inside my .conf file, and it is dynamically overlayed (in place of the node label)each time the map is redrawn. In my map, I have a mixture of routers and telco providers that I overlay as nodes.

I also changed it to make a time-stamped copy of the map in a seperate folder (planning on animating them each night once I find an .mpg creator I like), so strip out that part of the code if you don't want that. (or make a valid path in the config section for $ANIM_OUTPUT if you want to keep it)

Then in your .conf file (mine's named satdelutil.conf in this case), add a line to each of your nodes to define the icon you want to overlay on your map.

Code:

<snip>

NODE MCI POSITION 700 391 LABEL MCI ICON mci_small.png

NODE Sprint POSITION 775 391 LABEL SPR ICON sprint_small.png

NODE CollegeStation POSITION 423 398 LABEL CLL ICON Router_ok.png

NODE Raleigh POSITION 677 295 LABEL RAL ICON Router_ok.png

In my case, I just threw in some small .png files called "sprint_small.png", "router_ok.png", and "mci_small.png" into the same directory as my .conf file. Each of my icons are about 35x35 pixels. I did them in Visio, and finished them up (shrank them and saved for web) in Photoshop. They will overlay in place of the node name label from the original weathermap code.

My next plan is to have an ok, warning, and alert version of each of the icons and have them displayed (a bright red router for example). After THAT, I want to take it beyond circuit utilization and have it be for pretty much anything... Say a Visio diagram of a rack of computers and a script that checks the RRD's for anything from fan speed to disk space, and overlays a red server icon instead of the all's well icon when something is amiss. I'm currently thinking this is it easiest way for me to get thresholds into Cacti data with my limited programming ability......

I also added an option to specify the URI for the image on the command-line, so that the IMG tag has a sensible SRC in it, and a WIDTH option per link to let you vary the width of the link arrows, which should help with clutter, and differentiating 'major' from 'minor' links on the same map.

I just find your discussion about Network Weather map and RRDTool. I just created a new version of Weathermap from Panagiotis one. It is called Weathermap4rrd. You can find it at : http://weathermap4rrd.tropicalex.net

Your last modifications seems intersting. I will check them and if you agree I will add them to my version with your name of course.

I also added an option to specify the URI for the image on the command-line, so that the IMG tag has a sensible SRC in it, and a WIDTH option per link to let you vary the width of the link arrows, which should help with clutter, and differentiating 'major' from 'minor' links on the same map.

Who is online

Users browsing this forum: No registered users and 0 guests

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum