OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • Development and Code Review (Moderator: fabian) »
  • Get CARP VIP status (Master / Slave) via API
« previous next »
  • Print
Pages: [1]

Author Topic: Get CARP VIP status (Master / Slave) via API  (Read 2912 times)

elcocoloco

  • Newbie
  • *
  • Posts: 24
  • Karma: 2
    • View Profile
Get CARP VIP status (Master / Slave) via API
« 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
Logged

elcocoloco

  • Newbie
  • *
  • Posts: 24
  • Karma: 2
    • View Profile
Re: Get CARP VIP status (Master / Slave) via API
« Reply #1 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
Logged

elcocoloco

  • Newbie
  • *
  • Posts: 24
  • Karma: 2
    • View Profile
Re: Get CARP VIP status (Master / Slave) via API
« Reply #2 on: February 05, 2021, 09:41:00 am »
While were at it, to monitor if Sensei service is running

/api/sensei/engine/status
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • Development and Code Review (Moderator: fabian) »
  • Get CARP VIP status (Master / Slave) via API
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2