Re: [Bacula-users] Relocating a bacula host, database, dir sd

2009-03-26 Thread Uwe Schuerkamp
On Thu, Mar 26, 2009 at 03:35:19PM +1100, terryc wrote:
 Due to hardware recognition problems in the latest version of 
 Debian(lenny), I might have to relocate my bacula host to another boxen.
 
 Are there any gotchas(likely problems)?
 My main area of concern is the database?

Hi Terry,

as long as the other box can read the tapes fine I don't see any
issues with using the volumes on the other machine. Just make sure to
have a mysqldump handy in case that things go pear shaped. 

All the best  good luck,

Uwe 


-- 
uwe.schuerk...@nionex.net phone: [+49] 5242.91 - 4740, fax:-69 72
Hauptsitz: Avenwedder Str. 55, D-33311 Guetersloh, Germany
Registergericht Guetersloh HRB 4196, Geschaeftsfuehrer: Horst Gosewehr
NIONEX ist ein Unternehmen der DirectGroup Germany www.directgroupgermany.de

--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] brief reporting

2009-03-26 Thread Jonas Björklund

On Wed, 25 Mar 2009, Bill Szkotnicki wrote:

 Hi,
 I was wondering if there is a command line tool that could produce a
 brief report on the status of a client's backups. I have bacula set up
 to do PC client backups every day and I would like to basically sent
 each client an email once a week ( on a crontab ) informing him or her
 that all is well with the backups.
 Thank you, Bill

Take a look at report.pl which is located in the source.
It should be in examples/reports/.

/Jonas

--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] brief reporting

2009-03-26 Thread Uwe Schuerkamp
On Wed, Mar 25, 2009 at 04:02:08PM -0400, Bill Szkotnicki wrote:
 Hi,
 I was wondering if there is a command line tool that could produce a 
 brief report on the status of a client's backups. I have bacula set up 
 to do PC client backups every day and I would like to basically sent 
 each client an email once a week ( on a crontab ) informing him or her 
 that all is well with the backups.
 Thank you, Bill

Hi Bill,

I guess you chould achieve something towards that goal by doing a bit
of bconsole scripting, for instance by doing a query command for the
client in question, formatting the output a bit and then piping the
result to mail or mutt -s to send the report, or you could just
send a link to a bacula-web generated page. 

HTH, 

Uwe 


-- 
uwe.schuerk...@nionex.net phone: [+49] 5242.91 - 4740, fax:-69 72
Hauptsitz: Avenwedder Str. 55, D-33311 Guetersloh, Germany
Registergericht Guetersloh HRB 4196, Geschaeftsfuehrer: Horst Gosewehr
NIONEX ist ein Unternehmen der DirectGroup Germany www.directgroupgermany.de

--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] brief reporting

2009-03-26 Thread François Mehault
You can see also webacula.

Regards,

François

-Message d'origine-
De : Uwe Schuerkamp [mailto:hoo...@nionex.net]
Envoyé : jeudi 26 mars 2009 09:20
À : Bill Szkotnicki
Cc : bacula-users@lists.sourceforge.net
Objet : Re: [Bacula-users] brief reporting

On Wed, Mar 25, 2009 at 04:02:08PM -0400, Bill Szkotnicki wrote:
 Hi,
 I was wondering if there is a command line tool that could produce a
 brief report on the status of a client's backups. I have bacula set up
 to do PC client backups every day and I would like to basically sent
 each client an email once a week ( on a crontab ) informing him or her
 that all is well with the backups.
 Thank you, Bill

Hi Bill,

I guess you chould achieve something towards that goal by doing a bit
of bconsole scripting, for instance by doing a query command for the
client in question, formatting the output a bit and then piping the
result to mail or mutt -s to send the report, or you could just
send a link to a bacula-web generated page.

HTH,

Uwe


--
uwe.schuerk...@nionex.net phone: [+49] 5242.91 - 4740, fax:-69 72
Hauptsitz: Avenwedder Str. 55, D-33311 Guetersloh, Germany
Registergericht Guetersloh HRB 4196, Geschaeftsfuehrer: Horst Gosewehr
NIONEX ist ein Unternehmen der DirectGroup Germany www.directgroupgermany.de

--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Relocating a bacula host, database, dir sd

2009-03-26 Thread terryc
Uwe Schuerkamp wrote:
 On Thu, Mar 26, 2009 at 03:35:19PM +1100, terryc wrote:
 Due to hardware recognition problems in the latest version of 
 Debian(lenny), I might have to relocate my bacula host to another boxen.

 Are there any gotchas(likely problems)?
 My main area of concern is the database?
 
 Hi Terry,
 
 as long as the other box can read the tapes fine I don't see any
 issues with using the volumes on the other machine. Just make sure to
 have a mysqldump handy in case that things go pear shaped. 
 
 All the best  good luck,

