297 lines
8.2 KiB
Django/Jinja
297 lines
8.2 KiB
Django/Jinja
# {{ ansible_managed }}
|
|
# TODOlist :
|
|
# - Faire fonctionner le monitoring des switchs défini ici
|
|
# * Configurer tous les switchs avec un compte SNMPv3
|
|
# * Mettre l'inventaire des switchs dans Ansible
|
|
# - Optimiser les règles pour les bornes Unifi,
|
|
# on pourrait indexer avec les SSID
|
|
|
|
procurve_switch:
|
|
walk:
|
|
- 1.3.6.1.2.1.31.1.1.1.10
|
|
- 1.3.6.1.2.1.31.1.1.1.6
|
|
get:
|
|
- 1.3.6.1.2.1.1.3.0
|
|
- 1.3.6.1.2.1.1.5.0
|
|
- 1.3.6.1.2.1.1.6.0
|
|
metrics:
|
|
- name: sysUpTime
|
|
oid: 1.3.6.1.2.1.1.3
|
|
type: gauge
|
|
help: The time (in hundredths of a second) since the network management portion
|
|
of the system was last re-initialized. - 1.3.6.1.2.1.1.3
|
|
- name: sysName
|
|
oid: 1.3.6.1.2.1.1.5
|
|
type: DisplayString
|
|
help: An administratively-assigned name for this managed node - 1.3.6.1.2.1.1.5
|
|
- name: sysLocation
|
|
oid: 1.3.6.1.2.1.1.6
|
|
type: DisplayString
|
|
help: The physical location of this node (e.g., 'telephone closet, 3rd floor')
|
|
- 1.3.6.1.2.1.1.6
|
|
- name: ifHCOutOctets
|
|
oid: 1.3.6.1.2.1.31.1.1.1.10
|
|
type: counter
|
|
help: The total number of octets transmitted out of the interface, including framing
|
|
characters - 1.3.6.1.2.1.31.1.1.1.10
|
|
indexes:
|
|
- labelname: ifIndex
|
|
type: gauge
|
|
- name: ifHCInOctets
|
|
oid: 1.3.6.1.2.1.31.1.1.1.6
|
|
type: counter
|
|
help: The total number of octets received on the interface, including framing
|
|
characters - 1.3.6.1.2.1.31.1.1.1.6
|
|
indexes:
|
|
- labelname: ifIndex
|
|
type: gauge
|
|
version: 3
|
|
auth:
|
|
username: prometheus
|
|
|
|
ubiquiti_unifi:
|
|
walk:
|
|
- 1.3.6.1.4.1.41112.1.6
|
|
get:
|
|
- 1.3.6.1.2.1.1.5.0
|
|
- 1.3.6.1.2.1.1.6.0
|
|
metrics:
|
|
# Pour faire une WifiMap un jour, on peut entrer la location dans la conf des bornes
|
|
# - name: sysLocation
|
|
# oid: 1.3.6.1.2.1.1.6
|
|
# type: DisplayString
|
|
# help: The physical location of this node (e.g., 'telephone closet, 3rd floor')
|
|
# - 1.3.6.1.2.1.1.6
|
|
- name: unifiVapIndex
|
|
oid: 1.3.6.1.4.1.41112.1.6.1.2.1.1
|
|
type: gauge
|
|
help: ' - 1.3.6.1.4.1.41112.1.6.1.2.1.1'
|
|
indexes:
|
|
- labelname: unifiVapIndex
|
|
type: gauge
|
|
- name: unifiVapChannel
|
|
oid: 1.3.6.1.4.1.41112.1.6.1.2.1.4
|
|
type: gauge
|
|
help: ' - 1.3.6.1.4.1.41112.1.6.1.2.1.4'
|
|
indexes:
|
|
- labelname: unifiVapIndex
|
|
type: gauge
|
|
- name: unifiVapEssId
|
|
oid: 1.3.6.1.4.1.41112.1.6.1.2.1.6
|
|
type: DisplayString
|
|
help: ' - 1.3.6.1.4.1.41112.1.6.1.2.1.6'
|
|
indexes:
|
|
- labelname: unifiVapIndex
|
|
type: gauge
|
|
- name: unifiVapName
|
|
oid: 1.3.6.1.4.1.41112.1.6.1.2.1.7
|
|
type: DisplayString
|
|
help: ' - 1.3.6.1.4.1.41112.1.6.1.2.1.7'
|
|
indexes:
|
|
- labelname: unifiVapIndex
|
|
type: gauge
|
|
- name: unifiVapNumStations
|
|
oid: 1.3.6.1.4.1.41112.1.6.1.2.1.8
|
|
type: gauge
|
|
help: ' - 1.3.6.1.4.1.41112.1.6.1.2.1.8'
|
|
indexes:
|
|
- labelname: unifiVapIndex
|
|
type: gauge
|
|
- name: unifiVapRadio
|
|
oid: 1.3.6.1.4.1.41112.1.6.1.2.1.9
|
|
type: DisplayString
|
|
help: ' - 1.3.6.1.4.1.41112.1.6.1.2.1.9'
|
|
indexes:
|
|
- labelname: unifiVapIndex
|
|
type: gauge
|
|
- name: unifiVapRxBytes
|
|
oid: 1.3.6.1.4.1.41112.1.6.1.2.1.10
|
|
type: counter
|
|
help: ' - 1.3.6.1.4.1.41112.1.6.1.2.1.10'
|
|
indexes:
|
|
- labelname: unifiVapIndex
|
|
type: gauge
|
|
- name: unifiVapRxCrypts
|
|
oid: 1.3.6.1.4.1.41112.1.6.1.2.1.11
|
|
type: counter
|
|
help: ' - 1.3.6.1.4.1.41112.1.6.1.2.1.11'
|
|
indexes:
|
|
- labelname: unifiVapIndex
|
|
type: gauge
|
|
- name: unifiVapRxDropped
|
|
oid: 1.3.6.1.4.1.41112.1.6.1.2.1.12
|
|
type: counter
|
|
help: ' - 1.3.6.1.4.1.41112.1.6.1.2.1.12'
|
|
indexes:
|
|
- labelname: unifiVapIndex
|
|
type: gauge
|
|
- name: unifiVapRxErrors
|
|
oid: 1.3.6.1.4.1.41112.1.6.1.2.1.13
|
|
type: counter
|
|
help: ' - 1.3.6.1.4.1.41112.1.6.1.2.1.13'
|
|
indexes:
|
|
- labelname: unifiVapIndex
|
|
type: gauge
|
|
- name: unifiVapRxFrags
|
|
oid: 1.3.6.1.4.1.41112.1.6.1.2.1.14
|
|
type: counter
|
|
help: ' - 1.3.6.1.4.1.41112.1.6.1.2.1.14'
|
|
indexes:
|
|
- labelname: unifiVapIndex
|
|
type: gauge
|
|
- name: unifiVapRxPackets
|
|
oid: 1.3.6.1.4.1.41112.1.6.1.2.1.15
|
|
type: counter
|
|
help: ' - 1.3.6.1.4.1.41112.1.6.1.2.1.15'
|
|
indexes:
|
|
- labelname: unifiVapIndex
|
|
type: gauge
|
|
- name: unifiVapTxBytes
|
|
oid: 1.3.6.1.4.1.41112.1.6.1.2.1.16
|
|
type: counter
|
|
help: ' - 1.3.6.1.4.1.41112.1.6.1.2.1.16'
|
|
indexes:
|
|
- labelname: unifiVapIndex
|
|
type: gauge
|
|
- name: unifiVapTxDropped
|
|
oid: 1.3.6.1.4.1.41112.1.6.1.2.1.17
|
|
type: counter
|
|
help: ' - 1.3.6.1.4.1.41112.1.6.1.2.1.17'
|
|
indexes:
|
|
- labelname: unifiVapIndex
|
|
type: gauge
|
|
- name: unifiVapTxErrors
|
|
oid: 1.3.6.1.4.1.41112.1.6.1.2.1.18
|
|
type: counter
|
|
help: ' - 1.3.6.1.4.1.41112.1.6.1.2.1.18'
|
|
indexes:
|
|
- labelname: unifiVapIndex
|
|
type: gauge
|
|
- name: unifiVapTxPackets
|
|
oid: 1.3.6.1.4.1.41112.1.6.1.2.1.19
|
|
type: counter
|
|
help: ' - 1.3.6.1.4.1.41112.1.6.1.2.1.19'
|
|
indexes:
|
|
- labelname: unifiVapIndex
|
|
type: gauge
|
|
- name: unifiVapTxRetries
|
|
oid: 1.3.6.1.4.1.41112.1.6.1.2.1.20
|
|
type: counter
|
|
help: ' - 1.3.6.1.4.1.41112.1.6.1.2.1.20'
|
|
indexes:
|
|
- labelname: unifiVapIndex
|
|
type: gauge
|
|
- name: unifiVapTxPower
|
|
oid: 1.3.6.1.4.1.41112.1.6.1.2.1.21
|
|
type: gauge
|
|
help: ' - 1.3.6.1.4.1.41112.1.6.1.2.1.21'
|
|
indexes:
|
|
- labelname: unifiVapIndex
|
|
type: gauge
|
|
- name: unifiVapUp
|
|
oid: 1.3.6.1.4.1.41112.1.6.1.2.1.22
|
|
type: gauge
|
|
help: ' - 1.3.6.1.4.1.41112.1.6.1.2.1.22'
|
|
indexes:
|
|
- labelname: unifiVapIndex
|
|
type: gauge
|
|
- name: unifiVapUsage
|
|
oid: 1.3.6.1.4.1.41112.1.6.1.2.1.23
|
|
type: DisplayString
|
|
help: guest or regular user - 1.3.6.1.4.1.41112.1.6.1.2.1.23
|
|
indexes:
|
|
- labelname: unifiVapIndex
|
|
type: gauge
|
|
- name: unifiIfIndex
|
|
oid: 1.3.6.1.4.1.41112.1.6.2.1.1.1
|
|
type: gauge
|
|
help: ' - 1.3.6.1.4.1.41112.1.6.2.1.1.1'
|
|
indexes:
|
|
- labelname: unifiIfIndex
|
|
type: gauge
|
|
- name: unifiIfName
|
|
oid: 1.3.6.1.4.1.41112.1.6.2.1.1.5
|
|
type: DisplayString
|
|
help: ' - 1.3.6.1.4.1.41112.1.6.2.1.1.5'
|
|
indexes:
|
|
- labelname: unifiIfIndex
|
|
type: gauge
|
|
- name: unifiIfRxBytes
|
|
oid: 1.3.6.1.4.1.41112.1.6.2.1.1.6
|
|
type: counter
|
|
help: ' - 1.3.6.1.4.1.41112.1.6.2.1.1.6'
|
|
indexes:
|
|
- labelname: unifiIfIndex
|
|
type: gauge
|
|
- name: unifiIfRxDropped
|
|
oid: 1.3.6.1.4.1.41112.1.6.2.1.1.7
|
|
type: counter
|
|
help: ' - 1.3.6.1.4.1.41112.1.6.2.1.1.7'
|
|
indexes:
|
|
- labelname: unifiIfIndex
|
|
type: gauge
|
|
- name: unifiIfRxError
|
|
oid: 1.3.6.1.4.1.41112.1.6.2.1.1.8
|
|
type: counter
|
|
help: ' - 1.3.6.1.4.1.41112.1.6.2.1.1.8'
|
|
indexes:
|
|
- labelname: unifiIfIndex
|
|
type: gauge
|
|
- name: unifiIfRxMulticast
|
|
oid: 1.3.6.1.4.1.41112.1.6.2.1.1.9
|
|
type: counter
|
|
help: ' - 1.3.6.1.4.1.41112.1.6.2.1.1.9'
|
|
indexes:
|
|
- labelname: unifiIfIndex
|
|
type: gauge
|
|
- name: unifiIfRxPackets
|
|
oid: 1.3.6.1.4.1.41112.1.6.2.1.1.10
|
|
type: counter
|
|
help: ' - 1.3.6.1.4.1.41112.1.6.2.1.1.10'
|
|
indexes:
|
|
- labelname: unifiIfIndex
|
|
type: gauge
|
|
- name: unifiIfTxBytes
|
|
oid: 1.3.6.1.4.1.41112.1.6.2.1.1.12
|
|
type: counter
|
|
help: ' - 1.3.6.1.4.1.41112.1.6.2.1.1.12'
|
|
indexes:
|
|
- labelname: unifiIfIndex
|
|
type: gauge
|
|
- name: unifiIfTxDropped
|
|
oid: 1.3.6.1.4.1.41112.1.6.2.1.1.13
|
|
type: counter
|
|
help: ' - 1.3.6.1.4.1.41112.1.6.2.1.1.13'
|
|
indexes:
|
|
- labelname: unifiIfIndex
|
|
type: gauge
|
|
- name: unifiIfTxError
|
|
oid: 1.3.6.1.4.1.41112.1.6.2.1.1.14
|
|
type: counter
|
|
help: ' - 1.3.6.1.4.1.41112.1.6.2.1.1.14'
|
|
indexes:
|
|
- labelname: unifiIfIndex
|
|
type: gauge
|
|
- name: unifiIfTxPackets
|
|
oid: 1.3.6.1.4.1.41112.1.6.2.1.1.15
|
|
type: counter
|
|
help: ' - 1.3.6.1.4.1.41112.1.6.2.1.1.15'
|
|
indexes:
|
|
- labelname: unifiIfIndex
|
|
type: gauge
|
|
- name: unifiApSystemModel
|
|
oid: 1.3.6.1.4.1.41112.1.6.3.3
|
|
type: DisplayString
|
|
help: ' - 1.3.6.1.4.1.41112.1.6.3.3'
|
|
- name: unifiApSystemUptime
|
|
oid: 1.3.6.1.4.1.41112.1.6.3.5
|
|
type: counter
|
|
help: ' - 1.3.6.1.4.1.41112.1.6.3.5'
|
|
version: 3
|
|
auth:
|
|
security_level: authPriv
|
|
username: snmp_prometheus
|
|
password: {{ snmp_unifi_password }}
|
|
auth_protocol: SHA
|
|
priv_protocol: AES
|
|
priv_password: {{ snmp_unifi_password }}
|