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
Plugins4394Themes and Skins11Add-ons743Documentation283Graphics 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
Network Connections, Stats and Bandwidth nagios_check_listening_port_linux
0.0 (0)
7.4K
RSS Feed
Newest Listings Updated Listings
Top Contributors
Julien DESMAREST (6)Yoann LAMY (6)Davide Lemma (4)deskwork_itunes142 (4)Marius (2)
See More
Newest Contributors
RavuAlHemio (1)sowoii (1)Nitatemic (1)cjdepaul (1)ixs (1)
See More

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

Privacy PolicyTerms of UseTrademarks
Home > André Dalle
AD

André Dalle

@adalle

User Stats

Member Since: July 15, 2015

Favorites0

Views

Projects0

No Projects Found
check_bacula.pl

Adapting for Postgres

I have this working well with Postgres. A couple minor changes from the previous suggested changes: $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 IS NOT NULL) AND ((EndTime >= '$date_stop')) GROUP BY Job.JobId, Job.JobStatus, Log.LogText;"; (EndTime >= as opposed to =) When there isn't a match, you don't get an array of 0's or nulls, but just an empty array. So I check for that: if ($#job_stats == -1) { @job_stats = (0,0,0,0) } This is the easiest fix; the rest of the code expects that array to exist, so I just set it to zeroes.

Reviewed 10 years ago

No Favorites Found

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

Privacy PolicyTerms of UseTrademarks
Home Browse Submit Profile