OPNsense Forum

English Forums => Development and Code Review => Topic started by: elcocoloco on January 14, 2021, 11:44:41 AM

Title: Get CARP VIP status (Master / Slave) via API
Post by: elcocoloco on January 14, 2021, 11:44:41 AM
Hi  :D

Does anyone know if it is possible to get the status (Master / Slave) of a Virtual IP on a CARP 'interface via API, that's the only thing missing for me
Title: Re: Get CARP VIP status (Master / Slave) via API
Post by: elcocoloco on February 04, 2021, 11:37:40 AM
Quote from: elcocoloco on January 14, 2021, 11:44:41 AM
Hi  :D

Does anyone know if it is possible to get the status (Master / Slave) of a Virtual IP on a CARP 'interface via API, that's the only thing missing for me

Solved it for now, using monit

- carp_status_change --> enabled
- /api/monit/status/get/html
Title: Re: Get CARP VIP status (Master / Slave) via API
Post by: elcocoloco on February 05, 2021, 09:41:00 AM
While were at it, to monitor if Sensei service is running

/api/sensei/engine/status