Thanks.
Delayed atm as I found a solution to the problem. Debian was upgraded 
from etch to lenny and instantly started loading hard disks on a pci 
card before those on the motherboard. End result nothing worked.

The solution there was to LABEL every partition and swap space, then 
mount it based onthe label rather than physical location.

Now I can get back to the bacula problem of not recognising the pool 
associated with a tape. (separate post).

Will have to eventually do this I nedd to rationalise the number of 
boxen in the soho as we wind down.



-- 
Terry Collins {:-)}
Bicycles, Appropriate Technology, Natural Environment, Welding

--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Strange behaviour with Mutliple Run statements in Job Resource

2009-03-26 Thread Andreas Bogacki
Andreas Bogacki schrieb:
 Hi,

 I seem to have found a problem with multiple Run statments in a Job
 resource.
 My setup is a bit strange due to too little storage in one place so I
 set up some migrate jobs.

 scheduled backup1 Job writes to filestorage1
 migrate1 Job moves from filestorage1 to filestorage2 based on volumetime
 migrate2 Job moves from filestorage2 to filestorage3 based on volumetime
 migrate3 Job moves from filestorage3 to filestorage4 based on volumetime

 The prefered execution order would be migrate3, migrate2, migrate1, backup1.
 Using priorities to get that order is not practical for there are lots
 of other backup jobs. (last time I tried I had a Weekend full of jobs
 waiting for one mount request)

 Run is not recursive so I tryed to use multiple run statements in the
 backup1 Job.
 This lead to the director spawning a massive amount of those migrate
 jobs (not 3 as expected but 100+). I suppose this behaviour is somewhat
 wrong.

 Is there any way to define dependecies between jobs that go deeper than
 just start this single job befor this one is run or will I have to
 create staggered schedules with all jobs having the same priority.

 thanks for your help
 Andreas Bogacki

   
forgot to provide some details:
debian lenny
bacula 2.4.4 (28 December 2008) x86_64-pc-linux-gnu debian lenny/sid

the spawning of those jobs causes a Too many open files Error at some point:
message.c:589 fopen /var/log/bacula/log failed: ERR=Too many open files
and then the director segfaults.

--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Ver 2.4.4 not associating mounted tapes with any pool

2009-03-26 Thread terryc
Since I upgraded my Debian etch to Lenny and a resultant bacula upgrade, 
a problem has emerged with bacula. It is failing to associate a existing 
tape with its pool.

Particularly applies to a tape sitting in the drive when DIR is 
started/restarted. It reads the label correctly, but then has no 
knowledge of the pool it belongs to.

Nothing short of physical removal and reload will correct this.

Is there some reason for this change?

-- 
Terry Collins {:-)}
Bicycles, Appropriate Technology, Natural Environment, Welding

--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Strange behaviour with Mutliple Run statements in Job Resource

2009-03-26 Thread Andreas Bogacki
Hi,

I seem to have found a problem with multiple Run statments in a Job
resource.
My setup is a bit strange due to too little storage in one place so I
set up some migrate jobs.

scheduled backup1 Job writes to filestorage1
migrate1 Job moves from filestorage1 to filestorage2 based on volumetime
migrate2 Job moves from filestorage2 to filestorage3 based on volumetime
migrate3 Job moves from filestorage3 to filestorage4 based on volumetime

The prefered execution order would be migrate3, migrate2, migrate1, backup1.
Using priorities to get that order is not practical for there are lots
of other backup jobs. (last time I tried I had a Weekend full of jobs
waiting for one mount request)

Run is not recursive so I tryed to use multiple run statements in the
backup1 Job.
This lead to the director spawning a massive amount of those migrate
jobs (not 3 as expected but 20+). I suppose this behaviour is somewhat
wrong.

Is there any way to define dependecies between jobs that go deeper than
just start this single job befor this one is run or will I have to
create staggered schedules with all jobs having the same priority.

thanks for your help
Andreas Bogacki

--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Bweb access levels for different users

2009-03-26 Thread Alex F
In the configuration menu of BWEB I enabled the security feature because I want 
different users to have different levels of access to the bweb interface. But 
now I get: test sorry, but this action (r_configure) is not permited. Check 
security with your administrator. 
BTW, test is the user with which I login.
Now, in the error log i get: 
[error] DBD::mysql::db selectall_arrayref failed: Table 'bacula.bweb_user' 
doesn't exist at 
/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/Bweb.pm line 1100., 
referer: xxx. I understand that I need to create the  bacula.bweb_user table, 
but I do not know what it should contain. And how do I select what kind of 
access a user has to bweb?


  --
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Strange behaviour with Mutliple Run statements in Job Resource

