Nagios

pg_dump: aborting because of server version mismatch

Here’s something to be aware of. Update your PostgreSQL client on your Bacula client if it is used for backing up the Catalog. Ngaios just told me: FILE_AGE WARNING: /usr/backups/bacula/MyCatalog.dump is 45125 seconds old and 0 bytes I looked at the backup job from earlier today: 28-Dec 08:15 bacula-dir JobId 195194: shell command: run BeforeJob “/usr/local/bacula/make_catalog_backup.new MyCatalog” 28-Dec 08:15 bacula-dir JobId 195194: BeforeJob: pg_dump: server version: 9.4.0; pg_dump version: 9.3.5 28-Dec 08:15 bacula-dir […]

pg_dump: aborting because of server version mismatch Read More »

Monitoring backups via Nagios and a shell script

Backups are useless without restores. I’ve written a few posts about Nagios, my current monitoring tool of choice. Included with Nagios are a number of plugins and you can even write your own plugins. In this post, I’ll show you a shell script I wrote to make sure my backup files turn up where they should, when they should. In my case, these files are database backups, but the idea behind the script

Monitoring backups via Nagios and a shell script Read More »

Nagios plugin for pkg audit (replacing portaudit) on FreeBSD

I’m using FreeBSD 9.2 and Nagios 3.5.1. A few weeks ago I wrote about freebsd-update reminding you to upgrade your affected systems. Since then, freebsd-update has continued to send me false positives about upgrading. Suggestions have been made that I track down Colin Percival at BSDCan 2014, which starts in few days. However, I know at least four people have already arrived, two days before any official event, the first of which is

Nagios plugin for pkg audit (replacing portaudit) on FreeBSD Read More »

nagios – acknowledge a service problem – Send Notification default unchecked

When I acknowledge a service problem on Nagios, I do not want to send a notification that it has been acknowledge. This patch, against Nagios 3.5.1 changes the default from CHECKED to not checked. With credit to Marc Powell for his suggestion. After that initial success, I went one step further and supplied a default comment of ‘OK’. Acknowledging a service problem is now three clicks. The full patch is here.

nagios – acknowledge a service problem – Send Notification default unchecked Read More »

nagios plugin check_pgsql can’t handle all valid database names

I found a problem with the check_pgsql Nagios plugin last week. It can’t handle names such as freshports.org. It’s a valid database name, as witnessed here: $ psql -l | grep freshports freshports.old | dan | SQL_ASCII | C | C | freshports.org | dan | SQL_ASCII | C | C | But it doesn’t work: $ /usr/local/libexec/nagios/check_pgsql -H slocum -l www -d freshports.org check_pgsql: Database name is not valid – freshports.org Usage:

nagios plugin check_pgsql can’t handle all valid database names Read More »

different times despite running ntpd

Last week, while at EuroBSDCon in Malta, I noticed that one of my servers had the wrong time. It was Bacula who told me, through this message in one of the backup jobs: 28-Sep 21:59 nyi-fd JobId 144899: DIR and FD clocks differ by -5 seconds, FD automatically compensating Fixing the time I connected to all my systems, and ran date(1). One system was by 2 seconds, and another was off by 5

different times despite running ntpd Read More »

nagios check for Bacula Pool volumes

I’m thinking about a Nagios check to let me know the status of various Bacula pools. As in, how many volumes are left, versus the maximum number of volumes permitted in this pool. Here is the bconsole command I would use: And here’s the command line bit which might work: I’ll ponder this a bit longer, and decide if I really want this monitored.

nagios check for Bacula Pool volumes Read More »

nagios check_smartmon fails with SATA presented as SCSI devices

I’ve been using Nagios for a while. I use it to monitor many things, varying from disk space to disk temperature. One of the packages I use for this is net-mgmt/nagios-check_smartmon. This code is getting out of date it seems. According to the timestamp at the top of the file, the last time it was updated was 2006-03-24 10:30:20. So it’s not surprising that it’s failing to work properly on a few cases.

nagios check_smartmon fails with SATA presented as SCSI devices Read More »

nagios – check_ping CRITICAL – You need more args!!! Could not open pipe:

I’ve been moving some services around lately. A server is dying and I need to move stuff off it. Today I managed to move Bacula and Nagios onto a new server. After a short bit of struggle, I had just one service check that was failing: check_ping. Here’s the example: $ /usr/local/libexec/nagios/check_ping -H bast.example.org -w 3000.0,80% -c 5000.0,100% -p 1 CRITICAL – You need more args!!! Could not open pipe: Google searches did

nagios – check_ping CRITICAL – You need more args!!! Could not open pipe: Read More »

Scroll to Top