Re: [Bacula-users] Verifying run of backups - script?

2007-10-17 Thread Stern, Falk
Hi, 

[EMAIL PROTECTED] wrote:
 Essentially, what I'm looking for (or may be writing) is a
 little script
 (Python maybe?) that will find all jobs that should have been run this
 calendar day (I guess by parsing the director config file, since it's
 not stored in the database) and then check the Jobs table to be sure
 that they actually ran and ended successfully. If all is ok, it would
 send an email with a subject like Bacula on HOSTNAME - DATE - All OK
 or would alert if there are any errors. I'd run it as a cron
 job so that
 it's entirely independent of Bacula.

Actually I have written a small perl script that does what you want. 

It currently works only with mysql (postgres should be hackable) and lists all
jobs that ran on the current day. 

All it does is fire up some mysql querys and generate a report from it. 

We run this by cronjob and generate a mail from it. 

Hope this helps, 

Kind regards, 

Falk Stern

-- 
akquinet system integration GmbH
Paul-Stritter-Weg 5 ▪ D-22297 Hamburg
Fon:+49 (0)40-881 73-0
Fax:+49 (0)40-881 73-111
www.akquinet.de

Geschäftsführung: Markus Dumbsky, Marcus Pump Amtsgericht Hamburg HRB
87736 USt.-Id. Nr.: DE 229 562 303 


bacula_report.pl
Description: bacula_report.pl
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Verifying run of backups - script?

2007-10-16 Thread Michael Short
To make sure a job ran, simply mash up a bash script (or php/python) and run
an sql query for all jobs that started on a certain day. Then you could
compile this in a single readable e-mail. Then add an admin job which runs
the script at a specified time every day (preferably after your backups, so
I'd give it a higher priority).

Sincerely,
-Michael Short
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Verifying run of backups - script?

2007-10-16 Thread Arno Lehmann
Hi,

16.10.2007 20:32,, Ryan Novosielski wrote::
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 There is also a Nagios plugin for Bacula.

And to monitor if your jobs actually ran, use a Run After Job script 
to send passive check results to Nagios. The passive check should use 
freshness checking with a threshold that triggers when your jobs are late.

Arno

 Michael Short wrote:
 To make sure a job ran, simply mash up a bash script (or php/python) and
 run an sql query for all jobs that started on a certain day. Then you
 could compile this in a single readable e-mail. Then add an admin job
 which runs the script at a specified time every day (preferably after
 your backups, so I'd give it a higher priority).

 Sincerely,
 -Michael Short


 

 -
 This SF.net email is sponsored by: Splunk Inc.
 Still grepping through log files to find problems?  Stop.
 Now Search log events and configuration files using AJAX and a browser.
 Download your FREE copy of Splunk now  http://get.splunk.com/


 

 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users
 
 
 - --
   _  _ _  _ ___  _  _  _
  |Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Systems Programmer II
  |$| |__| |  | |__/ | \| _| |[EMAIL PROTECTED] - 973/972.0922 (2-0922)
  \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.6 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
 iD8DBQFHFQOomb+gadEcsb4RAq8MAKCYl7KY7EkOoipiOE4QVCeO0famfACgieWC
 +MdwAz4u2HjW/5d9WpFmrUU=
 =WEoJ
 -END PGP SIGNATURE-
 
 
 
 
 -
 This SF.net email is sponsored by: Splunk Inc.
 Still grepping through log files to find problems?  Stop.
 Now Search log events and configuration files using AJAX and a browser.
 Download your FREE copy of Splunk now  http://get.splunk.com/
 
 
 
 
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users

-- 
Arno Lehmann
IT-Service Lehmann
www.its-lehmann.de

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Verifying run of backups - script?

2007-10-16 Thread Jason Antman
Thanks to all for the advice. I hadn't even thought of the Nagios
passive check option. That sounds best for me - I'll look into it
tomorrow. I haven't done anything with passive checks and freshness
checking, but luckily I picked up the Nagios book - something good for
bedtime reading...

As to the Nagios check plugin for bacula, I installed bacula from the
bacula-mysql SuSE RPM. Unfortunately, the RPM didn't include the check
plugin, and I don't have the source to compile the plugin. I guess it's
time to look for a source RPM...

Thanks,
Jason

Arno Lehmann wrote:
 Hi,

 16.10.2007 20:32,, Ryan Novosielski wrote::
 There is also a Nagios plugin for Bacula.

  And to monitor if your jobs actually ran, use a Run After Job script
  to send passive check results to Nagios. The passive check should use
  freshness checking with a threshold that triggers when your jobs are
 late.

  Arno

 Michael Short wrote:
  To make sure a job ran, simply mash up a bash script (or
 php/python) and
  run an sql query for all jobs that started on a certain day. Then you
  could compile this in a single readable e-mail. Then add an admin job
  which runs the script at a specified time every day (preferably after
  your backups, so I'd give it a higher priority).
 
  Sincerely,
  -Michael Short
 
 
 
 
 
 
 -
  This SF.net email is sponsored by: Splunk Inc.
  Still grepping through log files to find problems?  Stop.
  Now Search log events and configuration files using AJAX and a
 browser.
  Download your FREE copy of Splunk now  http://get.splunk.com/
 
 
 
 
 
  ___
  Bacula-users mailing list
  Bacula-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/bacula-users





-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/




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



-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users