{"repo":"nbuchwitz/check_opnsense","free":true,"listed":false,"github":"https://github.com/nbuchwitz/check_opnsense","clone":"git clone https://github.com/nbuchwitz/check_opnsense.git","description":"Check script for opnsense firewall","language":"Python","stars":21,"topics":["hacktoberfest","monitoring","python"],"license":"GPL-2.0","category":"analytics","readme_excerpt":"check opnsense Icinga check command for OPNsense firewall monitoring Requirements This check command depends on the following python modules: enum requests argparse Installation on Debian / Ubuntu Installation on Rocky / Alma Linux 9 Installation on FreeBSD Usage Add a check command definition and a service to Icinga2. Use ./check opnsense.py -h to get instructions: Create API credentials Go to the user manager and select the user you want to use for API access. Click the + icon in the API keys section to add a new API key, which triggers a download of a tex file containing the key and secret. This file should look similar to this one: For further information have a look at the opnsense documentation. Examples Check for updates Check ipsec tunnel status Check wireguard tunnel status Check available disk space Options: -w and -c define maximum disk usage i.e. -w 80 will warn if disk usage exceeds 80% -f will not check i.e. -f / will not check the root filesystem. Check memory Options: -w and -c define maximum memory usage i.e. -w 80 will warn if memory usage exceeds 80% Opnsense systems without ZFS , not using ARC: Opnsense systems with ZFS , using ARC: Check swap Options: -w and -c define maximum memory usage i.e. -w 80 will warn if memory usage exceeds 80%","default_branch":null,"files":null,"tree":[],"storefront":"/r/nbuchwitz","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/nbuchwitz/check_opnsense/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}