SlideShare a Scribd company logo
R
© MultiNET Services GmbH, Seite 1
MultiNET Services GmbH
SNMP
The forgotten classic
OSMC Nürnberg, October, 28th
2009
Dr. Michael Schwartzkopff, MultiNET Services GmbH
R
© MultiNET Services GmbH, Seite 2
Outline
•SNMP: Why?
•The Building Blocks
– ASN.1 – The LanguagE
– MIB – The Definitions
– SNMP – The Protocol
•Implementation: Net-SNMP
– The client – side: Manager
– The server – side: Agents
R
© MultiNET Services GmbH, Seite 3
SNMP - Why?
•Management of all entities in a network in a uniform
way
– Independent of the kind of the entity (network device,
host, operating system, application)
– Independent of the operation system
– Independent of the application, i.e. all kinds of applications
can be managed
– Independent of any vendor!
•Solution: A IETF standard (RFC) the meets all the
needs.
R
© MultiNET Services GmbH, Seite 4
SNMP: History
● SNMP Version 1: Long time de-facto standard
● RFC 1155 ff. dating back to 1990.
● No need for security in that times: „Security is Not My
Problem“
● No real SNMP version 2 standard
● Every „guru“ had his own version
● Secure SNMP, 2p, 2u, 2c, 2*, ...
● In 2002 Jeff Case defined his own standard:
● Did not name it another v2, but version 3
● Only standard in effect. Others are obsolete.
R
© MultiNET Services GmbH, Seite 5
The Language: ASN.1
•Since everybody has to talk anybody else the RFCs
define a common language. Abstract Syntax Notation
version 1 was chosen.
•ASN.1 is a formal language that defines data types
and their interpretation.
– All participants understand „10“ the same way.
•All definitions are written in ASN.1 so all participants
in the communication know the same.
R
© MultiNET Services GmbH, Seite 6
Definition of the
Basis of Information
•Every manager must posses information about the
entities it wants to manage.
– What is this entity capable doing?
•Only the manufacturer has good knowledge about the
entity.
– The manufacturer describes the manageable information
of the entity and delivers it with the device, application, ...
•This description is also written in ASN.1
•The description is called Management Information
Base (MIB).
R
© MultiNET Services GmbH, Seite 7
Structure by Object Identifiers
• All information has to be structured
– Otherwise nobody would find the interesting information.
• SNMP uses Object Identifier (OID)
– Information is structured in a tree. The branches are
separated by „.“
– IANA is the master of the internet part of the tree.
– All management information can be found under
iso.org.dod.internet (1.3.6.1)
• Standardized information is located in 1.3.6.1.2.1 (mib-2)
• Enterprise specific information can be found in 1.3.6.1.4.1
(private.enterprises)
• All enterprises get a unique number.
R
© MultiNET Services GmbH, Seite 8
Management of OIDs
• Like numbers (or prime numbers) there are enough
OIDs. Not like IPv4 addresses.
• Standard information (mib-2 with fixed OIDs) is
defined in RFCs.
– You find information about nearly all topics covert by
RFCs: Internet Protocol, Host Information, Application
Information, ...
• No OID should be assigned twice
– OID – Management within the enterprise.
– If you made an error: Just abandon the tree and create a
new one.
R
© MultiNET Services GmbH, Seite 9
Vendor MIBs
• Be sure you buy equipment with proper SNMP
support.
• Ask the right people for the MIBs.
– Most sales guys mix up SNMP with SMTP.
• Most applications come with SNMP support. You
just have to keep asking.
– Samples: Databases, Cluster software, Rack hardware
– Microsoft has sometimes surprisingly good SNMP support
R
© MultiNET Services GmbH, Seite 10
Sample OIDs
Hersteller OID Bezeichnung
Standard ifOutOctects Number of bytes sent out on a interface
Standard hrStorageUsed Used space on a storage medium
APC ch Remaining time of a battery
Apache ApScoreBoardAccess
Count
Number of accesses to that server
Check Point haState State of the cluster
Cisco avgBusy5 Average CPU-load in the last 5 min.
F5 globalStatCurrentConn Number of connections
HP gdStatusPaperOut Paperstatus of the device
Microsoft servErrorSystem Number of internal errors
Oracle oraDBSysUserCalls „user calls“ from v$sysstat
Rittal statusDoor1 Door status (open/closed/locked)
Veritas jobState State of a NetBackup job
R
© MultiNET Services GmbH, Seite 11
SNMP: Entities on the net
• In other applications the participants are called client
and server.
• In SNMP the two parties are called different:
– The agent is the part that provides the information. Thus it
is installed on the managed host.
– The manager collects and the information.
• Two ways of communication:
– The manager asks the agent for information (get).
– The agent notifies the manger about events (traps).
R
© MultiNET Services GmbH, Seite 12
SNMPv1 – The protocol
The following messages exist:
GetRequest: The manager asks for some information.
GetNextRequest:The manager asks for the next
information
GetResponse: The agent answers a request providing
information
SetRequest: The manager sets some information on
the agent.
Trap: The agent notifies the manager about
some event.
R
© MultiNET Services GmbH, Seite 13
SNMP encoding
• SNMP encodes all information in protocol data units
(PDUs) telling you
– Here comes some information of the type TYPE
– This information is NUMBER octets long
– The information is INFORMATION
• Same encoding scheme i.e. in LDAP, DHCP,
RADIUS, Kerberos, ...
R
© MultiNET Services GmbH, Seite 14
SNMP myths
• „SNMP is not secure“
– Yes. SNMPv1 was not designed to be secure.
– SNMPv3 is secure. All massages can be authenticated
and encrypted.
– SNMPv3 provides a Role-based access model.
• „SNMP is not safe“ (Traps are not acknowledged)
– SNMPv3 provides Informs that are acknowledged
• „SNMP floods the net / overloads my router“
– Depends on how you deploy SNMP.
– A DNS server also can flood your net.
R
© MultiNET Services GmbH, Seite 15
net-SNMP: The Open Source Tool
• Fully v1, v2c and v3 compatible with IPv4 and IPv6
• Command line management tools:
– snmpget, snmpgetnext, snmpwalk, ...
– snmpset
– snmptranslate
• Highly configurable SNMP agent: snmpd
– Extensible with subagents
• Send Traps: snmptrap
• Receive traps: snmptrapd
R
© MultiNET Services GmbH, Seite 16
The Command Line
snmpwalk -v<version> -c<community> <host> <OID>
# snmpwalk -v 1 -c public localhost .system
SysDescr.0 = STRING: Linux mucnb005 2.6.28-11-generic
#42-Ubuntu SMP Fri Apr 17 01:57:59 UTC 2009
i686
SysContact.0 = STRING: misch@multinet.de
SysName.0 = STRING: mucnb005
SysLocation.0 = STRING: under you fingertips
R
© MultiNET Services GmbH, Seite 17
Configuration of the SNMP Agent
• View-based access control model for v1, v2c and v3
• User-based security model for v1, v2c and v3
• Restrictions on the addresses listening
• Restrictions according to source addresses
• Subagent control
• Simple extension of the agent simply by editing the
config file
R
© MultiNET Services GmbH, Seite 18
Process Monitoring
proc <process> [max [min]]
• prErrorFlag set if number of processes in ps -e
not within [min,max]
• Remote fix of the problem possible:
– Program defined in procfix is executed
– If the a flag prErrFix is set by the manager
• Simple monitoring. Just check prErrorFlag:
– „0“ means OK
– „1“ means not OK.
R
© MultiNET Services GmbH, Seite 19
Storage Supervision
• Complete status of storage devices in hrStorage
– Size and Used Allocation Units of all attached devices.
– Part of the HOST-RESOURCES-MIB (Standard)
• Configuration option:
disk PATH [ MINSPACE | MINPERCENT% ]
– dskTotal, dskAvail, dskUsed, dskPercent
– if dskAvail < MINSPACE then dskErrorFlag=1
• Simple monitoring in nagios possible
R
© MultiNET Services GmbH, Seite 20
System Load
load MAX1 [MAX5 [MAX15]]
• The agent includes system load counters:
laLoad, laLoadInt, laLoadFloat
• laErrFlag is set if the load is higher than the
configured options
R
© MultiNET Services GmbH, Seite 21
Log File Monitoring
Monitoring size of log files
• Counting of occurrence of REGEXP in a file:
logmatch NAME FILE CYCLETIME REGEX
• Sample:
logmatch apache-GETs /var/log/apache/access.log 
60 GET.*HTTP.*
– Counts all 60 seconds the number of accesses to the web
server
– Ideal for pnp4nagios
R
© MultiNET Services GmbH, Seite 22
Arbitrary Extensions
• Running external commands (exec, extend, pass)
• extend [MIBOID] NAME PROG ARGS
indexes tables by the name of the program. So
identical OIDs in the configuration still lead to
different output.
• Reading the MIB gives return code and output of the
command.
R
© MultiNET Services GmbH, Seite 23
More Extensions
• Embedded perl support
• Dynamically loadable modules
• Full proxy support
– Asking this agent what the other agent does
• Subagents: SMUX and AgentX
R
© MultiNET Services GmbH, Seite 24
Simple Integration into nagios
• Plug-in check_snmp
• Check command in nagios:
define command {
command_name check_snmp_linux_disk1
command_line $USER1$/check_snmp 
-H $HOSTADDRESS$ -o dskPercent.1 
-w :85 -c :95
}
R
© MultiNET Services GmbH, Seite 25
SNMP Myth (II)
„As if designed to make the Gods of Hypocrisy die of
laughter, SNMP is anything but simple.“
• Design goals of SNMP:
– Interoperable
– Easy to use, not to develop.
• SNMP is sufficient simple to get most of the tasks
done without too much effort.
R
© MultiNET Services GmbH, OSMC, Nürnberg, Nov, 28th, 2009. page: 26
Thank you very much for your
attention!
MultiNET Services GmbH