2009-03-26 Thread terryc
Andreas Bogacki wrote:

 Is there any way to define dependecies between jobs that go deeper than
 just start this single job befor this one is run or will I have to
 create staggered schedules with all jobs having the same priority.

Sounds like it is a job for a RunBefore script based on df, or better a 
cron job that routinely checks disk space and shuffles space if not enough.

Spooling may give you time for that space clearing job to carry out the 
move.

I also hope that was just a quickly concocted example, otherwise a 
proceedural rethink seems best aka (day of month)/mod 3 decides storage 
spot.


-- 
Terry Collins {:-)}
Bicycles, Appropriate Technology, Natural Environment, Welding

--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Fwd: Ver 2.4.4 not associating mounted tapes with any pool

2009-03-26 Thread John Drescher
Here is one link on this subject. However its from 1.38

http://www.backupcentral.com/phpBB2/two-way-mirrors-of-external-mailing-lists-3/bacula-25/autochanger-multitape-drives-unknown-pool-79262/?sid=5d83f41c637b3f64e3f347dccb0cb5e2

John

--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Ver 2.4.4 not associating mounted tapes with any pool

2009-03-26 Thread John Drescher
 Since I upgraded my Debian etch to Lenny and a resultant bacula upgrade,
 a problem has emerged with bacula. It is failing to associate a existing
 tape with its pool.

 Particularly applies to a tape sitting in the drive when DIR is
 started/restarted. It reads the label correctly, but then has no
 knowledge of the pool it belongs to.

You are talking about the status storage screen?

If so that is harmless.  The first mount should pick up the correct
pool. There were threads about this 2 years ago when 2.0.X came out to
most linux distributions.

John

--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Odd error with -2.5-b2

2009-03-26 Thread Craig Ringer
Hi

I've successfully updated my Linux hosts to 2.5b2 and testing has been
mostly rather successful. The new accurate backup mode appears to work
very well even on my Cyrus mail spools (several hundred thousand files).

However, I'm having issues with my NT profiles directory. It's a
dedicated ext3 filesystem, /ntprofiles, with POSIX ACLs and user xattrs
enabled on it.

It's failing with (sorry for quoted text; Thunderbird is too stupid to
do non-wrapped text with normal paste):

 26-Mar 23:17 backup-dir JobId 372: Start Backup JobId 372, 
 Job=AccessNtProfiles.2009-03-26_23.10.00.39
 26-Mar 23:17 backup-dir JobId 372: Using Device FileStorage_HomeDir
 26-Mar 23:15 access.localnet-fd JobId 372: DIR and FD clocks differ by -113 
 seconds, FD automatically compensating.
 26-Mar 23:17 backup-dir JobId 372: Sending Accurate information.
 26-Mar 23:17 backup-sd JobId 372: Volume HomeDirIncr-0400 previously 
 written, moving to end of data.
 26-Mar 23:17 backup-sd JobId 372: Ready to append to end of Volume 
 HomeDirIncr-0400 size=311720709
 26-Mar 23:17 backup-sd JobId 372: Spooling data ...
 26-Mar 23:17 backup-sd JobId 372: Job write elapsed time = 00:00:21, Transfer 
 rate = 2.720 M bytes/second
 26-Mar 23:17 backup-sd JobId 372: Committing spooled data to Volume 
 HomeDirIncr-0400. Despooling 57,259,094 bytes ...
 26-Mar 23:17 backup-sd JobId 372: Despooling elapsed time = 00:00:01, 
 Transfer rate = 57.25 M bytes/second
 26-Mar 23:17 backup-sd JobId 372: Sending spooled attrs to the Director. 
 Despooling 395,586 bytes ...
 26-Mar 23:15 access.localnet-fd JobId 372: Fatal error: backup.c:944 Network 
 send error to SD. ERR=Connection reset by peer
 26-Mar 23:15 access.localnet-fd JobId 372: Fatal error: backup.c:1048 Network 
 send error to SD. ERR=Connection reset by peer
 26-Mar 23:15 access.localnet-fd JobId 372: Fatal error: backup.c:1048 Network 
 send error to SD. ERR=Connection reset by peer

These messages continue to repeat thousands of times. The email
notification is 10Mb.

(I've fixed the NTPd issues causing the clock drift since then).

The same host, access.localnet, has no problems talking to the sd
(backup-sd on backup.localnet) when backing up the Cyrus mail spools on
the same host, which are also set to Accurate=yes.

I haven't re-run with debug enabled yet, but I was looking for a few
ideas on where to start tracking this down. The only thing I can think
of so far is that this is the only fileset that backs up POSIX ACLs and
user xattrs. I'll try turning user xattrs off and will report more info
later, but given the beta status I thought it best to bring this up
promptly.

Here are some relevant config snippets:

Job {
  Name = AccessNtProfiles
  JobDefs = DefaultJob
  Schedule = HomeDirSchedule
  Storage = File_HomeDir
  Client = access.localnet-fd
  FileSet = AccessNtProfiles
  Accurate = yes
}
FileSet {
  Name = AccessNtProfiles
  Include {
Options {
  signature = MD5
  compression = gzip
  onefs = yes
  # Samba uses ACLs on these files
  aclsupport = yes
  # Needed because Samba stores hidden etc in user xattrs
  xattrsupport = yes
}
File = /ntprofiles
  }
}

--
Craig Ringer

--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] How to display specific jobids in bconsole

