- Tail /var/log/maillog and trigger compilation
- Monitor in nagios (done while writing this)
- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
Advanced Search
Mon, Apr 6
Sun, Apr 5
Fri, Apr 3
Wed, Apr 1
Apr 1 14:03:22 router-002 kernel: carp: 2@vmx1: MASTER -> BACKUP (more frequent advertisement received) Apr 1 14:03:22 router-002 kernel: in_scrubprefix: err=65, prefix delete failed Apr 1 14:03:22 router-002 carp-ovh[98074]: Not MASTER -> exit
Tue, Mar 31
Mon, Mar 30
Mar 30 14:13:37 router-002 kernel: carp: 2@vmx1: BACKUP -> MASTER (master timed out) Mar 30 14:13:37 router-002 carp-ovh[76122]: Detected MAC on vmx1: 00:50:56:09:3c:f2 Mar 30 14:13:37 router-002 carp-ovh[76126]: Checking current state... Mar 30 14:13:37 router-002 carp-ovh[76130]: Checking IPs for MAC 00:50:56:09:3c:f2 Mar 30 14:13:37 router-002 carp-ovh[76134]: URL used: /dedicated/server/ns3173530.ip-51-210-99.eu/virtualMac/00:50:56:09:3c:f2/virtualAddress Mar 30 14:13:38 router-002 carp-ovh[76138]: OVH returned: ['178.32.70.110', '51.68.252.230'] Mar 30 14:13:38 router-002 carp-ovh[76142]: VIP is already on correct MAC -> nothing to do
When router-003 (The MASTER) become unavailable :
Sun, Mar 29
Wed, Mar 25
Tue, Mar 24
The script to test if we can access to the OVH credentials (application_key, application_secret, consumer_key):
The script to test the connection to Vault, using a YAML configuration file that tells the secretsmith client how to connect to Vault :
Mon, Mar 23
Software has been renamed to Redpanda Connect:
Sun, Mar 22
Ah, that's now what we need, nice for the script!
The file /usr/local/etc/devd/carp.conf :
You can directly use variables in the action to pass interface and state with $subsystem and $type
notify 0 {
match "system" "CARP";
match "subsystem" "[0-9]+@[0-9a-z.]+";
match "type" "(MASTER|BACKUP)";
action "/usr/local/scripts/carp-test.sh";
};For all CARP external documentation, I think I've found the threshold where information is outdated in that man page:
According carp(4) (man carp) examples section, the name has changed.
@dereckson I first tried to redefine the devd rule by matching specific IFNET event types such as LINK_UP, LINK_DOWN, UP and DOWN, but none of them were triggered during CARP state changes in my tests.
notify 0 {
match "system" "IFNET";
match "subsystem" "vmx1";
action "logger CARP state change detected";
};A dedicated devd file was placed in /usr/local/etc/devd because this directory is usually used for custom configurations added by administrators, while /etc/devd contains the default system rules from FreeBSD. It makes the setup cleaner, avoids mixing custom logic with system configuration, and makes future maintenance or upgrades easier.
Sat, Mar 21
Fri, Mar 20
OVH API credentials published to apps/network/carp-hyper-001-switch path,
under application_key, application_secret, consumer_key keys.
Thu, Mar 19
Wed, Mar 18
Tue, Mar 17
If we trigger the script through devd, we can provide a .conf configuration file in /usr/local/etc/devd.