This sounds like a scripting issue rather than a mail one now.

DATE=`date +%Y%m%d`
for SVR in server1 server2 serverx; do
for PLG in plugin1 plugin2 pluginz; do
wget -O $SVR_$PLG_$DATE.png \
  "http://collectd.example.com/...host=$SVR;plugin=$PLG";
/usr/bin/mime-construct ... /var/tmp/$SVR_$PLG_$DATE.png
done
done

(not tested!) should send one mail for each chart. If you want all the
images in one email you would have to put the mime-construct outside
the loops and add each .png with a separate file-attach clause.

And then automate it with crontab.

-- 
ubuntu-server mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam

Reply via email to