2009-03-26 Thread Bob Hetzel


 From: John Drescher dresche...@gmail.com
 On Wed, Mar 25, 2009 at 9:09 AM, Quibble jmannu...@dynamicquest.com wrote:
 
  Hi,
 
  Is there a way to show the jobids of a specific client in bconsole without
  showing every single jobid available? ?We backup a ton of servers and it is
  helpful to be able to specify the specific jobids of one client at a time
  rather than evey single one.
 
 Use the query command.
 
 John


Related to that... when I do a restore client='clientname' does anybody 
else think that if I specify 1: List last 20 Jobs run it should only show 
me jobs for that particular client?

Perhaps this is more properly defined as a feature request than a bug but 
before submitting it I wonder what others think.  If that were changed 
would anything break?

Alternatively, I see option 10: Find the JobIds for a backup for a client 
before a specified time only lists the most recent Full and it's following 
incrementals (with regard to the date entered).  Is there some menu driven 
way to see all the usable backup jobs for a particular client?  If not, 
should there be?

   Bob

--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] how restore a file with accent ?

2009-03-26 Thread François Mehault
Hi All

I would like to know how I could restore a file which has some accent.
I want to restore with bconsole,

In bconsole :
*
*
*restore

[...]

$ ls
héhé lol.txt
$ mark h

And i can't mark my file :s,  and I can't rename the file (it is the file of my 
customer)

Regards,

François
--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] How to list file sizes in terminated jobs

2009-03-26 Thread Foo
Hi,

I'm looking to mod query option 12 to list not just path/filename but size  
too, possibly other attributes like permissions, datestamps etc.

Is this info kept in the catalog somewhere or does Bacula parse volume  
files for this? If the latter, has anyone done any scripting to parse it  
out?


--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] how restore a file with accent ?

2009-03-26 Thread Graham Keeling
On Thu, Mar 26, 2009 at 05:19:19PM +0100, Fran?ois Mehault wrote:
 Hi All
 
 I would like to know how I could restore a file which has some accent.
 I want to restore with bconsole,
 
 In bconsole :
 *
 *
 *restore
 
 [...]
 
 $ ls
 h??h?? lol.txt
 $ mark h
 
 And i can't mark my file :s,  and I can't rename the file (it is the file of 
 my customer)
 
 Regards,
 
 Fran?ois

Try this, or something similar:
mark h* lol.txt


As an aside:
The mark quoting in bconsole is quite whacky.

I found that you need to have three backslashes to quote a backslash, two to
quote each of *?[, and one to quote a double-quote!


--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] How to list file sizes in terminated jobs

2009-03-26 Thread John Drescher
On Thu, Mar 26, 2009 at 12:40 PM, Foo bfo...@yahoo.co.uk wrote:
 Hi,

 I'm looking to mod query option 12 to list not just path/filename but size
 too, possibly other attributes like permissions, datestamps etc.

 Is this info kept in the catalog somewhere or does Bacula parse volume
 files for this? If the latter, has anyone done any scripting to parse it
 out?

The database design is here:
http://bacula.org/en/developers/Catalog_Services.html#1923

In a brief look at this I did not see file size though.

John

--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] how restore a file with accent ?

2009-03-26 Thread Robert LeBlanc

