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

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
Plugins4391Themes and Skins12Add-ons741Documentation283Graphics 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 Nagios XI Group Creation Tool
3.0 (1)
108K
RSS Feed
Newest Listings Updated Listings
Top Contributors
Julien DESMAREST (6)LAMY (6)Davide Lemma (4)deskwork_itunes142 (4)Claudio Kuenzler (2)
See More
Newest Contributors
Nitatemic (1)cjdepaul (1)ixs (1)messefreeze (2)apham (1)
See More

Copyright © 2009-2025 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)
7.6K
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 12 years ago

No Favorites Found

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

Privacy PolicyTerms of UseTrademarks
Home Browse Submit Profile