More Related Content

What's hot

Latest presentation
Latest presentationLatest presentation
Latest presentation
Adetunji Adeoje
 
User Management and Privileges - pfSense Hangout February 2015
User Management and Privileges - pfSense Hangout February 2015User Management and Privileges - pfSense Hangout February 2015
User Management and Privileges - pfSense Hangout February 2015
Netgate
 
SNMP(Simple Network Management Protocol)
SNMP(Simple Network Management Protocol)SNMP(Simple Network Management Protocol)
SNMP(Simple Network Management Protocol)
Mohammad Awais Javaid
 
PCP
PCPPCP
Применение виртуализации для динамического анализа
Применение виртуализации для динамического анализаПрименение виртуализации для динамического анализа
Применение виртуализации для динамического анализа
Positive Hack Days
 
Snort
SnortSnort
2. Collecting Network Traffic & 3. Standalone NSM Deployment
2. Collecting Network Traffic & 3. Standalone NSM Deployment2. Collecting Network Traffic & 3. Standalone NSM Deployment
2. Collecting Network Traffic & 3. Standalone NSM Deployment
Sam Bowne
 
Fully Automated Nagios (FAN)
Fully Automated Nagios (FAN)Fully Automated Nagios (FAN)
Fully Automated Nagios (FAN)
Kaustubh Padwad
 
