Project

General

Profile

Actions

Feature #7895

closed

Add a script for CARP monitoring to NRPE

Added by Stéphane Lapie about 7 years ago. Updated almost 5 years ago.

Status:
Resolved
Priority:
Normal
Category:
NRPE
Target version:
-
Start date:
09/27/2017
Due date:
% Done:

100%

Estimated time:
Plus Target Version:

Description

I have deployed several CARP clusters at work, but I realized there is no real good way to monitor CARP status :
  • SNMP does not provide MIBs for checking on CARP, and IF-MIB do not provide enough information to infer whether an interface is "MASTER but should be BACKUP" or the opposite.
  • Default NRPE plugins do not provide any good information
  • ifconfig is the only reliable source of information

Therefore, I decided to use NRPEv2 and to create a custom script to check the NIC CARP status.
I don't mind contributing it to pfSense, but I was not sure how to integrate it in the new package repository.

I wanted first to make a system patch that would create the file in /usr/local/libexec/nagios, but the patching system is not appropriate for "adding new files", since it will view the diff as always both applicable/removable.


Files

check_carp_freebsd.sh (3.88 KB) check_carp_freebsd.sh Stéphane Lapie, 09/27/2017 05:14 AM
check_carp_freebsd.sh (3.5 KB) check_carp_freebsd.sh Added "exit $1" command after reporting error Stéphane Lapie, 10/02/2017 03:53 AM
check_carp_freebsd.sh (4.51 KB) check_carp_freebsd.sh Added support for multiple VHIDs per NIC Stéphane Lapie, 10/17/2017 11:10 AM
Actions

Also available in: Atom PDF