On 3/26/09 10:39 AM, Graham Keeling gra...@equiinet.com wrote:

 On Thu, Mar 26, 2009 at 05:19:19PM +0100, Fran?ois Mehault wrote:
 Hi All
 
 I would like to know how I could restore a file which has some accent.
 I want to restore with bconsole,
 
 In bconsole :
 *
 *
 *restore
 
 [...]
 
 $ ls
 h??h?? lol.txt
 $ mark h
 
 And i can't mark my file :s,  and I can't rename the file (it is the file of
 my customer)
 
 Regards,
 
 Fran?ois
 
 Try this, or something similar:
 mark h* lol.txt
 
 
 As an aside:
 The mark quoting in bconsole is quite whacky.
 
 I found that you need to have three backslashes to quote a backslash, two to
 quote each of *?[, and one to quote a double-quote!

I use  and this seems to work for things like spaces. It sure would be
nice to have tab completion like BASH. In fact, I find myself hitting tab,
just to have to backspace.

-- 
Robert LeBlanc
Life Sciences Computer Support
Brigham Young University
lebl...@byu.edu
(801)422-1882


--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Bacula Director not listening on port 9101

2009-03-26 Thread Raymond Norton
I am helping a friend get his bacula box running on Ubuntu 8.04 server.

bacula was installed via apt-get.

All services start fine, but netstat -a -n does not show the box is 
listening on port 9101. ps -A shows all bacula services running.

/etc/services has entries for ports 9101-9103

In bacula-dir.conf DIRport is set to 9101


Any ideas what to look for to correct this?

--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula Director not listening on port 9101

2009-03-26 Thread John Drescher
On Thu, Mar 26, 2009 at 2:15 PM, Raymond Norton ad...@lctn.org wrote:
 I am helping a friend get his bacula box running on Ubuntu 8.04 server.

 bacula was installed via apt-get.

 All services start fine, but netstat -a -n does not show the box is
 listening on port 9101. ps -A shows all bacula services running.

 /etc/services has entries for ports 9101-9103

 In bacula-dir.conf DIRport is set to 9101


 Any ideas what to look for to correct this?

Are you sure its not listining on 127.0.0.1?

Ubuntu default (overly protective) configuration files make bacula a
one machine backup system but removing 127.0.0.1 and localhost from
them and replacing this with the external ip address fixes the issue.

John

--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula Director not listening on port 9101

2009-03-26 Thread John Drescher
On Thu, Mar 26, 2009 at 2:39 PM, John Drescher dresche...@gmail.com wrote:
 On Thu, Mar 26, 2009 at 2:15 PM, Raymond Norton ad...@lctn.org wrote:
 I am helping a friend get his bacula box running on Ubuntu 8.04 server.

 bacula was installed via apt-get.

 All services start fine, but netstat -a -n does not show the box is
 listening on port 9101. ps -A shows all bacula services running.

 /etc/services has entries for ports 9101-9103

 In bacula-dir.conf DIRport is set to 9101


 Any ideas what to look for to correct this?

 Are you sure its not listining on 127.0.0.1?

 Ubuntu default (overly protective) configuration files make bacula a
 one machine backup system but removing 127.0.0.1 and localhost from
 them and replacing this with the external ip address fixes the issue.


If that is not the case stop bacula-dir  and then start it from the
shell with debug output enabled. Something like:

# bacula-dir -d 100 -c /etc/bacula-dir.conf

John

--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula Director not listening on port 9101

2009-03-26 Thread Raymond Norton

 Are you sure its not listining on 127.0.0.1?
 
 Ubuntu default (overly protective) configuration files make bacula a
 one machine backup system but removing 127.0.0.1 and localhost from
 them and replacing this with the external ip address fixes the issue.
 
 John



I replaced all instances of 127.0.0.1 with the public IP address of the 
box. I cannot telnet to port 9101 on 127.0.0.1 either.


--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula Director not listening on port 9101

2009-03-26 Thread Raymond Norton
 If that is not the case stop bacula-dir  and then start it from the
 shell with debug output enabled. Something like:
 
 # bacula-dir -d 100 -c /etc/bacula-dir.conf
 
 John

I used apt-get to autoremove everything and start over.


I get the following results when running in debug mode. No errors that I 
can see, but still nothing on port 9101


r...@jvbak:/etc/bacula# bacula-dir -d 100 -c /etc/bacula/bacula-dir.conf
bacula-dir: dird.c:157-0 Debug level = 100
bacula-dir: jcr.c:132-0 read_last_jobs seek to 192
bacula-dir: jcr.c:139-0 Read num_items=0
bacula-dir: mysql.c:101-0 db_open first time
bacula-dir: mysql.c:129-0 initdb ref=1 connected=0 db=0
bacula-dir: mysql.c:165-0 mysql_init done

--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula Director not listening on port 9101

2009-03-26 Thread Raymond Norton
Figured it out. He had the mysql password wrong, but it did not show an 
error message. Fixed it, and now it is listening on port 9101.

--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula Director not listening on port 9101

2009-03-26 Thread John Drescher
On Thu, Mar 26, 2009 at 3:06 PM, Raymond Norton ad...@lctn.org wrote:
 If that is not the case stop bacula-dir  and then start it from the
 shell with debug output enabled. Something like:

 # bacula-dir -d 100 -c /etc/bacula-dir.conf

 John

 I used apt-get to autoremove everything and start over.


 I get the following results when running in debug mode. No errors that I
 can see, but still nothing on port 9101


 r...@jvbak:/etc/bacula# bacula-dir -d 100 -c /etc/bacula/bacula-dir.conf

I am glad you spotted the wrong folder for bacula-dir.conf

I am sick and under meds now so I am not operating at 100%

 bacula-dir: dird.c:157-0 Debug level = 100
 bacula-dir: jcr.c:132-0 read_last_jobs seek to 192
 bacula-dir: jcr.c:139-0 Read num_items=0
 bacula-dir: mysql.c:101-0 db_open first time
 bacula-dir: mysql.c:129-0 initdb ref=1 connected=0 db=0
 bacula-dir: mysql.c:165-0 mysql_init done

Does bacula keep running or does it terminate when you run it like this?


Can you post your bacula-dir.conf. I am not sure that will help though.


BTW, what bacula version is this.

-- 
John M. Drescher

--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula Director not listening on port 9101

2009-03-26 Thread John Drescher
On Thu, Mar 26, 2009 at 3:20 PM, Raymond Norton ad...@lctn.org wrote:
 Figured it out. He had the mysql password wrong, but it did not show an
 error message. Fixed it, and now it is listening on port 9101.


That is sometimes a problem however in previous versions of bacula the
director would mention this in the debug output and terminate..

John

--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Updates to bacula_mail_summary.sh

2009-03-26 Thread John Lockard
Attached, please find updates to bacula_mail_summary.sh which
was in the examples/reports directory in the source distribution.
I run this script once a week, after the log has been rotated
by my systems logrotate script.

I've tweaked the display formatting quite a bit.  Rather than
displaying the full job level I've done:
 F   = Full
 D   = Differential
 I   = Incrmental
 I2F = Full (upgraded from Incremental)
 D2F = Full (upgraded from Incremental)

For completion status I've shorted these as well to:
 OK= OK
 OK-Verify = Verify OK
 OK-Warn   = Ok -- with warnings
 M-OK  = Migration OK
 M-Error   = Migration Error

I've changed the Start and End times to include the day
and month, to cover jobs that run long (more than 24 hours).

Sample output (excerpts):

Client StatusType  StartTimeEndTime  Files  
Bytes
homer  OK-Warn   I 01-Mar-22:00:03  01-Mar-22:20:28  1,049  
637,371,688(637.3  MB)
wiggum OKI 02-Mar-02:01:03  02-Mar-02:02:11  26 
73,035 (73.03  KB)
harvbannister  OK-Warn   F 02-Mar-02:30:02  02-Mar-02:40:16  298,076
8,937,733,774  (8.937  GB)
dataless   OKF 02-Mar-03:00:00  02-Mar-06:13:48  212,695
129,185,742,611(129.1  GB)
bart   OKI2F   06-Mar-20:00:02  06-Mar-22:59:04  1,484,236  
91,154,841,692 (91.15  GB)
homer  OK-Warn   I2F   06-Mar-22:59:06  07-Mar-07:01:35  2,147,092  
765,068,201,965(765.0  GB)
mrlombardo OKD2F   12-Mar-21:00:00  12-Mar-23:48:29  1,277  
60,076,971,159 (60.07  GB)
tibor  Canceled  F 12-Mar-23:50:31  13-Mar-10:32:35  0  0   
   (0  B)
tibor  M-OK  F 17-Mar-17:19:42  17-Mar-17:21:09  58,134 
2,477,312,248  (2.477  GB)
tibor  M-Error   F 17-Mar-17:23:01  17-Mar-17:23:01  0  0   
   (0  B)
bart   OKD 17-Mar-20:00:02  17-Mar-20:10:35  756
535,593,805(535.5  MB)
sherri Error F 19-Mar-12:25:59  20-Mar-22:24:01  147,641
1,390,032,423,344  (1.390  TB)
centra OK-Warn   D 23-Mar-17:00:03  23-Mar-17:00:21  0  0   
   (0  B)
adilhoxha  OKI 23-Mar-18:30:56  23-Mar-18:36:23  65 
3,456,362,879  (3.456  GB)


I hope someone finds this to be useful.

-John


-- 
Four Horsemen Of The Apocalypse Unveil New Alert System
 - Subject of recent SPAM message
---
 John M. Lockard |  U of Michigan - School of Information
 Unix and Security Admin |  1214 SI North - 1075 Beal Ave.
  jlock...@umich.edu |Ann Arbor, MI  48109-2112
 www.umich.edu/~jlockard | 734-615-8776 | 734-647-8045 FAX
---


bacula_mail_summary.sh
Description: Bourne shell script
--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Updates to bacula_mail_summary.sh

2009-03-26 Thread John Lockard
Attached, please find updates to bacula_mail_summary.sh which
was in the examples/reports directory in the source distribution.
I run this script once a week, after the log has been rotated
by my systems logrotate script.

I've tweaked the display formatting quite a bit.  Rather than
displaying the full job level I've done:
 F   = Full
 D   = Differential
 I   = Incrmental
 I2F = Full (upgraded from Incremental)
 D2F = Full (upgraded from Incremental)

For completion status I've shorted these as well to:
 OK= OK
 OK-Verify = Verify OK
 OK-Warn   = Ok -- with warnings
 M-OK  = Migration OK
 M-Error   = Migration Error

I've changed the Start and End times to include the day
and month, to cover jobs that run long (more than 24 hours).

Sample output (excerpts):

Client StatusType  StartTimeEndTime  Files  
Bytes
homer  OK-Warn   I 01-Mar-22:00:03  01-Mar-22:20:28  1,049  
637,371,688(637.3  MB)
wiggum OKI 02-Mar-02:01:03  02-Mar-02:02:11  26 
73,035 (73.03  KB)
harvbannister  OK-Warn   F 02-Mar-02:30:02  02-Mar-02:40:16  298,076
8,937,733,774  (8.937  GB)
dataless   OKF 02-Mar-03:00:00  02-Mar-06:13:48  212,695
129,185,742,611(129.1  GB)
bart   OKI2F   06-Mar-20:00:02  06-Mar-22:59:04  1,484,236  
91,154,841,692 (91.15  GB)
homer  OK-Warn   I2F   06-Mar-22:59:06  07-Mar-07:01:35  2,147,092  
765,068,201,965(765.0  GB)
mrlombardo OKD2F   12-Mar-21:00:00  12-Mar-23:48:29  1,277  
60,076,971,159 (60.07  GB)
tibor  Canceled  F 12-Mar-23:50:31  13-Mar-10:32:35  0  0   
   (0  B)
tibor  M-OK  F 17-Mar-17:19:42  17-Mar-17:21:09  58,134 
2,477,312,248  (2.477  GB)
tibor  M-Error   F 17-Mar-17:23:01  17-Mar-17:23:01  0  0   
   (0  B)
bart   OKD 17-Mar-20:00:02  17-Mar-20:10:35  756
535,593,805(535.5  MB)
sherri Error F 19-Mar-12:25:59  20-Mar-22:24:01  147,641
1,390,032,423,344  (1.390  TB)
centra OK-Warn   D 23-Mar-17:00:03  23-Mar-17:00:21  0  0   
   (0  B)
adilhoxha  OKI 23-Mar-18:30:56  23-Mar-18:36:23  65 
3,456,362,879  (3.456  GB)


I hope someone finds this to be useful.

-John


- start bacula_mail_summary.sh -

#!/bin/sh

# $Id: bacula_mail_summary.sh,v 1.5 2009/03/26 19:04:11 root Exp $
# $Locker:  $

# This script is to create a summary of the job notifications from bacula
# and send it to people who care.
#
# For it to work, you need to have all Bacula job report
# logging to a file, edit LOGFILE to match your setup.
# This should be run after all backup jobs have finished.
# Tested with bacula-2.4.4

# Some improvements by: John Lockard jlock...@umich.edu
#   (University of Michigan - School of Information)
#   Changed Date format to better sort
#   Reformatted Levels to fit better
#   Caught more job completion types
#   Added From addressing to the outgoing email
#   Removed log rotation.  I'll leave that up to a system utility (logrotate)
#   Added partial date to Start and End times to cover long running jobs
# Some improvements by: Andrey Yakovlev free...@kiev.farlep.net  (ISP Farlep)
# Contributed by Andrew J. Millar and...@alphajuliet.org.uk
# Patched by Andrey A. Yakovlev free...@kiev.farlep.net

# Use awk to create the report, pass to column to be
# formatted nicely, then on to mail to be sent to
# people who care.

LOGFILE='/var/log/bacula/standard'

EMAIL_TO=backup-adm...@example.com
EMAIL_FROM=bacula-ser...@example.com
#EMAIL_FROM=${EMAIL_TO}
EMAIL_SUBJECT=Bacula Job Summary: `date +'%F - %a'`

#-

awk -F\:\  'BEGIN {
print Client Status Type StartTime EndTime Files Bytes
}

