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:
Post a Comment