Re: [Bacula-users] summarizing messages into a single mail
Hello, 2014-11-10 16:00 GMT+01:00 Florian florian.spl...@web.de: Hello, everyone. I was wondering, if there is a way to avoid receiving one email for each completed bacula job and instead receive a single mail with all messages. Also, if this is possible, would you recommend it or should I instead try something like Web-Bacula to do some reporting? I am currently receiving mails for 6 jobs per day. Rising to 8 soon. I have about hundred from only one system :) so 8 is not a big deal. :) -- Radosław Korzeniewski rados...@korzeniewski.net -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] summarizing messages into a single mail
Hello, Thanks everyone for the various suggestions. I should have more than enough options to choose from now. =) Regards, Florian S. -- Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://pubads.g.doubleclick.net/gampad/clk?id=154624111iu=/4140/ostg.clktrk ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] summarizing messages into a single mail
Hello, everyone. I was wondering, if there is a way to avoid receiving one email for each completed bacula job and instead receive a single mail with all messages. Also, if this is possible, would you recommend it or should I instead try something like Web-Bacula to do some reporting? I am currently receiving mails for 6 jobs per day. Rising to 8 soon. Regards, Florian S. -- ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] summarizing messages into a single mail
On Nov 10, 2014, at 10:00 AM, Florian florian.spl...@web.de wrote: Hello, everyone. I was wondering, if there is a way to avoid receiving one email for each completed bacula job and instead receive a single mail with all messages. Also, if this is possible, would you recommend it or should I instead try something like Web-Bacula to do some reporting? I am currently receiving mails for 6 jobs per day. Rising to 8 soon. Only 6? ;) What I do is use mail filtering to move all successful jobs to a folder. All other jobs reach my inbox. If you are concerned with knowing ‘did all my jobs run today’, consider a Nagios (or similar) check. — Dan Langille signature.asc Description: Message signed with OpenPGP using GPGMail -- ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] summarizing messages into a single mail
There are a number of scripts available which can be run via cron to give you stats on your backup jobs. Check your Bacula source directory/examples/reports In here I found report.pl from Jonas Björkland which I modified to give me specific information I was looking for, but it's an excellent starting point for a summary notifier. -John On Mon, Nov 10, 2014 at 10:00 AM, Florian florian.spl...@web.de wrote: Hello, everyone. I was wondering, if there is a way to avoid receiving one email for each completed bacula job and instead receive a single mail with all messages. Also, if this is possible, would you recommend it or should I instead try something like Web-Bacula to do some reporting? I am currently receiving mails for 6 jobs per day. Rising to 8 soon. Regards, Florian S. -- ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- --- John M. Lockard | U of Michigan - School of Information Unix Sys Admin | 105 South State St. | 4325 North Quad jlock...@umich.edu |Ann Arbor, MI 48109-1285 www.umich.edu/~jlockard http://www.umich.edu/%7Ejlockard | 734-936-7255 | 734-764-2475 FAX --- - The University of Michigan will never ask you for your password - -- ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] summarizing messages into a single mail
Aw, heck. Might as well attach what I've been using. Again, it's modified from what you'll find in the examples/reports directory. Usage amounts will be different from what is reported by Bacula on the console or on-system logs as Bacula reports 1000=1K and my report uses 1024=1K (easily modified in the script). I'm sure what I've done could probably be done more cleanly/efficiently/correctly... you're free to make those changes as you wish. -John On Mon, Nov 10, 2014 at 10:35 AM, John Lockard jlock...@umich.edu wrote: There are a number of scripts available which can be run via cron to give you stats on your backup jobs. Check your Bacula source directory/examples/reports In here I found report.pl from Jonas Björkland which I modified to give me specific information I was looking for, but it's an excellent starting point for a summary notifier. -John On Mon, Nov 10, 2014 at 10:00 AM, Florian florian.spl...@web.de wrote: Hello, everyone. I was wondering, if there is a way to avoid receiving one email for each completed bacula job and instead receive a single mail with all messages. Also, if this is possible, would you recommend it or should I instead try something like Web-Bacula to do some reporting? I am currently receiving mails for 6 jobs per day. Rising to 8 soon. Regards, Florian S. -- ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- --- John M. Lockard | U of Michigan - School of Information Unix Sys Admin | 105 South State St. | 4325 North Quad jlock...@umich.edu |Ann Arbor, MI 48109-1285 www.umich.edu/~jlockard http://www.umich.edu/%7Ejlockard | 734-936-7255 | 734-764-2475 FAX --- - The University of Michigan will never ask you for your password - -- --- John M. Lockard | U of Michigan - School of Information Unix Sys Admin | 105 South State St. | 4325 North Quad jlock...@umich.edu |Ann Arbor, MI 48109-1285 www.umich.edu/~jlockard http://www.umich.edu/%7Ejlockard | 734-936-7255 | 734-764-2475 FAX --- - The University of Michigan will never ask you for your password - bacula-report.pl Description: Perl program -- ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] summarizing messages into a single mail
On 11/10/2014 10:00 AM, Florian wrote: Hello, everyone. I was wondering, if there is a way to avoid receiving one email for each completed bacula job and instead receive a single mail with all messages. Also, if this is possible, would you recommend it or should I instead try something like Web-Bacula to do some reporting? I am currently receiving mails for 6 jobs per day. Rising to 8 soon. Regards, Florian S. Hi Florian! heh Like Dan said only 6? Some of the sites we manage get 20+ emails/night. :) We get 19/night here. There are many options to choose from: 1. John mentioned a perl script to email you a summary 2. I wrote a Bacula summary email script which I shared here a while back: http://revpol.com/baculasummaryemails That emails a short, basic report - and of course can be modded to provide any additional info you might want/need. 3. Monitor Bacula's status with Nagios or other monitoring system. We use Xymon here, and I wrote a custom Bacula test for it here: http://revpol.com/node/126 4. Filter emails to separate folders. (boring) hehe 5. Send all Bacula-related emails into a helpdesk system and have the system automate your workflow. We use Cerberus here (cerberusweb.com) and all OK backup jobs get filtered into the good backups folder, and closed, while BAD jobs, or Bacula daemon messages are put into the problems folder and workers are notified via emails. In addition, our helpdesk has widgets (we use gauges) that we can quickly look at to get a visual indication that all backups have run at all client sites (see attached image - we have a whole page of these widgets :) ** apologies if this turned into a Cerberus ad, didn't mean for it to ** 6. Instead of the mail script using bsmtp to email the job, write a script that appends the job's log to a file, then email that one file each night and then delete it. (this might get ugly though having to scroll through all the volume changes etc to get to each Summary.) Other options is to have your script pull out only the summaries from the file and send one email with just summaries. Hope some of these options help, Florian! Bill -- Bill Arlofski Reverse Polarity, LLC http://www.revpol.com/ -- Not responsible for anything below this line -- -- ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users