/director-dir: New file:/ {
print $3
}

/director-dir: File:/ {
print $3
}

/Client/ {
CLIENT=$2; sub(//, , CLIENT) ; sub(/.*$/, , CLIENT)
}
/Backup Level/ {
TYPE=$2 ;
sub(/,.*$/, , TYPE)
sub(/Full \(upgraded from Incremental\)/, I2F, TYPE);
sub(/Full \(upgraded from Differential\)/, D2F, TYPE);
sub(/Full/, F, TYPE);
sub(/Incremental/, I, TYPE);
sub(/Differential/, D, TYPE);
}
/Start time/ {
STARTTIME=$2;
sub(/-[0-9]* /, -, STARTTIME)
sub(/^ */, , STARTTIME)
gsub(/ /, -, STARTTIME)
}
/End time/ {
ENDTIME=$2;
sub(/-[0-9]* /, -, ENDTIME)
sub(/^ */, , ENDTIME)
gsub(/ /, -, ENDTIME)
}
/Files Examined/ {
SDFILES=$2
SDBYTES=0
}
/SD Files Written/ {
SDFILES=$2
}
/SD Bytes Written/ {
SDBYTES=$2
}
/Termination/ {
TERMINATION=$2 ;

Re: [Bacula-users] Bacula Director not listening on port 9101

2009-03-26 Thread Raymond Norton
I figured out the permissions problem.

Thanks for the help

--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Ver 2.4.4 not associating mounted tapes with any pool

2009-03-26 Thread terryc
John Drescher wrote:

 You are talking about the status storage screen?

Yes, and more
 
 If so that is harmless.  The first mount should pick up the correct
 pool.

That is the problem as it doesn't. Requires a physical removal of the 
tape from the drive.



-- 
Terry Collins {:-)}
Bicycles, Appropriate Technology, Natural Environment, Welding

--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Monitoring bacula with Nagios

2009-03-26 Thread Mike
Folks,

Does anyone have any tips for montioring Bacula with Nagios?

Ideally I was thinking of connecting to the sockets and doing a hello to
make sure it was happy.  I haven't been able to find any plugings and
tinking with the protocol there seems to be some non printing characters
which makes it a little tricky to write my own.

Any other suggestions for achiving it?

Mike.


signature.asc
Description: Digital signature
--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Monitoring bacula with Nagios

2009-03-26 Thread mark . bergman


In the message dated: Thu, 26 Mar 2009 23:21:53 -,
The pithy ruminations from Mike on 
[Bacula-users] Monitoring bacula with Nagios were:
= 

= 
= Folks,
= 
= Does anyone have any tips for montioring Bacula with Nagios?

Yes.


= 
= Ideally I was thinking of connecting to the sockets and doing a hello to
= make sure it was happy.  I haven't been able to find any plugings and
= tinking with the protocol there seems to be some non printing characters
= which makes it a little tricky to write my own.
= 
= Any other suggestions for achiving it?

Sure.

I'm using the Nagios nrpe facility to have the nagios server issue calls to 
each client to run the nagios check_procs command, looking for the presence 
of the process bacula-fd. You can do similar things to check for the 
bacula-sd and bacula-dir daemons.

Here are some config file snippets:

===nagios server===
checkcommands.cfg
command_line/usr/lib/nagios/check_nrpe -H $HOSTADDRESS$ -c 
check_bacula-fd -t 20


===backup client===
nrpe.cfg
command[check_bacula-fd]=/usr/local/nagios/libexec/check_procs  -C 
bacula-fd -c 1: -w :2


= 
= Mike.
= 


Mark Bergman  voice: 215-662-7310
mark.berg...@uphs.upenn.edu fax: 215-614-0266
System Administrator Section of Biomedical Image Analysis
Department of RadiologyUniversity of Pennsylvania
  PGP Key: https://www.rad.upenn.edu/sbia/bergman



The information contained in this e-mail message is intended only for the 
personal and confidential use of the recipient(s) named above. If the reader of 
this message is not the intended recipient or an agent responsible for 
delivering it to the intended recipient, you are hereby notified that you have 
received this document in error and that any review, dissemination, 
distribution, or copying of this message is strictly prohibited. If you have 
received this communication in error, please notify us immediately by e-mail, 
and delete the original message.

--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Monitoring bacula with Nagios

2009-03-26 Thread Kevin Keane
I found a check_bacula plugin somewhere - I think on nagiosexchange. It 
looks at the bacula log files for the last day, and issues a warning if 
any backups have failed. It also reports on the total number of backups. 
It's far from perfect (the warning state always remains exactly until 
midnight, for instance) but for the time being is useful enough for me. 
And it is a perl script, so it should be easy enough to customize.

The copyright notice for that plugin says Guy Van Sanden and gives the 
URL http://nocturn.vbsnet.be

Mike wrote:
 Folks,

 Does anyone have any tips for montioring Bacula with Nagios?

 Ideally I was thinking of connecting to the sockets and doing a hello to
 make sure it was happy.  I haven't been able to find any plugings and
 tinking with the protocol there seems to be some non printing characters
 which makes it a little tricky to write my own.

 Any other suggestions for achiving it?

 Mike.
   

-- 
Kevin Keane
Owner
The NetTech
Find the Uncommon: Expert Solutions for a Network You Never Have to Think About

Office: 866-642-7116
http://www.4nettech.com

This e-mail and attachments, if any, may contain confidential and/or 
proprietary information. Please be advised that the unauthorized use or 
disclosure of the information is strictly prohibited. The information herein is 
intended only for use by the intended recipient(s) named above. If you have 
received this transmission in error, please notify the sender immediately and 
permanently delete the e-mail and any copies, printouts or attachments thereof.


--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users