SlideShare ist ein Scribd-Unternehmen logo
1 von 22
Downloaden Sie, um offline zu lesen
ConSol Consulting & Solutions Software GmbH
Prometheus
Sohn des Titanen Lapetos
2
ConSol Consulting & Solutions Software GmbH
Prometheus
Timeseries basierter Metriken
Sammler
3
ConSol Consulting & Solutions Software GmbH
Prometheus Timeseries
<metric name> {<label name>=<label value>, …} <
fl
oat64>


4
Audience { conference="OSMC", room=„Jacobi" } 100


Audience { conference="OSMC", room=„Elisabeth" } 50
ConSol Consulting & Solutions Software GmbH
SNMPWALK
5
Text im float64 !?!
IF-MIB::ifIndex.1 = INTEGER: 1


IF-MIB::ifHCInOctets.1 = Counter64: 22012663790


IF-MIB::ifHCOutOctets.1 = Counter64: 40461537447


IF-MIB::ifSpeed.1 = Gauge32: 1000000000
IF-MIB::ifAdminStatus.1 = INTEGER: up(1)


IF-MIB::ifOperStatus.1 = INTEGER: up(1)
IF-MIB::ifName.1 = STRING: Gi0/0


IF-MIB::ifAlias.1 = STRING: OSMC Port


IF-MIB::ifDescr.1 = STRING: GigabitEthernet0/0
ConSol Consulting & Solutions Software GmbH
SNMP Exporter generator
modules:


MyInterfaces:


walk: [sysUpTime, interfaces, ifXTable]


lookups:


- source_indexes: [ifIndex]


lookup: 1.3.6.1.2.1.31.1.1.1.1 # ifName


- source_indexes: [ifIndex]


lookup: 1.3.6.1.2.1.2.2.1.2 # ifAlias


overrides:


ifAdminStatus:


type: EnumAsInfo
6
ConSol Consulting & Solutions Software GmbH
SNMP result mapped to Prometheus
ifHCInOctets{instance=Switch01, ifIndex="1", ifName="Gi0/0", ifAlias="OSMC port"} 22012707668


ifHCOutOctets{instance=Switch01, ifIndex="1", ifName="Gi0/0", ifAlias="OSMC port"} 40461803968


ifSpeed{instance=Switch01, ifIndex="1", ifName="Gi0/0", ifAlias="OSMC port"} 1000000000


ifAdminStatus{instance=Switch01, ifIndex="1", ifName="Gi0/0", ifAlias="OSMC port“, ifAdminStatus="up"} 1


ifOperStatus{instance=Switch01, ifIndex="1", ifName="Gi0/0", ifAlias="OSMC port"} 1
7
ConSol Consulting & Solutions Software GmbH
Problem
Jede Kombination aus OID bzw. MIB verlangt ein eigenes Modul


CISCO-PROCESS-MIB vs. CISCO-OLD-CPU-MIB


L3 Switches ohne Routing


Unterschiedliche UPS / USV Konfigurationen


8
ConSol Consulting & Solutions Software GmbH
Lösung
Einzelnen Module automatisch kombinieren
9
ConSol Consulting & Solutions Software GmbH
Welche Module verwenden ?
10
Kollektor


SNMP Devices


CMDB


Extra DB


( MySql )


SNMP Devices


SNMP Devices


SNMP Devices
ConSol Consulting & Solutions Software GmbH
Kollektor Konfiguration
OIDS = {


'cisco': {


'CISCO-PROCESS-MIB': [


['cpmCPUTotalTable', 'cisco-process-mib'],


['cpmCPUHistory', 'cisco-process-mib'],


],


'OLD-CISCO-CPU-MIB': [


['avgBusy1', 'old-cisco-cpu-mib-avgbusy1'],


],


'CISCO-MEMORY-POOL-MIB': [


['ciscoMemoryPoolTable', 'cisco-memory-pool-mib'],


],


},


}


BETTERTHAN = {


'OLD-CISCO-CPU-MIB': {


'avgBusy1': ['CISCO-PROCESS-MIB', 'cpmCPUTotalTable'],


},


}
11
A Little Longer


Than A


Few Minutes Later
ConSol Consulting & Solutions Software GmbH
Die lokalen inventory / Extra DB
13
Host Type Module OID SNMP MIB Use Last Scann
Switch01 ip switch cisco cisco ws-c3850-48p-s CISCO-PROCESS-MIB cpmCPUTotalTable cisco-process-mib 1
2021-11-03
07:27:33
Switch01 ip switch cisco cisco ws-c3850-48p-s OLD-CISCO-CPU-MIB avgBusy1
old-cisco-cpu-mib-
avgbusy1
0
2021-11-03
07:27:33
Switch01 ip switch cisco cisco ws-c3850-48p-s CISCO-MEMORY-POOL-MIB ciscoMemoryPoolTable cisco-memory-pool-mib 1
2021-11-03
07:27:33
ConSol Consulting & Solutions Software GmbH
Coshsh, gesprochen ʦɔʃ:
Ein Python framework zum Regel
basierten erstellen von Monitoring
Konfigurationen
14
ConSol Consulting & Solutions Software GmbH
Coshsh workflow
15
CMDB


SNMP Devices


Prometheus


Scrape conf


Extra DB


( MySql )


Datasource


Datarecipient


Coshsh
Kollektor


SNMP Exporter


SNMP Exporter


Generator
ConSol Consulting & Solutions Software GmbH
SNMP Exporter Module
modules:


modul_name:


walk:


- < OIDs >


lookups:


- source_indexes: [<OID>]


lookup: <OID>


overrides:


- < Metrik >


16
ConSol Consulting & Solutions Software GmbH
SNMP Exporter Module
Module:


cisco-memory-pool-mib:


walk:


- ciscoMemoryPoolTable


cisco-process-mib:


walk:


- cpmCPUTotalTable


- entPhysicalTable


lookups:


- source_indexes: [cpmCPUTotalPhysicalIndex]


lookup: entPhysicalName
17
ConSol Consulting & Solutions Software GmbH
SNMP Exporter Module
Module:


cisco-memory-pool-mib__cisco-process-mib:


walk:


- ciscoMemoryPoolTable


- cpmCPUTotalTable


- entPhysicalTable


lookups:


- source_indexes: [cpmCPUTotalPhysicalIndex]


lookup: entPhysicalName
18
ConSol Consulting & Solutions Software GmbH
• OMD hat alles was benötigt wird on board


• Coshsh


• MySQL


• prometheus (snmp_exporter bereits gepatched)


• Victoriametrics


• Grafana


• Alles in einer OMD Site !
20
Vielen Dank!
ConSol


Consulting & Solutions Software GmbH


St.-Cajetan-Straße 43


D-81669 München


Tel.: +49-89-45841-100


info@consol.de


www.consol.de


Twitter: @consol_de

Weitere ähnliche Inhalte

Was ist angesagt?

CMake - Introduction and best practices
CMake - Introduction and best practicesCMake - Introduction and best practices
CMake - Introduction and best practicesDaniel Pfeifer
 
io and pad ring.pdf
io and pad ring.pdfio and pad ring.pdf
io and pad ring.pdfquandao25
 
Linux Initialization Process (1)
Linux Initialization Process (1)Linux Initialization Process (1)
Linux Initialization Process (1)shimosawa
 
Embedded Linux from Scratch to Yocto
Embedded Linux from Scratch to YoctoEmbedded Linux from Scratch to Yocto
Embedded Linux from Scratch to YoctoSherif Mousa
 
[OpenStack Days Korea 2016] Track1 - 카카오는 오픈스택 기반으로 어떻게 5000VM을 운영하고 있을까?
[OpenStack Days Korea 2016] Track1 - 카카오는 오픈스택 기반으로 어떻게 5000VM을 운영하고 있을까?[OpenStack Days Korea 2016] Track1 - 카카오는 오픈스택 기반으로 어떻게 5000VM을 운영하고 있을까?
[OpenStack Days Korea 2016] Track1 - 카카오는 오픈스택 기반으로 어떻게 5000VM을 운영하고 있을까?OpenStack Korea Community
 
Dell Storage Management
Dell Storage ManagementDell Storage Management
Dell Storage ManagementDell World
 
Physical Memory Models.pdf
Physical Memory Models.pdfPhysical Memory Models.pdf
Physical Memory Models.pdfAdrian Huang
 
Sony Mhc Rg22,Rg33 Ver. 1.3
Sony Mhc Rg22,Rg33 Ver. 1.3Sony Mhc Rg22,Rg33 Ver. 1.3
Sony Mhc Rg22,Rg33 Ver. 1.3guest0c1298
 
utilisation des core dump sous linux
utilisation des core dump sous linuxutilisation des core dump sous linux
utilisation des core dump sous linuxThierry Gayet
 
Linux Networking Explained
Linux Networking ExplainedLinux Networking Explained
Linux Networking ExplainedThomas Graf
 
Solaris 10 workshop service management facility
Solaris 10 workshop service management facilitySolaris 10 workshop service management facility
Solaris 10 workshop service management facilityBui Van Cuong
 
Dell VMware Virtual SAN Ready Nodes
Dell VMware Virtual SAN Ready NodesDell VMware Virtual SAN Ready Nodes
Dell VMware Virtual SAN Ready NodesAndrew McDaniel
 
OpenSSL Basic Function Call Flow
OpenSSL Basic Function Call FlowOpenSSL Basic Function Call Flow
OpenSSL Basic Function Call FlowWilliam Lee
 
ESAMBLADO DE UN PC CORE I7
ESAMBLADO DE UN PC CORE I7ESAMBLADO DE UN PC CORE I7
ESAMBLADO DE UN PC CORE I7informatico18
 
Mediatek Autus R10 (MT2706) 77/79 GHz eWLB/AiP Radar Chipset
Mediatek Autus R10 (MT2706) 77/79 GHz eWLB/AiP Radar ChipsetMediatek Autus R10 (MT2706) 77/79 GHz eWLB/AiP Radar Chipset
Mediatek Autus R10 (MT2706) 77/79 GHz eWLB/AiP Radar Chipsetsystem_plus
 
Wido den Hollander - 10 ways to break your Ceph cluster
Wido den Hollander - 10 ways to break your Ceph clusterWido den Hollander - 10 ways to break your Ceph cluster
Wido den Hollander - 10 ways to break your Ceph clusterShapeBlue
 
Zabbix: Uma ferramenta para Gerenciamento de ambientes de T.I
Zabbix: Uma ferramenta para Gerenciamento de ambientes de T.IZabbix: Uma ferramenta para Gerenciamento de ambientes de T.I
Zabbix: Uma ferramenta para Gerenciamento de ambientes de T.IAécio Pires
 

Was ist angesagt? (20)

CMake - Introduction and best practices
CMake - Introduction and best practicesCMake - Introduction and best practices
CMake - Introduction and best practices
 
io and pad ring.pdf
io and pad ring.pdfio and pad ring.pdf
io and pad ring.pdf
 
Linux Initialization Process (1)
Linux Initialization Process (1)Linux Initialization Process (1)
Linux Initialization Process (1)
 
Embedded Linux from Scratch to Yocto
Embedded Linux from Scratch to YoctoEmbedded Linux from Scratch to Yocto
Embedded Linux from Scratch to Yocto
 
Roxtec BG Solutions
Roxtec BG SolutionsRoxtec BG Solutions
Roxtec BG Solutions
 
[OpenStack Days Korea 2016] Track1 - 카카오는 오픈스택 기반으로 어떻게 5000VM을 운영하고 있을까?
[OpenStack Days Korea 2016] Track1 - 카카오는 오픈스택 기반으로 어떻게 5000VM을 운영하고 있을까?[OpenStack Days Korea 2016] Track1 - 카카오는 오픈스택 기반으로 어떻게 5000VM을 운영하고 있을까?
[OpenStack Days Korea 2016] Track1 - 카카오는 오픈스택 기반으로 어떻게 5000VM을 운영하고 있을까?
 
Dell Storage Management
Dell Storage ManagementDell Storage Management
Dell Storage Management
 
Logging kernel oops and panic
Logging kernel oops and panicLogging kernel oops and panic
Logging kernel oops and panic
 
Physical Memory Models.pdf
Physical Memory Models.pdfPhysical Memory Models.pdf
Physical Memory Models.pdf
 
Sony Mhc Rg22,Rg33 Ver. 1.3
Sony Mhc Rg22,Rg33 Ver. 1.3Sony Mhc Rg22,Rg33 Ver. 1.3
Sony Mhc Rg22,Rg33 Ver. 1.3
 
utilisation des core dump sous linux
utilisation des core dump sous linuxutilisation des core dump sous linux
utilisation des core dump sous linux
 
Linux Networking Explained
Linux Networking ExplainedLinux Networking Explained
Linux Networking Explained
 
Solaris 10 workshop service management facility
Solaris 10 workshop service management facilitySolaris 10 workshop service management facility
Solaris 10 workshop service management facility
 
Dell VMware Virtual SAN Ready Nodes
Dell VMware Virtual SAN Ready NodesDell VMware Virtual SAN Ready Nodes
Dell VMware Virtual SAN Ready Nodes
 
OpenSSL Basic Function Call Flow
OpenSSL Basic Function Call FlowOpenSSL Basic Function Call Flow
OpenSSL Basic Function Call Flow
 
ESAMBLADO DE UN PC CORE I7
ESAMBLADO DE UN PC CORE I7ESAMBLADO DE UN PC CORE I7
ESAMBLADO DE UN PC CORE I7
 
Mediatek Autus R10 (MT2706) 77/79 GHz eWLB/AiP Radar Chipset
Mediatek Autus R10 (MT2706) 77/79 GHz eWLB/AiP Radar ChipsetMediatek Autus R10 (MT2706) 77/79 GHz eWLB/AiP Radar Chipset
Mediatek Autus R10 (MT2706) 77/79 GHz eWLB/AiP Radar Chipset
 
Wido den Hollander - 10 ways to break your Ceph cluster
Wido den Hollander - 10 ways to break your Ceph clusterWido den Hollander - 10 ways to break your Ceph cluster
Wido den Hollander - 10 ways to break your Ceph cluster
 
Powerplanning
PowerplanningPowerplanning
Powerplanning
 
Zabbix: Uma ferramenta para Gerenciamento de ambientes de T.I
Zabbix: Uma ferramenta para Gerenciamento de ambientes de T.IZabbix: Uma ferramenta para Gerenciamento de ambientes de T.I
Zabbix: Uma ferramenta para Gerenciamento de ambientes de T.I
 

Ähnlich wie OSMC 2021 | SNMP Monitoring mit Prometheus / OIDs dynamisch auswählen und im Griff behalten

MySQL Performance Tuning für Oracle-DBA's
MySQL Performance Tuning für Oracle-DBA'sMySQL Performance Tuning für Oracle-DBA's
MySQL Performance Tuning für Oracle-DBA'sFromDual GmbH
 
Tk roadschow-ipmi-pdeneu
Tk roadschow-ipmi-pdeneuTk roadschow-ipmi-pdeneu
Tk roadschow-ipmi-pdeneuWerner Fischer
 
Monitoring von SAP mit check_sap_health
Monitoring von SAP mit check_sap_healthMonitoring von SAP mit check_sap_health
Monitoring von SAP mit check_sap_healthGerhard Lausser
 
Intelligent Edge - breaking the storage hype (Michael Beeck, mibeeck GmbH)
Intelligent Edge - breaking the storage hype (Michael Beeck, mibeeck GmbH)Intelligent Edge - breaking the storage hype (Michael Beeck, mibeeck GmbH)
Intelligent Edge - breaking the storage hype (Michael Beeck, mibeeck GmbH)data://disrupted®
 
Service Mesh mit Istio und MicroProfile - eine harmonische Kombination?
Service Mesh mit Istio und MicroProfile - eine harmonische Kombination?Service Mesh mit Istio und MicroProfile - eine harmonische Kombination?
Service Mesh mit Istio und MicroProfile - eine harmonische Kombination?Michael Hofmann
 
ICDE 2009 - Perm: Processing Provenance and Data on the same Data Model throu...
ICDE 2009 - Perm: Processing Provenance and Data on the same Data Model throu...ICDE 2009 - Perm: Processing Provenance and Data on the same Data Model throu...
ICDE 2009 - Perm: Processing Provenance and Data on the same Data Model throu...Boris Glavic
 
OSMC 2008 | Monitoring von Messaging Systemen mit Nagios by Markus Thiel
OSMC 2008 | Monitoring von Messaging Systemen mit Nagios by Markus ThielOSMC 2008 | Monitoring von Messaging Systemen mit Nagios by Markus Thiel
OSMC 2008 | Monitoring von Messaging Systemen mit Nagios by Markus ThielNETWAYS
 
Bits and Bytes im Flow - Netzwerk im Wandel der Zeit
Bits and Bytes im Flow - Netzwerk im Wandel der ZeitBits and Bytes im Flow - Netzwerk im Wandel der Zeit
Bits and Bytes im Flow - Netzwerk im Wandel der ZeitB1 Systems GmbH
 
Praktische Erfahrungen mit den kleinen SPARC S7-2 Servern
Praktische Erfahrungen mit den kleinen SPARC S7-2 ServernPraktische Erfahrungen mit den kleinen SPARC S7-2 Servern
Praktische Erfahrungen mit den kleinen SPARC S7-2 ServernJomaSoft
 
OSMC 2008 | Nagios & OTRS Integration by Jens Bothe
OSMC 2008 | Nagios & OTRS Integration by Jens BotheOSMC 2008 | Nagios & OTRS Integration by Jens Bothe
OSMC 2008 | Nagios & OTRS Integration by Jens BotheNETWAYS
 
MYSQL in large environments - CeBIT 2012
MYSQL in large environments - CeBIT 2012MYSQL in large environments - CeBIT 2012
MYSQL in large environments - CeBIT 2012NETWAYS
 
digitalSTROM Developer Day 2011: digitalSTROM-Server-Apps
digitalSTROM Developer Day 2011: digitalSTROM-Server-AppsdigitalSTROM Developer Day 2011: digitalSTROM-Server-Apps
digitalSTROM Developer Day 2011: digitalSTROM-Server-AppsdigitalSTROM.org
 
Prometheus Monitoring
Prometheus MonitoringPrometheus Monitoring
Prometheus Monitoringinovex GmbH
 
Back to Basics – Webinar 2: Ihre erste MongoDB-Anwendung
Back to Basics – Webinar 2: Ihre erste MongoDB-AnwendungBack to Basics – Webinar 2: Ihre erste MongoDB-Anwendung
Back to Basics – Webinar 2: Ihre erste MongoDB-AnwendungMongoDB
 
System Center Configuration Manager with Azure, Intune and Application Manage...
System Center Configuration Manager with Azure, Intune and Application Manage...System Center Configuration Manager with Azure, Intune and Application Manage...
System Center Configuration Manager with Azure, Intune and Application Manage...Digicomp Academy AG
 

Ähnlich wie OSMC 2021 | SNMP Monitoring mit Prometheus / OIDs dynamisch auswählen und im Griff behalten (20)

MySQL Performance Tuning für Oracle-DBA's
MySQL Performance Tuning für Oracle-DBA'sMySQL Performance Tuning für Oracle-DBA's
MySQL Performance Tuning für Oracle-DBA's
 
Tk roadschow-ipmi-pdeneu
Tk roadschow-ipmi-pdeneuTk roadschow-ipmi-pdeneu
Tk roadschow-ipmi-pdeneu
 
Monitoring von SAP mit check_sap_health
Monitoring von SAP mit check_sap_healthMonitoring von SAP mit check_sap_health
Monitoring von SAP mit check_sap_health
 
Intelligent Edge - breaking the storage hype (Michael Beeck, mibeeck GmbH)
Intelligent Edge - breaking the storage hype (Michael Beeck, mibeeck GmbH)Intelligent Edge - breaking the storage hype (Michael Beeck, mibeeck GmbH)
Intelligent Edge - breaking the storage hype (Michael Beeck, mibeeck GmbH)
 
Service Mesh mit Istio und MicroProfile - eine harmonische Kombination?
Service Mesh mit Istio und MicroProfile - eine harmonische Kombination?Service Mesh mit Istio und MicroProfile - eine harmonische Kombination?
Service Mesh mit Istio und MicroProfile - eine harmonische Kombination?
 
MongoDB Einführung
MongoDB EinführungMongoDB Einführung
MongoDB Einführung
 
JavaScript Performance
JavaScript PerformanceJavaScript Performance
JavaScript Performance
 
ICDE 2009 - Perm: Processing Provenance and Data on the same Data Model throu...
ICDE 2009 - Perm: Processing Provenance and Data on the same Data Model throu...ICDE 2009 - Perm: Processing Provenance and Data on the same Data Model throu...
ICDE 2009 - Perm: Processing Provenance and Data on the same Data Model throu...
 
OSMC 2008 | Monitoring von Messaging Systemen mit Nagios by Markus Thiel
OSMC 2008 | Monitoring von Messaging Systemen mit Nagios by Markus ThielOSMC 2008 | Monitoring von Messaging Systemen mit Nagios by Markus Thiel
OSMC 2008 | Monitoring von Messaging Systemen mit Nagios by Markus Thiel
 
check_sap_health
check_sap_healthcheck_sap_health
check_sap_health
 
Bits and Bytes im Flow - Netzwerk im Wandel der Zeit
Bits and Bytes im Flow - Netzwerk im Wandel der ZeitBits and Bytes im Flow - Netzwerk im Wandel der Zeit
Bits and Bytes im Flow - Netzwerk im Wandel der Zeit
 
Praktische Erfahrungen mit den kleinen SPARC S7-2 Servern
Praktische Erfahrungen mit den kleinen SPARC S7-2 ServernPraktische Erfahrungen mit den kleinen SPARC S7-2 Servern
Praktische Erfahrungen mit den kleinen SPARC S7-2 Servern
 
NETCONF & YANG
NETCONF & YANGNETCONF & YANG
NETCONF & YANG
 
OSMC 2008 | Nagios & OTRS Integration by Jens Bothe
OSMC 2008 | Nagios & OTRS Integration by Jens BotheOSMC 2008 | Nagios & OTRS Integration by Jens Bothe
OSMC 2008 | Nagios & OTRS Integration by Jens Bothe
 
MYSQL in large environments - CeBIT 2012
MYSQL in large environments - CeBIT 2012MYSQL in large environments - CeBIT 2012
MYSQL in large environments - CeBIT 2012
 
digitalSTROM Developer Day 2011: digitalSTROM-Server-Apps
digitalSTROM Developer Day 2011: digitalSTROM-Server-AppsdigitalSTROM Developer Day 2011: digitalSTROM-Server-Apps
digitalSTROM Developer Day 2011: digitalSTROM-Server-Apps
 
Prometheus Monitoring
Prometheus MonitoringPrometheus Monitoring
Prometheus Monitoring
 
Back to Basics – Webinar 2: Ihre erste MongoDB-Anwendung
Back to Basics – Webinar 2: Ihre erste MongoDB-AnwendungBack to Basics – Webinar 2: Ihre erste MongoDB-Anwendung
Back to Basics – Webinar 2: Ihre erste MongoDB-Anwendung
 
System Center Configuration Manager with Azure, Intune and Application Manage...
System Center Configuration Manager with Azure, Intune and Application Manage...System Center Configuration Manager with Azure, Intune and Application Manage...
System Center Configuration Manager with Azure, Intune and Application Manage...
 
Logging mit log4net
Logging mit log4netLogging mit log4net
Logging mit log4net
 

Kürzlich hochgeladen

Slides (2) zu Teil 3 der Veranstaltungsreihe Anwendungsentwicklung mit Volt M...
Slides (2) zu Teil 3 der Veranstaltungsreihe Anwendungsentwicklung mit Volt M...Slides (2) zu Teil 3 der Veranstaltungsreihe Anwendungsentwicklung mit Volt M...
Slides (2) zu Teil 3 der Veranstaltungsreihe Anwendungsentwicklung mit Volt M...DNUG e.V.
 
Machine Learning? Ja gerne! Aber was und wie? Eine Kurzanleitung für den erfo...
Machine Learning? Ja gerne! Aber was und wie? Eine Kurzanleitung für den erfo...Machine Learning? Ja gerne! Aber was und wie? Eine Kurzanleitung für den erfo...
Machine Learning? Ja gerne! Aber was und wie? Eine Kurzanleitung für den erfo...OPEN KNOWLEDGE GmbH
 
From Zero to still Zero: Die schönsten Fehler auf dem Weg in die Cloud
From Zero to still Zero: Die schönsten Fehler auf dem Weg in die CloudFrom Zero to still Zero: Die schönsten Fehler auf dem Weg in die Cloud
From Zero to still Zero: Die schönsten Fehler auf dem Weg in die CloudOPEN KNOWLEDGE GmbH
 
FEHLENDE DATEN? (K)EIN PROBLEM!: Die Kunst der Data Imputation
FEHLENDE DATEN? (K)EIN PROBLEM!: Die Kunst der Data ImputationFEHLENDE DATEN? (K)EIN PROBLEM!: Die Kunst der Data Imputation
FEHLENDE DATEN? (K)EIN PROBLEM!: Die Kunst der Data ImputationOPEN KNOWLEDGE GmbH
 
Slides (1) zu Teil 3 der Veranstaltungsreihe Anwendungsentwicklung mit Volt M...
Slides (1) zu Teil 3 der Veranstaltungsreihe Anwendungsentwicklung mit Volt M...Slides (1) zu Teil 3 der Veranstaltungsreihe Anwendungsentwicklung mit Volt M...
Slides (1) zu Teil 3 der Veranstaltungsreihe Anwendungsentwicklung mit Volt M...DNUG e.V.
 
Rückwärts denken vorwärts handeln - Requirements Reverse Engineering bei Syst...
Rückwärts denken vorwärts handeln - Requirements Reverse Engineering bei Syst...Rückwärts denken vorwärts handeln - Requirements Reverse Engineering bei Syst...
Rückwärts denken vorwärts handeln - Requirements Reverse Engineering bei Syst...Markus Unterauer
 

Kürzlich hochgeladen (6)

Slides (2) zu Teil 3 der Veranstaltungsreihe Anwendungsentwicklung mit Volt M...
Slides (2) zu Teil 3 der Veranstaltungsreihe Anwendungsentwicklung mit Volt M...Slides (2) zu Teil 3 der Veranstaltungsreihe Anwendungsentwicklung mit Volt M...
Slides (2) zu Teil 3 der Veranstaltungsreihe Anwendungsentwicklung mit Volt M...
 
Machine Learning? Ja gerne! Aber was und wie? Eine Kurzanleitung für den erfo...
Machine Learning? Ja gerne! Aber was und wie? Eine Kurzanleitung für den erfo...Machine Learning? Ja gerne! Aber was und wie? Eine Kurzanleitung für den erfo...
Machine Learning? Ja gerne! Aber was und wie? Eine Kurzanleitung für den erfo...
 
From Zero to still Zero: Die schönsten Fehler auf dem Weg in die Cloud
From Zero to still Zero: Die schönsten Fehler auf dem Weg in die CloudFrom Zero to still Zero: Die schönsten Fehler auf dem Weg in die Cloud
From Zero to still Zero: Die schönsten Fehler auf dem Weg in die Cloud
 
FEHLENDE DATEN? (K)EIN PROBLEM!: Die Kunst der Data Imputation
FEHLENDE DATEN? (K)EIN PROBLEM!: Die Kunst der Data ImputationFEHLENDE DATEN? (K)EIN PROBLEM!: Die Kunst der Data Imputation
FEHLENDE DATEN? (K)EIN PROBLEM!: Die Kunst der Data Imputation
 
Slides (1) zu Teil 3 der Veranstaltungsreihe Anwendungsentwicklung mit Volt M...
Slides (1) zu Teil 3 der Veranstaltungsreihe Anwendungsentwicklung mit Volt M...Slides (1) zu Teil 3 der Veranstaltungsreihe Anwendungsentwicklung mit Volt M...
Slides (1) zu Teil 3 der Veranstaltungsreihe Anwendungsentwicklung mit Volt M...
 
Rückwärts denken vorwärts handeln - Requirements Reverse Engineering bei Syst...
Rückwärts denken vorwärts handeln - Requirements Reverse Engineering bei Syst...Rückwärts denken vorwärts handeln - Requirements Reverse Engineering bei Syst...
Rückwärts denken vorwärts handeln - Requirements Reverse Engineering bei Syst...
 

OSMC 2021 | SNMP Monitoring mit Prometheus / OIDs dynamisch auswählen und im Griff behalten

  • 1.
  • 2. ConSol Consulting & Solutions Software GmbH Prometheus Sohn des Titanen Lapetos 2
  • 3. ConSol Consulting & Solutions Software GmbH Prometheus Timeseries basierter Metriken Sammler 3
  • 4. ConSol Consulting & Solutions Software GmbH Prometheus Timeseries <metric name> {<label name>=<label value>, …} < fl oat64> 4 Audience { conference="OSMC", room=„Jacobi" } 100 Audience { conference="OSMC", room=„Elisabeth" } 50
  • 5. ConSol Consulting & Solutions Software GmbH SNMPWALK 5 Text im float64 !?! IF-MIB::ifIndex.1 = INTEGER: 1 IF-MIB::ifHCInOctets.1 = Counter64: 22012663790 IF-MIB::ifHCOutOctets.1 = Counter64: 40461537447 IF-MIB::ifSpeed.1 = Gauge32: 1000000000 IF-MIB::ifAdminStatus.1 = INTEGER: up(1) IF-MIB::ifOperStatus.1 = INTEGER: up(1) IF-MIB::ifName.1 = STRING: Gi0/0 IF-MIB::ifAlias.1 = STRING: OSMC Port IF-MIB::ifDescr.1 = STRING: GigabitEthernet0/0
  • 6. ConSol Consulting & Solutions Software GmbH SNMP Exporter generator modules: MyInterfaces: walk: [sysUpTime, interfaces, ifXTable] lookups: - source_indexes: [ifIndex] lookup: 1.3.6.1.2.1.31.1.1.1.1 # ifName - source_indexes: [ifIndex] lookup: 1.3.6.1.2.1.2.2.1.2 # ifAlias overrides: ifAdminStatus: type: EnumAsInfo 6
  • 7. ConSol Consulting & Solutions Software GmbH SNMP result mapped to Prometheus ifHCInOctets{instance=Switch01, ifIndex="1", ifName="Gi0/0", ifAlias="OSMC port"} 22012707668 ifHCOutOctets{instance=Switch01, ifIndex="1", ifName="Gi0/0", ifAlias="OSMC port"} 40461803968 ifSpeed{instance=Switch01, ifIndex="1", ifName="Gi0/0", ifAlias="OSMC port"} 1000000000 ifAdminStatus{instance=Switch01, ifIndex="1", ifName="Gi0/0", ifAlias="OSMC port“, ifAdminStatus="up"} 1 ifOperStatus{instance=Switch01, ifIndex="1", ifName="Gi0/0", ifAlias="OSMC port"} 1 7
  • 8. ConSol Consulting & Solutions Software GmbH Problem Jede Kombination aus OID bzw. MIB verlangt ein eigenes Modul CISCO-PROCESS-MIB vs. CISCO-OLD-CPU-MIB L3 Switches ohne Routing Unterschiedliche UPS / USV Konfigurationen 8
  • 9. ConSol Consulting & Solutions Software GmbH Lösung Einzelnen Module automatisch kombinieren 9
  • 10. ConSol Consulting & Solutions Software GmbH Welche Module verwenden ? 10 Kollektor SNMP Devices CMDB Extra DB 
 ( MySql ) SNMP Devices SNMP Devices SNMP Devices
  • 11. ConSol Consulting & Solutions Software GmbH Kollektor Konfiguration OIDS = { 'cisco': { 'CISCO-PROCESS-MIB': [ ['cpmCPUTotalTable', 'cisco-process-mib'], ['cpmCPUHistory', 'cisco-process-mib'], ], 'OLD-CISCO-CPU-MIB': [ ['avgBusy1', 'old-cisco-cpu-mib-avgbusy1'], ], 'CISCO-MEMORY-POOL-MIB': [ ['ciscoMemoryPoolTable', 'cisco-memory-pool-mib'], ], }, } BETTERTHAN = { 'OLD-CISCO-CPU-MIB': { 'avgBusy1': ['CISCO-PROCESS-MIB', 'cpmCPUTotalTable'], }, } 11
  • 12. A Little Longer Than A Few Minutes Later
  • 13. ConSol Consulting & Solutions Software GmbH Die lokalen inventory / Extra DB 13 Host Type Module OID SNMP MIB Use Last Scann Switch01 ip switch cisco cisco ws-c3850-48p-s CISCO-PROCESS-MIB cpmCPUTotalTable cisco-process-mib 1 2021-11-03 07:27:33 Switch01 ip switch cisco cisco ws-c3850-48p-s OLD-CISCO-CPU-MIB avgBusy1 old-cisco-cpu-mib- avgbusy1 0 2021-11-03 07:27:33 Switch01 ip switch cisco cisco ws-c3850-48p-s CISCO-MEMORY-POOL-MIB ciscoMemoryPoolTable cisco-memory-pool-mib 1 2021-11-03 07:27:33
  • 14. ConSol Consulting & Solutions Software GmbH Coshsh, gesprochen ʦɔʃ: Ein Python framework zum Regel basierten erstellen von Monitoring Konfigurationen 14
  • 15. ConSol Consulting & Solutions Software GmbH Coshsh workflow 15 CMDB SNMP Devices Prometheus 
 Scrape conf Extra DB 
 ( MySql ) Datasource Datarecipient Coshsh Kollektor SNMP Exporter SNMP Exporter Generator
  • 16. ConSol Consulting & Solutions Software GmbH SNMP Exporter Module modules: modul_name: walk: - < OIDs > lookups: - source_indexes: [<OID>] lookup: <OID> overrides: - < Metrik > 16
  • 17. ConSol Consulting & Solutions Software GmbH SNMP Exporter Module Module: cisco-memory-pool-mib: walk: - ciscoMemoryPoolTable cisco-process-mib: walk: - cpmCPUTotalTable - entPhysicalTable lookups: - source_indexes: [cpmCPUTotalPhysicalIndex] lookup: entPhysicalName 17
  • 18. ConSol Consulting & Solutions Software GmbH SNMP Exporter Module Module: cisco-memory-pool-mib__cisco-process-mib: walk: - ciscoMemoryPoolTable - cpmCPUTotalTable - entPhysicalTable lookups: - source_indexes: [cpmCPUTotalPhysicalIndex] lookup: entPhysicalName 18
  • 19.
  • 20. ConSol Consulting & Solutions Software GmbH • OMD hat alles was benötigt wird on board • Coshsh • MySQL • prometheus (snmp_exporter bereits gepatched) • Victoriametrics • Grafana • Alles in einer OMD Site ! 20
  • 22. ConSol Consulting & Solutions Software GmbH St.-Cajetan-Straße 43 D-81669 München Tel.: +49-89-45841-100 info@consol.de www.consol.de Twitter: @consol_de