Re: [Bacula-users] Nagios notification setup

2018-12-04 Thread Donna Hofmeister
On Tue, Dec 4, 2018 at 11:26 AM Dimitri Maziuk via Bacula-users <
bacula-users@lists.sourceforge.net> wrote:

> On 12/03/2018 06:27 PM, Elma wrote:
>
> > I wonder if we can send nagios critical notification of specific clients
> to
> > a separate email address.
> > right now one email address is used for all the critical notification.
>
> How do you monitor for bacula's critical notifications?
>

I'm not doing any rocket science -- I'm simply monitoring to see if the
services are running. For example,

check_command   check_service_by_ssh!bacula-dir


In order for this to work, it means that I, of course, set up ssh between
my nagios service and my bacula server.

Without any recommendation (because I just googled for it ;-), I found this
plugin:
https://labs.consol.de/nagios/check_logfiles/

It would take some "tweaking" to get it to check for whatever is
interesting in your bacula log(s).  - d

-- 
Donna Hofmeister
Allegro Consultants, Inc.
408-252-2330
Visit us on Linkedin
<https://www.linkedin.com/company/allegro-consultants-inc->
Like us on Facebook <http://www.facebook.com/allegroconsultantsinc>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Nagios notification setup

2018-12-04 Thread Donna Hofmeister
On Mon, Dec 3, 2018 at 5:29 PM Elma  wrote:

>
> I wonder if we can send nagios critical notification of specific clients
> to a separate email address.
> right now one email address is used for all the critical notification.
>

This is really a nagios question however I'd think the answer is "yes" --
it's question of configuring nagios correctly.

In my nagios configuration, I've separated each server into their own
files. Here's an example of how my "bacula" server is configured in nagios:

find . -name bacula*
./etc/hostextinfo/bacula.cfg
./etc/hosts/bacula.cfg
./etc/services/bacula.cfg


(cwd is /usr/local/nagios)

In my ./etc/hosts/bacula.cfg file, I have the following line:

contact_groups  admins


This eventually "bubbles up" to the .cfg file where "admins" is equated to
an email address.

I think spending some time googling for emailing multiple contacts should
provide an answer. Here's one:
https://support.nagios.com/forum/viewtopic.php?f=7=34029

  - donna

-- 
Donna Hofmeister
Allegro Consultants, Inc.
408-252-2330
Visit us on Linkedin
<https://www.linkedin.com/company/allegro-consultants-inc->
Like us on Facebook <http://www.facebook.com/allegroconsultantsinc>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] help understanding file names

2018-09-26 Thread Donna Hofmeister
here's a directory listing for one of my systems that i backup to disk
using bacula:

