check_keepalived

command
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2023 License: MIT Imports: 8 Imported by: 0

README

check_keepalived

Uses D-Bus to check the state of a local keepalived process. The keepalived must be configured to have D-Bus enabled:

global_defs {
  enable_dbus
}

Options

--address, -a

D-Bus address to scan for VRRP instances. Defaults to org.keepalived.Vrrp1.

Examples

Check default local keepalived with two VRRP instances:

check_dhcpv6 --interface eno1

--debug

Turn on debug logging.

[!NOTE] Do not enable this when running actual checks.

Example

$ check_keepalived --address org.keepalived.Vrrp2 --debug
DEBU[0000] Recursive scanning for VRRP instances on org.keepalived.Vrrp2
DEBU[0000] Loading org.keepalived.Vrrp1.Instance         path=/org/keepalived/Vrrp1/Instance/enp7s0/51/IPv4
DEBU[0000] Status: vrrp51(Master)                        path=/org/keepalived/Vrrp1/Instance/enp7s0/51/IPv4
DEBU[0000] Loading org.keepalived.Vrrp1.Instance         path=/org/keepalived/Vrrp1/Instance/enp7s0/52/IPv4
DEBU[0000] Status: vrrp52(Master)                        path=/org/keepalived/Vrrp1/Instance/enp7s0/52/IPv4
DEBU[0000] Faulty: []
DEBU[0000] Backup: []
DEBU[0000] Master: [vrrp51(Master) vrrp52(Master)]
DEBU[0000] Unknown: []
OK - Master: vrrp51,vrrp52 | 'backup'=0;;;; 'faulty'=0;;;; 'master'=2;;;; 'time'=3ms;;;; 'unknown'=0;;;;

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL