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.



I have alive version of this on my webserver but posting it here will just max out my bandwidth!
 

JohnYYC

Weaksauce
Joined
Mar 9, 2011
Messages
71
Not much, but here is one of my weathermaps from home.

 
Last edited:

dave99

2[H]4U
Joined
Jan 20, 2011
Messages
2,129
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.
 

JohnYYC

Weaksauce
Joined
Mar 9, 2011
Messages
71
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?
 

dave99

2[H]4U
Joined
Jan 20, 2011
Messages
2,129
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.
 

nry

Limp Gawd
Joined
Jul 10, 2008
Messages
409
These look pretty good, just setup Cacti to try create one, made little progress so far haha
 

4saken

[H]F Junkie
Joined
Sep 14, 2004
Messages
11,182
network only map here. shit gets ridiculous if you add in servers/vms/san/other devices.

 

dave99

2[H]4U
Joined
Jan 20, 2011
Messages
2,129
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.
 

calvinj

[H]ard|Gawd
Joined
Mar 2, 2009
Messages
1,738
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.
 

dave99

2[H]4U
Joined
Jan 20, 2011
Messages
2,129
I do monitoring for some clients, all small biz firms. That map is just keeping track of their internet usage.
 

JohnYYC

Weaksauce
Joined
Mar 9, 2011
Messages
71
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.
 
Top