Getting Bacula's Bootstrap (.bsr) Files To A Safe Place Via Email

Here is a very simple script to make sure that your Bacula bootstrap files are emailed to an offsite system. This script may be called manually, or from a cron job, or from a Bacula Catalog backup job's "After" Runscript.

Monitoring Samba users, shares, and connections with Xymon

I thought it would be a good idea to monitor some basic stats from the Samba servers that we manage and maintain. It would be nice, for example, to know the total number of users in the domain (LDAP, or tbd), the total number of machines in the domain, the number of currently connected users, the number of currently opened shares, and total number of open files.

Of course, if we have all of this information, we are going to graph it too!

Below is a short Xymon external script (bash shell script) which gathers this information using pdbedit, smbldap-userlist, and smbstatus and reports the information back to the Xymon server.

Monitoring DAHDI channels on an Asterisk system with Xymon

With the severe thunderstorms and tornado warnings we have been recently subjected to, we inevitably end up having problems with the POTS lines connected to our Asterisk system. The problems have been due to either a physical issue between our office and the CO which the phone company has to repair, or a simple issue of forgetting to plug the POTS lines back into the analog card once the storms had passed.

The up side to this is that we have a very quiet morning with no ringing phones the day after a major storm, however the reality is that we may be missing important phone calls from our clients!

Generating Basic Bacula Backup Email Summary Reports

Update: 20170408 - A lot of work has been done to this script over the past four years. What started out as a "simple bash shell script" now has a lot of new options. Please use the latest version.

A request was made on the Bacula mailing list for a way to get daily and weekly backup reports. This got me to thinking that such a daily email would be useful.

So, off I went to write a simple bash shell script to generate these reports.

Keep in mind that this is a pretty simple report and it works for our needs. You may wish to modify it to include HTML formatting, additional fields such as StartTime and EndTime, total GB for all jobs, etc.