forked from qgmgit/qgm-check_unifi
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathunifi.cfg
More file actions
23 lines (19 loc) · 917 Bytes
/
unifi.cfg
File metadata and controls
23 lines (19 loc) · 917 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# script to list all UniFi devices from the given controller and get some infos https://github.com/binarybear-de/cmk_check_unifi-controller
# needs to be placed in /etc/check_mk as unifi.cfg by default
# Settings for the controller-binding
USERNAME="someuser"
PASSWORD="somepass"
BASEURL=https://demo.ui.com
# additional curl options
# - insecure-flag is needed if a self-signed certificate is used and is not imported in linux - usually okay if controller is running locally
# - enforce a specific version of TLS
CURLOPTS="--insecure --tlsv1.2 -H \"Content-Type: application/json\""
# mapping of device's states to check_mk statuses
# STATUS: 0 = OK, 1 = WARN, 2 = CRIT, 3 = UNKN
STATUS_PROVISIONING=1
STATUS_UPGRADING=1
STATUS_UPGRADABLE=0
STATUS_HEARTBEAT_MISSED=1
STATUS_NOBACKUP=1
# adds site name in the checkmk service per device to allow multiple names with same name on different sites
USE_SITE_PREFIX=0