Строим ханипот и выявляем DDoS-атаки
Строим ханипот и выявляем DDoS-атакиСтроим ханипот и выявляем DDoS-атаки
Строим ханипот и выявляем DDoS-атаки
Positive Hack Days
 
IX 2020 - Internet Security & Mitigation of Risk Webinar: Linux Malware and D...
IX 2020 - Internet Security & Mitigation of Risk Webinar: Linux Malware and D...IX 2020 - Internet Security & Mitigation of Risk Webinar: Linux Malware and D...
IX 2020 - Internet Security & Mitigation of Risk Webinar: Linux Malware and D...
APNIC
 
Monitoring network performance- Part 3_Free OpManager training
Monitoring network performance- Part 3_Free OpManager training Monitoring network performance- Part 3_Free OpManager training
Monitoring network performance- Part 3_Free OpManager training
ManageEngine, Zoho Corporation
 
Unix and Linux Common Boot Disk Disaster Recovery Tools by Dusan Baljevic
Unix and Linux Common Boot Disk Disaster Recovery Tools by Dusan BaljevicUnix and Linux Common Boot Disk Disaster Recovery Tools by Dusan Baljevic
Unix and Linux Common Boot Disk Disaster Recovery Tools by Dusan Baljevic
Circling Cycle
 
Penetration Testing Boot CAMP
Penetration Testing Boot CAMPPenetration Testing Boot CAMP
[Wroclaw #3] Trusted Computing
[Wroclaw #3] Trusted Computing[Wroclaw #3] Trusted Computing
[Wroclaw #3] Trusted Computing
OWASP
 
Free OpManager training_ Part 2-server monitoring
Free OpManager training_ Part 2-server monitoringFree OpManager training_ Part 2-server monitoring
Free OpManager training_ Part 2-server monitoring
ManageEngine, Zoho Corporation
 
(Snmp) simple network management protocol
(Snmp)   simple network management protocol(Snmp)   simple network management protocol
(Snmp) simple network management protocol
Gouasmia Zakaria
 
Performance Lessons learned in vRouter - Stephen Hemminger
Performance Lessons learned in vRouter - Stephen HemmingerPerformance Lessons learned in vRouter - Stephen Hemminger
Performance Lessons learned in vRouter - Stephen Hemminger
harryvanhaaren
 
Linux networking
Linux networkingLinux networking
Linux networking
sanakiyan
 
Opmanager Workshop - Middle East
Opmanager Workshop - Middle EastOpmanager Workshop - Middle East
Opmanager Workshop - Middle East
ManageEngine, Zoho Corporation
 
Free OpManager training Part 2- Monitoring Server Performance
Free OpManager training Part 2- Monitoring Server PerformanceFree OpManager training Part 2- Monitoring Server Performance
Free OpManager training Part 2- Monitoring Server Performance
ManageEngine, Zoho Corporation
 

What's hot (20)

Latest presentation
Latest presentationLatest presentation
Latest presentation
 
User Management and Privileges - pfSense Hangout February 2015
User Management and Privileges - pfSense Hangout February 2015User Management and Privileges - pfSense Hangout February 2015
User Management and Privileges - pfSense Hangout February 2015
 
SNMP(Simple Network Management Protocol)
SNMP(Simple Network Management Protocol)SNMP(Simple Network Management Protocol)
SNMP(Simple Network Management Protocol)
 
PCP
PCPPCP
PCP
 
Применение виртуализации для динамического анализа
Применение виртуализации для динамического анализаПрименение виртуализации для динамического анализа
Применение виртуализации для динамического анализа
 
Snort
SnortSnort
Snort
 
2. Collecting Network Traffic & 3. Standalone NSM Deployment
2. Collecting Network Traffic & 3. Standalone NSM Deployment2. Collecting Network Traffic & 3. Standalone NSM Deployment
2. Collecting Network Traffic & 3. Standalone NSM Deployment
 
Fully Automated Nagios (FAN)
Fully Automated Nagios (FAN)Fully Automated Nagios (FAN)
Fully Automated Nagios (FAN)
 
Строим ханипот и выявляем DDoS-атаки
Строим ханипот и выявляем DDoS-атакиСтроим ханипот и выявляем DDoS-атаки
Строим ханипот и выявляем DDoS-атаки
 
IX 2020 - Internet Security & Mitigation of Risk Webinar: Linux Malware and D...
IX 2020 - Internet Security & Mitigation of Risk Webinar: Linux Malware and D...IX 2020 - Internet Security & Mitigation of Risk Webinar: Linux Malware and D...
IX 2020 - Internet Security & Mitigation of Risk Webinar: Linux Malware and D...
 
Monitoring network performance- Part 3_Free OpManager training
Monitoring network performance- Part 3_Free OpManager training Monitoring network performance- Part 3_Free OpManager training
Monitoring network performance- Part 3_Free OpManager training
 
Unix and Linux Common Boot Disk Disaster Recovery Tools by Dusan Baljevic
Unix and Linux Common Boot Disk Disaster Recovery Tools by Dusan BaljevicUnix and Linux Common Boot Disk Disaster Recovery Tools by Dusan Baljevic
Unix and Linux Common Boot Disk Disaster Recovery Tools by Dusan Baljevic
 
Penetration Testing Boot CAMP
Penetration Testing Boot CAMPPenetration Testing Boot CAMP
Penetration Testing Boot CAMP
 
[Wroclaw #3] Trusted Computing
[Wroclaw #3] Trusted Computing[Wroclaw #3] Trusted Computing
[Wroclaw #3] Trusted Computing
 
Free OpManager training_ Part 2-server monitoring
Free OpManager training_ Part 2-server monitoringFree OpManager training_ Part 2-server monitoring
Free OpManager training_ Part 2-server monitoring
 
(Snmp) simple network management protocol
(Snmp)   simple network management protocol(Snmp)   simple network management protocol
(Snmp) simple network management protocol
 
Performance Lessons learned in vRouter - Stephen Hemminger
Performance Lessons learned in vRouter - Stephen HemmingerPerformance Lessons learned in vRouter - Stephen Hemminger
Performance Lessons learned in vRouter - Stephen Hemminger
 
Linux networking
Linux networkingLinux networking
Linux networking
 
Opmanager Workshop - Middle East
Opmanager Workshop - Middle EastOpmanager Workshop - Middle East
Opmanager Workshop - Middle East
 
Free OpManager training Part 2- Monitoring Server Performance
Free OpManager training Part 2- Monitoring Server PerformanceFree OpManager training Part 2- Monitoring Server Performance
Free OpManager training Part 2- Monitoring Server Performance
 

Similar to OSMC 2009 | net-snmp: The forgotten classic by Dr. Michael Schwartzkopff

network-management Web base.ppt
network-management Web base.pptnetwork-management Web base.ppt
network-management Web base.ppt
AssadLeo1
 
Functional Areas of Network Management Configuration Management
Functional Areas of Network Management Configuration ManagementFunctional Areas of Network Management Configuration Management
Functional Areas of Network Management Configuration Management
jeronimored
 
Martin Zeiser, Universal Pwn n Play - pacsec -final
Martin Zeiser, Universal Pwn n Play - pacsec -finalMartin Zeiser, Universal Pwn n Play - pacsec -final
Martin Zeiser, Universal Pwn n Play - pacsec -final
PacSecJP
 
Zabbix Monitoring Platform
Zabbix Monitoring Platform Zabbix Monitoring Platform
Zabbix Monitoring Platform
Seyedmajid Etehadi
 
Nagios Conference 2013 - Spenser Reinhardt - Intro to Network Monitoring Usin...
Nagios Conference 2013 - Spenser Reinhardt - Intro to Network Monitoring Usin...Nagios Conference 2013 - Spenser Reinhardt - Intro to Network Monitoring Usin...
Nagios Conference 2013 - Spenser Reinhardt - Intro to Network Monitoring Usin...
Nagios
 
Snmp chapter7
Snmp chapter7Snmp chapter7
Snmp chapter7
jignash
 
Centralized monitoring station for it computing and network infrastructure
Centralized monitoring station for it computing and network infrastructureCentralized monitoring station for it computing and network infrastructure
Centralized monitoring station for it computing and network infrastructure
MOHD ARISH
 
9
99
SNMP
SNMPSNMP
Introduction to Industrial Control Systems : Pentesting PLCs 101 (BlackHat Eu...
Introduction to Industrial Control Systems : Pentesting PLCs 101 (BlackHat Eu...Introduction to Industrial Control Systems : Pentesting PLCs 101 (BlackHat Eu...
Introduction to Industrial Control Systems : Pentesting PLCs 101 (BlackHat Eu...
arnaudsoullie
 
Sw&amp;connectivity product overview [compatibility mode]
Sw&amp;connectivity product overview [compatibility mode]Sw&amp;connectivity product overview [compatibility mode]
Sw&amp;connectivity product overview [compatibility mode]
Alexander Pienaar
 
SNMP Demystified Part-II
SNMP Demystified Part-IISNMP Demystified Part-II
SNMP Demystified Part-II
ManageEngine
 
Network Vulnerabilities And Cyber Kill Chain Essay
Network Vulnerabilities And Cyber Kill Chain EssayNetwork Vulnerabilities And Cyber Kill Chain Essay
Network Vulnerabilities And Cyber Kill Chain Essay
Karen Oliver
 
Network Penetration Testing
Network Penetration TestingNetwork Penetration Testing
Network Penetration Testing
Mohammed Adam
 
L1803027588
L1803027588L1803027588
L1803027588
IOSR Journals
 
NON-INTRUSIVE REMOTE MONITORING OF SERVICES IN A DATA CENTRE
NON-INTRUSIVE REMOTE MONITORING OF SERVICES IN A DATA CENTRENON-INTRUSIVE REMOTE MONITORING OF SERVICES IN A DATA CENTRE
NON-INTRUSIVE REMOTE MONITORING OF SERVICES IN A DATA CENTRE
cscpconf
 
Simple Network Management Protocole
Simple Network Management ProtocoleSimple Network Management Protocole
Simple Network Management Protocole
Amin Komeili
 
IBM Spectrum Scale Network Flows
IBM Spectrum Scale Network FlowsIBM Spectrum Scale Network Flows
IBM Spectrum Scale Network Flows
Tomer Perry
 
MobZabbix.pptx
MobZabbix.pptxMobZabbix.pptx
MobZabbix.pptx
jonathanehab934
 
Network Monitoring Tools
Network Monitoring ToolsNetwork Monitoring Tools
Network Monitoring Tools
Prince JabaKumar
 

Similar to OSMC 2009 | net-snmp: The forgotten classic by Dr. Michael Schwartzkopff (20)

network-management Web base.ppt
network-management Web base.pptnetwork-management Web base.ppt
network-management Web base.ppt
 
Functional Areas of Network Management Configuration Management
Functional Areas of Network Management Configuration ManagementFunctional Areas of Network Management Configuration Management
Functional Areas of Network Management Configuration Management
 
Martin Zeiser, Universal Pwn n Play - pacsec -final
Martin Zeiser, Universal Pwn n Play - pacsec -finalMartin Zeiser, Universal Pwn n Play - pacsec -final
Martin Zeiser, Universal Pwn n Play - pacsec -final
 
Zabbix Monitoring Platform
Zabbix Monitoring Platform Zabbix Monitoring Platform
Zabbix Monitoring Platform
 
Nagios Conference 2013 - Spenser Reinhardt - Intro to Network Monitoring Usin...
Nagios Conference 2013 - Spenser Reinhardt - Intro to Network Monitoring Usin...Nagios Conference 2013 - Spenser Reinhardt - Intro to Network Monitoring Usin...
Nagios Conference 2013 - Spenser Reinhardt - Intro to Network Monitoring Usin...
 
Snmp chapter7
Snmp chapter7Snmp chapter7
Snmp chapter7
 
Centralized monitoring station for it computing and network infrastructure
Centralized monitoring station for it computing and network infrastructureCentralized monitoring station for it computing and network infrastructure
Centralized monitoring station for it computing and network infrastructure
 
9
99
9
 
SNMP
SNMPSNMP
SNMP
 
Introduction to Industrial Control Systems : Pentesting PLCs 101 (BlackHat Eu...
Introduction to Industrial Control Systems : Pentesting PLCs 101 (BlackHat Eu...Introduction to Industrial Control Systems : Pentesting PLCs 101 (BlackHat Eu...
Introduction to Industrial Control Systems : Pentesting PLCs 101 (BlackHat Eu...
 
Sw&amp;connectivity product overview [compatibility mode]
Sw&amp;connectivity product overview [compatibility mode]Sw&amp;connectivity product overview [compatibility mode]
Sw&amp;connectivity product overview [compatibility mode]
 
SNMP Demystified Part-II
SNMP Demystified Part-IISNMP Demystified Part-II
SNMP Demystified Part-II
 
Network Vulnerabilities And Cyber Kill Chain Essay
Network Vulnerabilities And Cyber Kill Chain EssayNetwork Vulnerabilities And Cyber Kill Chain Essay
Network Vulnerabilities And Cyber Kill Chain Essay
 
Network Penetration Testing
Network Penetration TestingNetwork Penetration Testing
Network Penetration Testing
 
L1803027588
L1803027588L1803027588
L1803027588
 
NON-INTRUSIVE REMOTE MONITORING OF SERVICES IN A DATA CENTRE
NON-INTRUSIVE REMOTE MONITORING OF SERVICES IN A DATA CENTRENON-INTRUSIVE REMOTE MONITORING OF SERVICES IN A DATA CENTRE
NON-INTRUSIVE REMOTE MONITORING OF SERVICES IN A DATA CENTRE
 
Simple Network Management Protocole
Simple Network Management ProtocoleSimple Network Management Protocole
Simple Network Management Protocole
 
IBM Spectrum Scale Network Flows
IBM Spectrum Scale Network FlowsIBM Spectrum Scale Network Flows
IBM Spectrum Scale Network Flows
 
MobZabbix.pptx
MobZabbix.pptxMobZabbix.pptx
MobZabbix.pptx
 
Network Monitoring Tools
Network Monitoring ToolsNetwork Monitoring Tools
Network Monitoring Tools
 

Recently uploaded

Malibou Pitch Deck For Its €3M Seed Round
Malibou Pitch Deck For Its €3M Seed RoundMalibou Pitch Deck For Its €3M Seed Round
Malibou Pitch Deck For Its €3M Seed Round
sjcobrien
 
Hand Rolled Applicative User Validation Code Kata
Hand Rolled Applicative User ValidationCode KataHand Rolled Applicative User ValidationCode Kata
Hand Rolled Applicative User Validation Code Kata
Philip Schwarz
 
Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Need for Speed: Removing speed bumps from your Symfony projects ⚡️Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Łukasz Chruściel
 
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
Łukasz Chruściel
 
UI5con 2024 - Keynote: Latest News about UI5 and it’s Ecosystem
UI5con 2024 - Keynote: Latest News about UI5 and it’s EcosystemUI5con 2024 - Keynote: Latest News about UI5 and it’s Ecosystem
UI5con 2024 - Keynote: Latest News about UI5 and it’s Ecosystem
Peter Muessig
 
All you need to know about Spring Boot and GraalVM
All you need to know about Spring Boot and GraalVMAll you need to know about Spring Boot and GraalVM
All you need to know about Spring Boot and GraalVM
Alina Yurenko
 
8 Best Automated Android App Testing Tool and Framework in 2024.pdf
8 Best Automated Android App Testing Tool and Framework in 2024.pdf8 Best Automated Android App Testing Tool and Framework in 2024.pdf
8 Best Automated Android App Testing Tool and Framework in 2024.pdf
kalichargn70th171
 
Microservice Teams - How the cloud changes the way we work
Microservice Teams - How the cloud changes the way we workMicroservice Teams - How the cloud changes the way we work
Microservice Teams - How the cloud changes the way we work
Sven Peters
 
WWDC 2024 Keynote Review: For CocoaCoders Austin
WWDC 2024 Keynote Review: For CocoaCoders AustinWWDC 2024 Keynote Review: For CocoaCoders Austin
WWDC 2024 Keynote Review: For CocoaCoders Austin
Patrick Weigel
 
Oracle Database 19c New Features for DBAs and Developers.pptx
Oracle Database 19c New Features for DBAs and Developers.pptxOracle Database 19c New Features for DBAs and Developers.pptx
Oracle Database 19c New Features for DBAs and Developers.pptx
Remote DBA Services
 
Fundamentals of Programming and Language Processors
Fundamentals of Programming and Language ProcessorsFundamentals of Programming and Language Processors
Fundamentals of Programming and Language Processors
Rakesh Kumar R
 
Odoo ERP Vs. Traditional ERP Systems – A Comparative Analysis
Odoo ERP Vs. Traditional ERP Systems – A Comparative AnalysisOdoo ERP Vs. Traditional ERP Systems – A Comparative Analysis
Odoo ERP Vs. Traditional ERP Systems – A Comparative Analysis
Envertis Software Solutions
 
Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...
Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...
Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...
XfilesPro
 
Artificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension FunctionsArtificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension Functions
Octavian Nadolu
 
E-commerce Development Services- Hornet Dynamics
E-commerce Development Services- Hornet DynamicsE-commerce Development Services- Hornet Dynamics
E-commerce Development Services- Hornet Dynamics
Hornet Dynamics
 
GreenCode-A-VSCode-Plugin--Dario-Jurisic
GreenCode-A-VSCode-Plugin--Dario-JurisicGreenCode-A-VSCode-Plugin--Dario-Jurisic
GreenCode-A-VSCode-Plugin--Dario-Jurisic
Green Software Development
 
SMS API Integration in Saudi Arabia| Best SMS API Service
SMS API Integration in Saudi Arabia| Best SMS API ServiceSMS API Integration in Saudi Arabia| Best SMS API Service
SMS API Integration in Saudi Arabia| Best SMS API Service
Yara Milbes
 
Top Benefits of Using Salesforce Healthcare CRM for Patient Management.pdf
Top Benefits of Using Salesforce Healthcare CRM for Patient Management.pdfTop Benefits of Using Salesforce Healthcare CRM for Patient Management.pdf
Top Benefits of Using Salesforce Healthcare CRM for Patient Management.pdf
VALiNTRY360
 
How to write a program in any programming language
How to write a program in any programming languageHow to write a program in any programming language
How to write a program in any programming language
Rakesh Kumar R
 
Measures in SQL (SIGMOD 2024, Santiago, Chile)
Measures in SQL (SIGMOD 2024, Santiago, Chile)Measures in SQL (SIGMOD 2024, Santiago, Chile)
Measures in SQL (SIGMOD 2024, Santiago, Chile)
Julian Hyde
 

Recently uploaded (20)

Malibou Pitch Deck For Its €3M Seed Round
Malibou Pitch Deck For Its €3M Seed RoundMalibou Pitch Deck For Its €3M Seed Round
Malibou Pitch Deck For Its €3M Seed Round
 
Hand Rolled Applicative User Validation Code Kata
Hand Rolled Applicative User ValidationCode KataHand Rolled Applicative User ValidationCode Kata
Hand Rolled Applicative User Validation Code Kata
 
Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Need for Speed: Removing speed bumps from your Symfony projects ⚡️Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Need for Speed: Removing speed bumps from your Symfony projects ⚡️
 
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
 
UI5con 2024 - Keynote: Latest News about UI5 and it’s Ecosystem
UI5con 2024 - Keynote: Latest News about UI5 and it’s EcosystemUI5con 2024 - Keynote: Latest News about UI5 and it’s Ecosystem
UI5con 2024 - Keynote: Latest News about UI5 and it’s Ecosystem
 
All you need to know about Spring Boot and GraalVM
All you need to know about Spring Boot and GraalVMAll you need to know about Spring Boot and GraalVM
All you need to know about Spring Boot and GraalVM
 
8 Best Automated Android App Testing Tool and Framework in 2024.pdf
8 Best Automated Android App Testing Tool and Framework in 2024.pdf8 Best Automated Android App Testing Tool and Framework in 2024.pdf
8 Best Automated Android App Testing Tool and Framework in 2024.pdf
 
Microservice Teams - How the cloud changes the way we work
Microservice Teams - How the cloud changes the way we workMicroservice Teams - How the cloud changes the way we work
Microservice Teams - How the cloud changes the way we work
 
WWDC 2024 Keynote Review: For CocoaCoders Austin
WWDC 2024 Keynote Review: For CocoaCoders AustinWWDC 2024 Keynote Review: For CocoaCoders Austin
WWDC 2024 Keynote Review: For CocoaCoders Austin
 
Oracle Database 19c New Features for DBAs and Developers.pptx
Oracle Database 19c New Features for DBAs and Developers.pptxOracle Database 19c New Features for DBAs and Developers.pptx
Oracle Database 19c New Features for DBAs and Developers.pptx
 
Fundamentals of Programming and Language Processors
Fundamentals of Programming and Language ProcessorsFundamentals of Programming and Language Processors
Fundamentals of Programming and Language Processors
 
Odoo ERP Vs. Traditional ERP Systems – A Comparative Analysis
Odoo ERP Vs. Traditional ERP Systems – A Comparative AnalysisOdoo ERP Vs. Traditional ERP Systems – A Comparative Analysis
Odoo ERP Vs. Traditional ERP Systems – A Comparative Analysis
 
Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...
Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...
Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...
 
Artificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension FunctionsArtificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension Functions
 
E-commerce Development Services- Hornet Dynamics
E-commerce Development Services- Hornet DynamicsE-commerce Development Services- Hornet Dynamics
E-commerce Development Services- Hornet Dynamics
 
GreenCode-A-VSCode-Plugin--Dario-Jurisic
GreenCode-A-VSCode-Plugin--Dario-JurisicGreenCode-A-VSCode-Plugin--Dario-Jurisic
GreenCode-A-VSCode-Plugin--Dario-Jurisic
 
SMS API Integration in Saudi Arabia| Best SMS API Service
SMS API Integration in Saudi Arabia| Best SMS API ServiceSMS API Integration in Saudi Arabia| Best SMS API Service
SMS API Integration in Saudi Arabia| Best SMS API Service
 
Top Benefits of Using Salesforce Healthcare CRM for Patient Management.pdf
Top Benefits of Using Salesforce Healthcare CRM for Patient Management.pdfTop Benefits of Using Salesforce Healthcare CRM for Patient Management.pdf
Top Benefits of Using Salesforce Healthcare CRM for Patient Management.pdf
 
How to write a program in any programming language
How to write a program in any programming languageHow to write a program in any programming language
How to write a program in any programming language
 
Measures in SQL (SIGMOD 2024, Santiago, Chile)
Measures in SQL (SIGMOD 2024, Santiago, Chile)Measures in SQL (SIGMOD 2024, Santiago, Chile)
Measures in SQL (SIGMOD 2024, Santiago, Chile)
 

OSMC 2009 | net-snmp: The forgotten classic by Dr. Michael Schwartzkopff

  • 1. R © MultiNET Services GmbH, Seite 1 MultiNET Services GmbH SNMP The forgotten classic OSMC Nürnberg, October, 28th 2009 Dr. Michael Schwartzkopff, MultiNET Services GmbH
  • 2. R © MultiNET Services GmbH, Seite 2 Outline •SNMP: Why? •The Building Blocks – ASN.1 – The LanguagE – MIB – The Definitions – SNMP – The Protocol •Implementation: Net-SNMP – The client – side: Manager – The server – side: Agents
  • 3. R © MultiNET Services GmbH, Seite 3 SNMP - Why? •Management of all entities in a network in a uniform way – Independent of the kind of the entity (network device, host, operating system, application) – Independent of the operation system – Independent of the application, i.e. all kinds of applications can be managed – Independent of any vendor! •Solution: A IETF standard (RFC) the meets all the needs.
  • 4. R © MultiNET Services GmbH, Seite 4 SNMP: History ● SNMP Version 1: Long time de-facto standard ● RFC 1155 ff. dating back to 1990. ● No need for security in that times: „Security is Not My Problem“ ● No real SNMP version 2 standard ● Every „guru“ had his own version ● Secure SNMP, 2p, 2u, 2c, 2*, ... ● In 2002 Jeff Case defined his own standard: ● Did not name it another v2, but version 3 ● Only standard in effect. Others are obsolete.
  • 5. R © MultiNET Services GmbH, Seite 5 The Language: ASN.1 •Since everybody has to talk anybody else the RFCs define a common language. Abstract Syntax Notation version 1 was chosen. •ASN.1 is a formal language that defines data types and their interpretation. – All participants understand „10“ the same way. •All definitions are written in ASN.1 so all participants in the communication know the same.
  • 6. R © MultiNET Services GmbH, Seite 6 Definition of the Basis of Information •Every manager must posses information about the entities it wants to manage. – What is this entity capable doing? •Only the manufacturer has good knowledge about the entity. – The manufacturer describes the manageable information of the entity and delivers it with the device, application, ... •This description is also written in ASN.1 •The description is called Management Information Base (MIB).
  • 7. R © MultiNET Services GmbH, Seite 7 Structure by Object Identifiers • All information has to be structured – Otherwise nobody would find the interesting information. • SNMP uses Object Identifier (OID) – Information is structured in a tree. The branches are separated by „.“ – IANA is the master of the internet part of the tree. – All management information can be found under iso.org.dod.internet (1.3.6.1) • Standardized information is located in 1.3.6.1.2.1 (mib-2) • Enterprise specific information can be found in 1.3.6.1.4.1 (private.enterprises) • All enterprises get a unique number.
  • 8. R © MultiNET Services GmbH, Seite 8 Management of OIDs • Like numbers (or prime numbers) there are enough OIDs. Not like IPv4 addresses. • Standard information (mib-2 with fixed OIDs) is defined in RFCs. – You find information about nearly all topics covert by RFCs: Internet Protocol, Host Information, Application Information, ... • No OID should be assigned twice – OID – Management within the enterprise. – If you made an error: Just abandon the tree and create a new one.
  • 9. R © MultiNET Services GmbH, Seite 9 Vendor MIBs • Be sure you buy equipment with proper SNMP support. • Ask the right people for the MIBs. – Most sales guys mix up SNMP with SMTP. • Most applications come with SNMP support. You just have to keep asking. – Samples: Databases, Cluster software, Rack hardware – Microsoft has sometimes surprisingly good SNMP support
  • 10. R © MultiNET Services GmbH, Seite 10 Sample OIDs Hersteller OID Bezeichnung Standard ifOutOctects Number of bytes sent out on a interface Standard hrStorageUsed Used space on a storage medium APC ch Remaining time of a battery Apache ApScoreBoardAccess Count Number of accesses to that server Check Point haState State of the cluster Cisco avgBusy5 Average CPU-load in the last 5 min. F5 globalStatCurrentConn Number of connections HP gdStatusPaperOut Paperstatus of the device Microsoft servErrorSystem Number of internal errors Oracle oraDBSysUserCalls „user calls“ from v$sysstat Rittal statusDoor1 Door status (open/closed/locked) Veritas jobState State of a NetBackup job
  • 11. R © MultiNET Services GmbH, Seite 11 SNMP: Entities on the net • In other applications the participants are called client and server. • In SNMP the two parties are called different: – The agent is the part that provides the information. Thus it is installed on the managed host. – The manager collects and the information. • Two ways of communication: – The manager asks the agent for information (get). – The agent notifies the manger about events (traps).
  • 12. R © MultiNET Services GmbH, Seite 12 SNMPv1 – The protocol The following messages exist: GetRequest: The manager asks for some information. GetNextRequest:The manager asks for the next information GetResponse: The agent answers a request providing information SetRequest: The manager sets some information on the agent. Trap: The agent notifies the manager about some event.
  • 13. R © MultiNET Services GmbH, Seite 13 SNMP encoding • SNMP encodes all information in protocol data units (PDUs) telling you – Here comes some information of the type TYPE – This information is NUMBER octets long – The information is INFORMATION • Same encoding scheme i.e. in LDAP, DHCP, RADIUS, Kerberos, ...
  • 14. R © MultiNET Services GmbH, Seite 14 SNMP myths • „SNMP is not secure“ – Yes. SNMPv1 was not designed to be secure. – SNMPv3 is secure. All massages can be authenticated and encrypted. – SNMPv3 provides a Role-based access model. • „SNMP is not safe“ (Traps are not acknowledged) – SNMPv3 provides Informs that are acknowledged • „SNMP floods the net / overloads my router“ – Depends on how you deploy SNMP. – A DNS server also can flood your net.
  • 15. R © MultiNET Services GmbH, Seite 15 net-SNMP: The Open Source Tool • Fully v1, v2c and v3 compatible with IPv4 and IPv6 • Command line management tools: – snmpget, snmpgetnext, snmpwalk, ... – snmpset – snmptranslate • Highly configurable SNMP agent: snmpd – Extensible with subagents • Send Traps: snmptrap • Receive traps: snmptrapd
  • 16. R © MultiNET Services GmbH, Seite 16 The Command Line snmpwalk -v<version> -c<community> <host> <OID> # snmpwalk -v 1 -c public localhost .system SysDescr.0 = STRING: Linux mucnb005 2.6.28-11-generic #42-Ubuntu SMP Fri Apr 17 01:57:59 UTC 2009 i686 SysContact.0 = STRING: misch@multinet.de SysName.0 = STRING: mucnb005 SysLocation.0 = STRING: under you fingertips
  • 17. R © MultiNET Services GmbH, Seite 17 Configuration of the SNMP Agent • View-based access control model for v1, v2c and v3 • User-based security model for v1, v2c and v3 • Restrictions on the addresses listening • Restrictions according to source addresses • Subagent control • Simple extension of the agent simply by editing the config file
  • 18. R © MultiNET Services GmbH, Seite 18 Process Monitoring proc <process> [max [min]] • prErrorFlag set if number of processes in ps -e not within [min,max] • Remote fix of the problem possible: – Program defined in procfix is executed – If the a flag prErrFix is set by the manager • Simple monitoring. Just check prErrorFlag: – „0“ means OK – „1“ means not OK.
  • 19. R © MultiNET Services GmbH, Seite 19 Storage Supervision • Complete status of storage devices in hrStorage – Size and Used Allocation Units of all attached devices. – Part of the HOST-RESOURCES-MIB (Standard) • Configuration option: disk PATH [ MINSPACE | MINPERCENT% ] – dskTotal, dskAvail, dskUsed, dskPercent – if dskAvail < MINSPACE then dskErrorFlag=1 • Simple monitoring in nagios possible
  • 20. R © MultiNET Services GmbH, Seite 20 System Load load MAX1 [MAX5 [MAX15]] • The agent includes system load counters: laLoad, laLoadInt, laLoadFloat • laErrFlag is set if the load is higher than the configured options
  • 21. R © MultiNET Services GmbH, Seite 21 Log File Monitoring Monitoring size of log files • Counting of occurrence of REGEXP in a file: logmatch NAME FILE CYCLETIME REGEX • Sample: logmatch apache-GETs /var/log/apache/access.log 60 GET.*HTTP.* – Counts all 60 seconds the number of accesses to the web server – Ideal for pnp4nagios
  • 22. R © MultiNET Services GmbH, Seite 22 Arbitrary Extensions • Running external commands (exec, extend, pass) • extend [MIBOID] NAME PROG ARGS indexes tables by the name of the program. So identical OIDs in the configuration still lead to different output. • Reading the MIB gives return code and output of the command.
  • 23. R © MultiNET Services GmbH, Seite 23 More Extensions • Embedded perl support • Dynamically loadable modules • Full proxy support – Asking this agent what the other agent does • Subagents: SMUX and AgentX
  • 24. R © MultiNET Services GmbH, Seite 24 Simple Integration into nagios • Plug-in check_snmp • Check command in nagios: define command { command_name check_snmp_linux_disk1 command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o dskPercent.1 -w :85 -c :95 }
  • 25. R © MultiNET Services GmbH, Seite 25 SNMP Myth (II) „As if designed to make the Gods of Hypocrisy die of laughter, SNMP is anything but simple.“ • Design goals of SNMP: – Interoperable – Easy to use, not to develop. • SNMP is sufficient simple to get most of the tasks done without too much effort.
  • 26. R © MultiNET Services GmbH, OSMC, Nürnberg, Nov, 28th, 2009. page: 26 Thank you very much for your attention! MultiNET Services GmbH