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,49 +79,73 @@ 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
|
||||||
- 1.3.6.1.2.1.1.6.0
|
- 1.3.6.1.2.1.1.6.0
|
||||||
metrics:
|
metrics:
|
||||||
- name: sysUpTime
|
- name: sysUpTime
|
||||||
oid: 1.3.6.1.2.1.1.3
|
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
|
type: gauge
|
||||||
- name: ifHCInOctets
|
help: The time (in hundredths of a second) since the network management
|
||||||
oid: 1.3.6.1.2.1.31.1.1.1.6
|
portion of the system was last re-initialized. - 1.3.6.1.2.1.1.3
|
||||||
type: counter
|
- name: sysName
|
||||||
help: The total number of octets received on the interface, including framing
|
oid: 1.3.6.1.2.1.1.5
|
||||||
characters - 1.3.6.1.2.1.31.1.1.1.6
|
type: DisplayString
|
||||||
indexes:
|
help: An administratively-assigned name for this managed node
|
||||||
- labelname: ifIndex
|
- 1.3.6.1.2.1.1.5
|
||||||
type: gauge
|
- name: sysLocation
|
||||||
version: 3
|
oid: 1.3.6.1.2.1.1.6
|
||||||
auth:
|
type: DisplayString
|
||||||
username: prometheus
|
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
|
||||||
|
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
|
||||||
|
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
|
||||||
|
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:
|
||||||
|
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