Saturday, April 19, 2008

You've got to be thinking that I'm milking this topic to get more posts out there. You'd only be partially right -- there's a lot going on in this thing, so I'm trying to keep it in manageable pieces... This will be the last (and easiest) of the sections.

You've already seen how we go from sar (cpu and memory) data on a bunch of machines to graphs in pictures of that data. Now I just have to show you how that updates a website with the current data.

The last chunk of the collector.sh script looks like this:

for k in webservera webserverb
do
/usr/bin/tar cf - images |/usr/bin/ssh $k 'cd /data/websites/solarisreporting/production/root;/usr/bin/tar xf -;chmod 664 images/*'
done



Translation: gather up all the new images, and push them (securely) to the images directory of the two web servers hosting the reporting site.

No comments:

counter free hit invisible