Add useful lookups for switchs interfaces
This commit is contained in:
parent
52124d2cad
commit
21fed6ae3f
1 changed files with 66 additions and 39 deletions
|
@ -1,4 +1,6 @@
|
||||||
# {{ ansible_managed }}
|
---
|
||||||
|
{{ ansible_managed | comment }}
|
||||||
|
|
||||||
# TODOlist :
|
# TODOlist :
|
||||||
# - Faire fonctionner le monitoring des switchs défini ici
|
# - Faire fonctionner le monitoring des switchs défini ici
|
||||||
# * Configurer tous les switchs avec un compte SNMPv3
|
# * Configurer tous les switchs avec un compte SNMPv3
|
||||||
|
@ -77,11 +79,12 @@ eatonups:
|
||||||
auth:
|
auth:
|
||||||
community: public
|
community: public
|
||||||
|
|
||||||
|
|
||||||
procurve_switch:
|
procurve_switch:
|
||||||
walk:
|
walk:
|
||||||
- 1.3.6.1.2.1.31.1.1.1.10
|
- 1.3.6.1.2.1.31.1.1.1.10
|
||||||
- 1.3.6.1.2.1.31.1.1.1.6
|
- 1.3.6.1.2.1.31.1.1.1
|
||||||
|
- 1.3.6.1.2.1.2.2.1.2
|
||||||
|
- 1.3.6.1.2.1.31.1.1.1.18
|
||||||
get:
|
get:
|
||||||
- 1.3.6.1.2.1.1.3.0
|
- 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.5.0
|
||||||
|
@ -90,36 +93,59 @@ procurve_switch:
|
||||||
- name: sysUpTime
|
- name: sysUpTime
|
||||||
oid: 1.3.6.1.2.1.1.3
|
oid: 1.3.6.1.2.1.1.3
|
||||||
type: gauge
|
type: gauge
|
||||||
help: The time (in hundredths of a second) since the network management portion
|
help: The time (in hundredths of a second) since the network management
|
||||||
of the system was last re-initialized. - 1.3.6.1.2.1.1.3
|
portion of the system was last re-initialized. - 1.3.6.1.2.1.1.3
|
||||||
- name: sysName
|
- name: sysName
|
||||||
oid: 1.3.6.1.2.1.1.5
|
oid: 1.3.6.1.2.1.1.5
|
||||||
type: DisplayString
|
type: DisplayString
|
||||||
help: An administratively-assigned name for this managed node - 1.3.6.1.2.1.1.5
|
help: An administratively-assigned name for this managed node
|
||||||
|
- 1.3.6.1.2.1.1.5
|
||||||
- name: sysLocation
|
- name: sysLocation
|
||||||
oid: 1.3.6.1.2.1.1.6
|
oid: 1.3.6.1.2.1.1.6
|
||||||
type: DisplayString
|
type: DisplayString
|
||||||
help: The physical location of this node (e.g., 'telephone closet, 3rd floor')
|
help: The physical location of this node (e.g., 'telephone closet, 3rd
|
||||||
- 1.3.6.1.2.1.1.6
|
floor') - 1.3.6.1.2.1.1.6
|
||||||
- name: ifHCOutOctets
|
- name: ifHCOutOctets
|
||||||
oid: 1.3.6.1.2.1.31.1.1.1.10
|
oid: 1.3.6.1.2.1.31.1.1.1.10
|
||||||
type: counter
|
type: counter
|
||||||
help: The total number of octets transmitted out of the interface, including framing
|
help: The total number of octets transmitted out of the interface,
|
||||||
characters - 1.3.6.1.2.1.31.1.1.1.10
|
including framing characters - 1.3.6.1.2.1.31.1.1.1.10
|
||||||
indexes:
|
indexes:
|
||||||
- labelname: ifIndex
|
- labelname: ifIndex
|
||||||
type: gauge
|
type: gauge
|
||||||
|
lookups:
|
||||||
|
- labels:
|
||||||
|
- ifIndex
|
||||||
|
labelname: ifDescr
|
||||||
|
oid: 1.3.6.1.2.1.2.2.1.2
|
||||||
|
type: DisplayString
|
||||||
|
- labels:
|
||||||
|
- ifIndex
|
||||||
|
labelname: ifName
|
||||||
|
oid: 1.3.6.1.2.1.31.1.1.1.1
|
||||||
|
type: DisplayString
|
||||||
- name: ifHCInOctets
|
- name: ifHCInOctets
|
||||||
oid: 1.3.6.1.2.1.31.1.1.1.6
|
oid: 1.3.6.1.2.1.31.1.1.1.6
|
||||||
type: counter
|
type: counter
|
||||||
help: The total number of octets received on the interface, including framing
|
help: The total number of octets received on the interface, including
|
||||||
characters - 1.3.6.1.2.1.31.1.1.1.6
|
framing characters - 1.3.6.1.2.1.31.1.1.1.6
|
||||||
indexes:
|
indexes:
|
||||||
- labelname: ifIndex
|
- labelname: ifIndex
|
||||||
type: gauge
|
type: gauge
|
||||||
version: 3
|
lookups:
|
||||||
|
- labels:
|
||||||
|
- ifIndex
|
||||||
|
labelname: ifDescr
|
||||||
|
oid: 1.3.6.1.2.1.2.2.1.2
|
||||||
|
type: DisplayString
|
||||||
|
- labels:
|
||||||
|
- ifIndex
|
||||||
|
labelname: ifName
|
||||||
|
oid: 1.3.6.1.2.1.31.1.1.1.1
|
||||||
|
type: DisplayString
|
||||||
|
version: 2
|
||||||
auth:
|
auth:
|
||||||
username: prometheus
|
community: "{{ snmp_switch_community }}"
|
||||||
|
|
||||||
ubiquiti_unifi:
|
ubiquiti_unifi:
|
||||||
walk:
|
walk:
|
||||||
|
@ -385,3 +411,4 @@ ubiquiti_unifi:
|
||||||
auth_protocol: SHA
|
auth_protocol: SHA
|
||||||
priv_protocol: AES
|
priv_protocol: AES
|
||||||
priv_password: {{ snmp_unifi_password }}
|
priv_password: {{ snmp_unifi_password }}
|
||||||
|
...
|
||||||
|
|
Loading…
Reference in a new issue