-rw-r- 1 root root 1073737486 Sep  3 00:21
Vol-wilbur-fd-File-20180525-1307-5-18
-rw-r- 1 root root  64757 Sep  6 00:05
Vol-wilbur-fd-File-20180525-1346-5-21
-rw-r- 1 root root  457116760 Aug 31 00:43
Vol-wilbur-fd-File-20180531-2307-47-73
-rw-r- 1 root root  823524551 Sep  2 00:09
Vol-wilbur-fd-File-20180601-2309-53-79
-rw-r- 1 root root   26998392 Sep  3 02:23
Vol-wilbur-fd-File-20180604-2308-65-95
-rw-r- 1 root root 387319 Sep  5 00:05
Vol-wilbur-fd-File-20180605-2311-71-102
-rw-r- 1 root root  564021120 Sep  6 00:40
Vol-wilbur-fd-File-20180606-2308-77-110
-rw-r- 1 root root 1073737929 Sep 13 00:32
Vol-wilbur-fd-File-20180608-2305-83-116
-rw-r- 1 root root  452439405 Sep 13 00:34
Vol-wilbur-fd-File-20180608-2307-83-117
-rw-r- 1 root root  728482499 Sep 14 23:09
Vol-wilbur-fd-File-20180609-2305-89-121
-rw-r- 1 root root 1073737938 Sep 15 23:38
Vol-wilbur-fd-File-20180610-2308-95-132
-rw-r- 1 root root 1073737897 Sep 16 23:38
Vol-wilbur-fd-File-20180611-2305-101-143
-rw-r- 1 root root 258296 Sep 18 23:05
Vol-wilbur-fd-File-20180613-2306-113-154
-rw-r- 1 root root  882710992 Sep 18 23:09
Vol-wilbur-fd-File-20180613-2306-113-155
-rw-r- 1 root root  500824681 Sep 19 23:43
Vol-wilbur-fd-File-20180614-2308-119-165
-rw-r- 1 root root5556210 Sep 21 23:07
Vol-wilbur-fd-File-20180615-2307-125-171
-rw-r- 1 root root 1073685732 Sep 23 23:12
Vol-wilbur-fd-File-20180617-2306-137-186
-rw-r- 1 root root 1073737883 Sep 23 23:22
Vol-wilbur-fd-File-20180617-2309-137-187
*-rw-r- 1 root root  824325732 Sep 25 23:09
Vol-wilbur-fd-File-20180618-2305-143-197*
-rw-r- 1 root root   10358557 Aug 29 00:05
Vol-wilbur-fd-File-20180619-2307-149-203
-rw-r- 1 root root 1073737823 Sep  3 00:10
Vol-wilbur-fd-File-20180702-0113-221-237
-rw-r- 1 root root 1073737722 Sep  3 00:29
Vol-wilbur-fd-File-20180702-0157-221-238
-rw-r- 1 root root 1073737940 Sep  3 00:54
Vol-wilbur-fd-File-20180702-2305-227-244
-rw-r- 1 root root 1073737891 Sep  3 01:23
Vol-wilbur-fd-File-20180704-2305-239-245
-rw-r- 1 root root2333013 Sep  4 00:05
Vol-wilbur-fd-File-20180705-2305-245-246
*-rw-r- 1 root root248 Sep 14 23:05
Vol-wilbur-fd-File-20180709-2305-269-253*

you can see that last night's backup was written to
*Vol-wilbur-fd-File-20180618-2305-143-197*. the date embedded in the file's
name is 20180618 not 20180925 which was my intention when i added the
following to my bacula-dir.conf file:

 Label Format =
"Vol-${Client}-${Pool}-${Year}${Month:p/2/0/r}${Day:p/2/0/r}-${Hour:p/2/0/r}${Minute:p/2/0/r}-${JobId}-${NumVols}"

i guess to answer another question -- i have other systems that *do not*
use bacula that also do nightly backups. i use a similar naming scheme (of
embedding the date in the file name) for these systems. at a glance, i know
what file i would want to use to do a restore from "last night's" backup,
for example.

obviously, i'm not understanding something about bacula.  anyone want to
explain?  - donna

-- 
Donna Hofmeister
Allegro Consultants, Inc.
408-252-2330
Visit us on Linkedin
<https://www.linkedin.com/company/allegro-consultants-inc->
Like us on Facebook <http://www.facebook.com/allegroconsultantsinc>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Volume weirdness

2018-07-06 Thread Donna Hofmeister
This is for version 7.4.7, btw.

In my bacula-dir-conf file, I have the following pool stanza:

# File Pool definition
Pool
{
  Name = File
  Pool Type= Backup
  Recycle  = yes  # Bacula can automatically recycle
Volumes
  AutoPrune= yes  # Prune expired volumes
  Volume Retention = 30 days  # 30 days
  Maximum Volume Bytes = 1G   # Limit Volume size to something
reasonable
  Maximum Volumes  = 350  # Limit number of Volumes in Pool
  Maximum Volume Jobs  = 1# Force a Volume switch after 1 job
  Volume Use Duration  = 14h  # Force volume switch
  Label Format =
"Vol-${Client}-${Pool}-${Year}${Month:p/2/0/r}${Day:p/2/0/r}-${Hour:p/2/0/r}${Minute:p/2/0/r}-${JobId}-${NumVols}"
  Purge oldest Volume  = yes
}

