Cacti Weathermap - Post Yours

Jay_2

2[H]4U
Joined
Mar 20, 2006
Messages
3,583
I wish I could post my old one from my last job, it was huge, covering most continents

Sadly you can have my home map, its actually not complete, missing DNS servers, a few physical medaicenters, Sky + HD, IP CCTV and a lot of my temp readings from around my house. It shows the most important stuff though.

WM.png


I have alive version of this on my webserver but posting it here will just max out my bandwidth!
 
Not much, but here is one of my weathermaps from home.

YnWNg4n.png
 
Last edited:
Don't mind the blackouts, had to cover client names. Pretty basic. Only cool feature I have is I keep every map image (so every 5 minutes) for the last 24 hours, which once an hour is turned into a flash video. That shows the 24 hour cycle in about 90 seconds or so. Kind of helps visualize the busy times a little easier than just looking at the rrd graph.
WM.jpg
 
Only cool feature I have is I keep every map image (so every 5 minutes) for the last 24 hours, which once an hour is turned into a flash video. That shows the 24 hour cycle in about 90 seconds or so. Kind of helps visualize the busy times a little easier than just looking at the rrd graph.

I've always been interested in doing this with my weathermaps at home. Is it easy to do?
 
I set it up a while back, I think it was pretty straightforward. I'll post the script & basic steps later when I can get to that machine.
 
These look pretty good, just setup Cacti to try create one, made little progress so far haha
 
network only map here. shit gets ridiculous if you add in servers/vms/san/other devices.

NPDCvio.png
 
To make flash:
copy-frames.sh - crontab execute every 5 minutes - I do this 1 minute before the cacti poller is due to run next. copies the current image to an archive folder, deletes any over 24 hours old.
Code:
#!/bin/sh

SRC_MAP="/usr/local/groundwork/apache2/htdocs/cacti/plugins/weathermap/output/45a7386325075c591707.png"
HISTORY_DIR="/usr/local/groundwork/apache2/htdocs/cacti/plugins/weathermap/archive"

DATE=`date '+%y%m%d%H%M'`
cp $SRC_MAP $HISTORY_DIR/map_$DATE.png
find $HISTORY_DIR -name '*.png' -mtime +0 -type f -exec rm {} \;

every 15 minutes (not hourly, I guess I changed it), crontab runs this command
Code:
/usr/local/bin/png2swf -z -r 3 -o /usr/local/groundwork/apache2/htdocs/cacti/wxmap.swf /usr/local/groundwork/apache2/htdocs/cacti/plugins/weathermap/archive/*.png
which just scans the archive folder and rolls all the png's into flash..
obviously you'll need png2swf, free here:
http://www.swftools.org/

Then I just link directly to the .swf.
 
Don't mind the blackouts, had to cover client names. Pretty basic. Only cool feature I have is I keep every map image (so every 5 minutes) for the last 24 hours, which once an hour is turned into a flash video. That shows the 24 hour cycle in about 90 seconds or so. Kind of helps visualize the busy times a little easier than just looking at the rrd graph.
http://s88311880.onlinehome.us/pics/WM.jpg

What the heck are you feeding all over Iowa.. If you don't mind me asking.
 
I do monitoring for some clients, all small biz firms. That map is just keeping track of their internet usage.
 
To make flash:
copy-frames.sh - crontab execute every 5 minutes - I do this 1 minute before the cacti poller is due to run next. copies the current image to an archive folder, deletes any over 24 hours old.
Code:
#!/bin/sh

SRC_MAP="/usr/local/groundwork/apache2/htdocs/cacti/plugins/weathermap/output/45a7386325075c591707.png"
HISTORY_DIR="/usr/local/groundwork/apache2/htdocs/cacti/plugins/weathermap/archive"

DATE=`date '+%y%m%d%H%M'`
cp $SRC_MAP $HISTORY_DIR/map_$DATE.png
find $HISTORY_DIR -name '*.png' -mtime +0 -type f -exec rm {} \;

every 15 minutes (not hourly, I guess I changed it), crontab runs this command
Code:
/usr/local/bin/png2swf -z -r 3 -o /usr/local/groundwork/apache2/htdocs/cacti/wxmap.swf /usr/local/groundwork/apache2/htdocs/cacti/plugins/weathermap/archive/*.png
which just scans the archive folder and rolls all the png's into flash..
obviously you'll need png2swf, free here:
http://www.swftools.org/

Then I just link directly to the .swf.

Awesome! Thanks. I shall give this a try over the weekend.
 
Back
Top