Nagios Exchange Nagios Exchange
  • Home
  • Directory
  • Library
  • Support
  • About
  • Submit Feedback

Advanced Search

Build precise queries to find exactly what you need

Search Logic

Select compatible versions

Press ESC to close

Sign In Sign Up
  • Home
  • Directory
  • Library
  • Support
  • About
  • Submit Feedback
Plugins4416Themes and Skins13Add-ons768Graphics and Logos36View All Categories
LinuxSecuritySNMPFile SystemCloud
New Listings Recently Updated Listings Most Favored Listings Most Popular Listings Most Rated Listings Most Reviewed Listings
Random Project
Configuration Wizards Windows Server Monitoring Wizard
0.0 (0)
161.3K
RSS Feed
Newest Listings Updated Listings
Top Contributors
deskwork_itunes142 (4)John Shorey (4)Chad Columbus (3)Marcin Bednarski (3)Nick Overstreet (3)
See More
Newest Contributors
Seiichi YAMAMOTO (1)codemasterydevelopers (1)sunilka (1)davidb (1)faddom (1)
See More

Copyright © 2009-2026 Nagios Enterprises, LLC. All rights reserved.

Privacy PolicyTerms of UseTrademarks
Home > Steve
S

Steve

@svarco

User Stats

Member Since: January 7, 2014

Favorites0

Views0

Projects1

check_bacula.py
Bacula
check_bacula.py
This check script/plugin checks all backup jobs in a given timeframe (default: 2 days) and report an error or warning if one of the jobs…
0.0 (0)
8K
0
Steve
GPL
check_bacula.pl

bugfix?

On our bacula Version Version: 5.0.0 (26 January 2010) in the mysql Database each line of the log messages is stored in a new row. This leads to confusion with the sql_query in check_bacula.pl, as it is joined with the Log table of the bacula database, resulting in returning a wrong number of successful jobs. Here is the patch file we created: check_bacula.patch -------------------------------------------------- *************** *** 181,187 **** } $date_start = get_now(); ! $sql_query = "SELECT SUM(JobErrors) AS 'errors', COUNT(*) AS 'count', Job.JobId, Job.JobStatus, Log.LogText FROM Job LEFT JOIN Log on Job.JobId = Log.JobId WHERE (Name='$opt_job') AND (JobStatus='T') AND (EndTime '') AND ((EndTime = '$date_stop'));"; my @job_stats = sql_exec(); $errors = $job_stats[0]; $count = $job_stats[1]; --- 181,205 ---- } $date_start = get_now(); ! $sql_query = " ! SELECT ! SUM(JobErrors) AS 'errors', ! COUNT(*) AS 'count', ! j.JobId, ! j.JobStatus, ! l.LogText ! FROM ! Job j LEFT JOIN Log l on j.JobId = l.JobId and l.LogId = ( ! select max(logid) ! from bacula.Log l2 ! where l2.jobid = j.jobid ! ) ! WHERE ! (Name='$opt_job') ! AND (JobStatus='T') ! AND (EndTime '') ! AND (EndTime = '$date_stop'); "; my @job_stats = sql_exec(); $errors = $job_stats[0]; $count = $job_stats[1]; --------------------------------------------------

Reviewed 13 years ago

No Favorites Found

Copyright © 2009-2026 Nagios Enterprises, LLC. All rights reserved.

Privacy PolicyTerms of UseTrademarks
Home Browse Submit Profile