For *some* of my clients, the file name is exactly per the 'label format'.
But for others, the ${Client} name is the name of my Bacula server. For one
client in particular, the volume name is bizarre:

Volume name(s): Vol-bacula.allegro.com-fd-
File-20180604-2312-66-96|Vol-bacula.allegro.com-fd-File-
20180705-2305-241-248

fwiw, here's the directory listing:

-rw-r- 1 root root   258 Jul  5 23:05
Vol-bacula.allegro.com-fd-File-20180604-2312-66-96
-rw-r- 1 root root 819894860 Jul  5 23:08
Vol-bacula.allegro.com-fd-File-20180705-2305-241-248
-rw-r- 1 root root  34647949 Jul  5 23:10
Vol-bacula.allegro.com-fd-File-20180705-2310-246-249

Any idea why this is happening? All of my client configuration files (both
on the client and the server) are 'fleshed out' from a template and so are
virtually identical (less the 'personalization' bits).   - donna

-- 
Donna Hofmeister
Allegro Consultants, Inc.
408-252-2330
Visit us on Linkedin
<https://www.linkedin.com/company/allegro-consultants-inc->
Like us on Facebook <http://www.facebook.com/allegroconsultantsinc>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] RunAfterJob

2018-06-06 Thread Donna Hofmeister
In a job{} definition, is it possible/advisable/wise to have multiple
RunAfterJob statements?

If so, does N+1 wait on N to complete?  - d

-- 
Donna Hofmeister
Allegro Consultants, Inc.
408-252-2330
Visit us on Linkedin
<https://www.linkedin.com/company/allegro-consultants-inc->
Like us on Facebook <http://www.facebook.com/allegroconsultantsinc>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Intervention needed for backup

2018-05-25 Thread Donna Hofmeister
On Thu, May 24, 2018 at 9:26 AM, Donna Hofmeister <do...@allegro.com> wrote:

>
> Second interesting question -- given my "Label Format" statement, I would
> expect my files to be named something like this: 
> Vol-minerva.allegro.com-fd-File-20180517-2305-73-19.
> So why are my files named: MinervaBackup.2018-05-23_23.05.00_53?
>

To answer my own question

I think the underlying issue was I had made several changes to the "label
format" statement while I've been testing Bacula...and had inadvertantly
created this situation.

To solve this, I wiped out my bacula storage environment and all seems to
be working well.

So -- reasking my second question -- if you change the "label format"
statement, is there additional steps after that?- donna

-- 
Donna Hofmeister
Allegro Consultants, Inc.
408-252-2330
Visit us on Linkedin
<https://www.linkedin.com/company/allegro-consultants-inc->
Like us on Facebook <http://www.facebook.com/allegroconsultantsinc>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Intervention needed for backup

2018-05-24 Thread Donna Hofmeister
Here's an example of the email I'm getting from Bacula (7.4.7):

24-May 06:05 bacula.allegro.com-sd JobId 104: Job
MinervaBackup.2018-05-23_23.05.00_53 is waiting. Cannot find any appendable
volumes.
Please use the "label" command to create a new Volume for:
Storage:  "FileChgr1-Dev1" (/santa/bacula/backup)
Pool: File
Media type:   File1

I went into bconsole and labeled a file named
-- MinervaBackup.2018-05-23_23.05.00_53. Bacula seems happy with this name
but I was immediately flooded with the following messages (this is just an
example):

bacula.allegro.com-dir JobId 104: Purging oldest volume
"MinervaBackup.2018-05-22_23.05.00_14"
bacula.allegro.com-dir JobId 104: 0 File on Volume
"MinervaBackup.2018-05-22_23.05.00_14" purged from catalog.
bacula.allegro.com-dir JobId 104: Purging oldest volume
"MinervaBackup.2018-05-22_23.05.00_14"
bacula.allegro.com-dir JobId 104: 0 File on Volume
"MinervaBackup.2018-05-22_23.05.00_14" purged from catalog.
bacula.allegro.com-dir JobId 104: Purging oldest volume
"MinervaBackup.2018-05-22_23.05.00_14"
bacula.allegro.com-dir JobId 104: 0 File on Volume
"MinervaBackup.2018-05-22_23.05.00_14" purged from catalog.
bacula.allegro.com-dir JobId 104: Purging oldest volume
"MinervaBackup.2018-05-22_23.05.00_14"
bacula.allegro.com-dir JobId 104: 0 File on Volume
"MinervaBackup.2018-05-22_23.05.00_14" purged from catalog.

