33 lines
951 B
Markdown
33 lines
951 B
Markdown
# OPNSense Prometheus exporter
|
|
|
|
I've configures OPNSense with High Availability settings using 2 servers.
|
|
|
|
* https://docs.opnsense.org/manual/hacarp.html
|
|
* https://docs.opnsense.org/manual/how-tos/carp.html
|
|
|
|
So I've 2 servers: *MAIN* and *BACKUP*, in normal situation *MAIN* server
|
|
is expected to be `active` and the *BACKUP* server to be in `hot_standby` state.
|
|
|
|
|
|
The initial needs was to be able to make sure that *BACKUP* server is ready (hot standby)
|
|
to get the main server role with the `active` state at any time.
|
|
|
|
> Unfortunately I've not found a proper configuration to call OPNSense HTTP API over
|
|
> opnvpn on backup server using blackbox configuratoin. That why I've started to develop
|
|
> this exporter install on a server on the LAN to be able to resquest both OPNSense servers.
|
|
|
|
## Metrics
|
|
|
|
This exporter gives following metrics:
|
|
|
|
* ``:
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
> *Note*: Most updated documentation from command line !
|
|
|
|
```
|
|
opnsense-exporter --help
|
|
```
|