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 […]

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

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

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

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

nagios plugin check_pgsql can’t handle all valid database names 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

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

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

Scroll to Top