I guess "purged from catalog" doesn't include actually purge the "_14" file
because it's still there:

 ll /santa/bacula/backup/M*
-rw-r- 1 root root 244 May 23 08:03
/santa/bacula/backup/MinervaBackup.2018-05-22_23.05.00_14
-rw-r- 1 root root 244 May 24 08:06
/santa/bacula/backup/MinervaBackup.2018-05-23_23.05.00_53

And fwiw...clearly the "_53" file is there but it's not being written to.
For giggles, I tried to make/label a "_54" file but that errored.

So I have this backup (which is the first of six) just sitting. If I cancel
this job, the next job in line will continue to sit too...

So what's wrong?

Here's my (only real) Pool definition:

Pool
{
  Name = File
  Pool Type= Backup
  Recycle  = yes  # Bacula can automatically recycle
Volumes
  AutoPrune= yes  # Prune expired volumes
  Volume Retention = 30 days  # 30 days
  Maximum Volume Bytes = 1G   # Limit Volume size to something
reasonable
  Maximum Volumes  = 30   # Limit number of Volumes in Pool
  Maximum Volume Jobs  = 1# Force a Volume switch after 1 job
  Volume Use Duration  = 14h  # Force volume switch
  Label Format =
"Vol-${Client}-${Pool}-${Year}${Month:p/2/0/r}${Day:p/2/0/r}-${Hour:p/2/0/r}${Minute:p/2/0/r}-${JobId}-${NumVols}"
  Purge oldest Volume  = yes
}

I do, of course, have a scratch pool:

Pool
{
  Name  = Scratch
  Pool Type = Backup
}

Second interesting question -- given my "Label Format" statement, I would
expect my files to be named something like
this: Vol-minerva.allegro.com-fd-File-20180517-2305-73-19. So why are my
files named: MinervaBackup.2018-05-23_23.05.00_53?

sigh- donna

-- 
Donna Hofmeister
Allegro Consultants, Inc.
408-252-2330
Visit us on Linkedin
<https://www.linkedin.com/company/allegro-consultants-inc->
Like us on Facebook <http://www.facebook.com/allegroconsultantsinc>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] bacula backup to disc

2018-04-26 Thread Donna Hofmeister
greeting!

all of my systems do backups to disc. the ones *not* using bacula write to
a host-specific directory (eg, hostA writes to ../hosta/) and each backup
file contains a date and level (eg, 2018-04-25_L3).

additionally, each backup is pushed to the cloud for off-site storage.
since all my backups are 'in the cloud', i purge old on-site backups to
free up disc space.

so...how do i implement this with bacula? do i want to implement this
scheme with bacula? (i figure bacula can be spindled, folded and mutilated
to do all manner of things...but can and should are two different things
;-) - d

-- 
Donna Hofmeister
Allegro Consultants, Inc.
408-252-2330
Visit us on Linkedin
<https://www.linkedin.com/company/allegro-consultants-inc->
Like us on Facebook <http://www.facebook.com/allegroconsultantsinc>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] libbaccats-9.0.6.so dependency problem when installing rpm files

2018-04-05 Thread Donna Hofmeister
On Thu, Apr 5, 2018 at 10:35 AM, Dimitri Maziuk <dmaz...@bmrb.wisc.edu>
wrote:

>
> FWIW I'm deploying more, or at least as many, new centos 6 installs, than
> centos 7 ones. I've come to the conclusion that between systemd with its
> service files and mount units and stuff, breaking kernel ABI on every point
> release, and lack of support for non-RedHat software (like bacula), el7 is
> not really a viable platform for mission-critical servers. It's merely
> tolerable for *some* deployments.
>
> 
>

