Checkmk Extensions to monitor OPNsense using the API. The OPNsense Special Agent colltects data from the API enabling Checkmk to discover and monitor different aspects of OPNsense.
- OPNsense Firmware - Checks if updates are available and ensurche updates have ben checked for.
- OPNsense Business - Checks the remaining runtime of the business license.
- CARP - Checks the status of CARP and the VirtualIPs.
- VirtualIP - Can be configured to discover and check the status of individual VirtualIPs. Optionaly groubed by Interface.
- Gateway - Checks status and monitoring of gateways with monitoring enabled.
For the best development experience use VSCode with the Remote Containers extension. This maps your workspace into a checkmk docker container giving you access to the python environment and libraries the installed extension has.
The following directories in this repo are getting mapped into the Checkmk site.
$OMD_ROOT/local/lib/python3/cmk_addons/plugins/$PKGNAME
agent_based
,graphing
,lib
,libexec
,rulesets
andserver_side_calls
are mapped intolocal/lib/python3/cmk_addons/plugins/opnsense
To build the package hit Crtl
+Shift
+B
to execute the build task in VSCode.
pytest
can be executed from the terminal or the test ui.
The provided Github Workflows run pytest
and flake8
in the same checkmk docker conatiner as vscode.