I love systemdnot :-)

Unfortunately, it's something we'll have to get used to.  Fwiw, systemd on
*early* releases of redhat/centos 7 was unstable (do I hear a resounding
"yes"? :-)  At a minimum, you want to be on 7.4.

So back to the service file dilemma I whined about a few minutes ago

Where I was getting hung up was trying to get any of the bacula service
files to pick up the variables they need. My read of the
systemd documentation is -- it's supposed to workbut three days of
banging my head was quite enough. I simply filled out all the "@foo@" spots
(which I had changed into ${foo}, just so you'll know...) with the correct
values. Here's my bacula-dir.service file:

[Unit]
Description=Bacula Director Daemon service
Requires=network.target
After=network.target
RequiresMountsFor=/usr/libexec/bacula/bin/working /usr/libexec/bacula/bin
/usr/libexec/bacula/bin /usr/libexec/bacula/bin/working

[Service]
Type=forking
EnvironmentFile=/etc/sysconfig/bacula-dir
User=root
Group=root
ExecStart=/usr/libexec/bacula/bin/bacula-dir -c
/usr/libexec/bacula/bin/bacula-dir.conf
PIDFile=/usr/libexec/bacula/bin/working/bacula-dir.9101.pid
ExecReload=/usr/libexec/bacula/bin/bacula-dir -t -c
/usr/libexec/bacula/bin/bacula-dir.conf
ExecReload=/bin/kill -HUP $MAINPID
StandardError=syslog

[Install]
WantedBy=multi-user.target


My -fd and -sd files are similar, of course.

All three services started without issue once I hard-coded everything. (I
don't like it...but it works)

Now to remember what I did to get baculum running- d

-- 
Donna Hofmeister
Allegro Consultants, Inc.
408-252-2330
Visit us on Linkedin
<https://www.linkedin.com/company/allegro-consultants-inc->
Like us on Facebook <http://www.facebook.com/allegroconsultantsinc>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] libbaccats-9.0.6.so dependency problem when installing rpm files

2018-04-05 Thread Donna Hofmeister
On Thu, Apr 5, 2018 at 8:50 AM, Matthias Leopold <
matthias.leop...@meduniwien.ac.at> wrote:

>
> I'm absolutely new to Bacula and basically only want to package the
> software for CentOS 7 so it can be used in my organization by others. I'm
> compiling RPMs from the spec files in bacula-9.0.6.tar.gz. I chose "%define
> postgresql 1" so i got a bacula-postgresql-9.0.6-1.x86_64.rpm package.
> When i want install it from our spacewalk server i get the following
> message:
>
> Error: Package: bacula-postgresql-9.0.6-1.x86_64
> (our_custom_channel_x86_64)
>Requires: libbaccats-9.0.6.so()(64bit)
>
> When i look at the spec file i see that only the mysql package would get a
> "Provides: libbaccats-%{version}.so()(64bit)". How is installing packages
> supposed to work with postgresql versions of Bacula?
>

I went down this path last week -- trying to get new/9.x Bacula to run on
Centos 7 -- and I gave up :-(

For reasons beyond my understanding, the latest bacula is built to run on
Fedora where *bleeding edge* (imo) packages can be found. For companies
like mine, we're not in the Fedora space at all because we are looking for
production-ready/stable builds. For us that's Centos; for others that would
be Redhat.  I'll say it again -- it would be *really nice* if the standard
rpm sites had newer bacula rpms. (Yes, I got several replies about a site
in Russia having them. Sorry, but my paranoia alarms went off...)

Just to continue sniveling...I downloaded the *source* for bacula 7.4.7.
While it compiled ok (I did have to install libacl-devel first), I'm
pulling my hair out trying to get the service files created .
 - d

-- 
Donna Hofmeister
Allegro Consultants, Inc.
408-252-2330
Visit us on Linkedin
<https://www.linkedin.com/company/allegro-consultants-inc->
Like us on Facebook <http://www.facebook.com/allegroconsultantsinc>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users