SlideShare uma empresa Scribd logo
1 de 20
Baixar para ler offline
How to Debug Common Agent Issues
Volker Fröhlich
12 Sep 2015, Zabbix Conference
The well-known Helpful tools Devil in the details Examples
Who am I?
Volker Fröhlich (volter)
Geizhals Preisvergleich Internet Services AG
(http://geizhals.at)
Action simulator, Zabbix blog, various frontend patches
Fedora packager, Openstreetmap contributor
The well-known Helpful tools Devil in the details Examples
Goals of this talk
Item unsupported, odd values, ...
It is useful to understand the inner workings
How to figure out what’s wrong – efficiently!
The well-known Helpful tools Devil in the details Examples
Overview
1 Well-known facts and gotchas
2 Helpful tools
3 The devil is in the details
4 Examples
The well-known Helpful tools Devil in the details Examples
Modes & Protocols
Passive agent
Server/proxy connects to
agent (TCP 10050)
Wire protocol
One connection per item
retrieval
Remote commands
Active agent
Agent connects to
server/proxy (TCP 10051)
JSON protocol
Configuration is requested
Auto-registration
Can buffer and submit
multiple values
Some items only work in
this mode
The well-known Helpful tools Devil in the details Examples
Modes & Protocols II
Sender/Trapper
Connects to proxy/server
(TCP 10051)
Single value or in bulk
Timestamped data
Processes
1 Main
1 Collector
x Passive workers
1 Active worker
The well-known Helpful tools Devil in the details Examples
Configuration files
Server, ServerActive
Hostname, HostnameItem
UserParameter, Modules
Include
The well-known Helpful tools Devil in the details Examples
Frontend level gotchas
Configuration cache delay, Discovery rule interval, deactivated
prototypes
Confused something (host/template), non-audited changes
(ZBX-2815, ZBX-4842)
Datatype wrong (delta as speed/s)
Macros
Quoting, escaping, passing arguments
The well-known Helpful tools Devil in the details Examples
System level gotchas
Not restarted
Wrong configuration file (symlink, agent/agentd)
Firewall (local or anywhere)
Permissions
SELinux/grsecurity/apparmor
sudo
Proxies
Timeouts Active/Passive
The well-known Helpful tools Devil in the details Examples
What if it’s something else?
Have you tried turning it off and on again?
Read error messages and know where to find them
Logging/Syslog
Debug level <= 3 (Information)
IPC issues, worker start, problems hostname/hostnameitem, No active checks on server, can not retrieve
some JSON key (agent protocol), active check x is not supported, Collector issues
Debug level 4 (Debug)
Which Zabbix function is running and when it finishes, exactly what is sent, what is received; Collector
details
Read the source code – src/libs/zbxsysinfo/
Sniff, trace, understand/speak the protocols
The well-known Helpful tools Devil in the details Examples
A list of useful tools
zabbix_get
(zabbix_agentd)
ps/pgrep
strace/truss/dtruss
ltrace/dtrace
ausearch
syslog
netstat/ss
ip/route/traceroute
tcpdump/Wireshark
getent/nslookup/dig/host
netcat/socat/telnet
The well-known Helpful tools Devil in the details Examples
strace and ltrace
# strace -f -p <pid1> [-p <pid2>]
[pid 18178] getpeername(6, <unfinished ...>
[pid 18178] <... getpeername resumed> {sa_family=AF_INET, sin_port=htons(48881),
sin_addr=inet_addr("127.0.0.1")}, [16]) = 0
[pid 18178] alarm(7) = 0
[pid 18178] read(6, "ZBXD1", 5) = 5
[pid 18178] read(6, "v0000000", 8) = 8
[pid 18178] read(6, "agent.pingn", 2047) = 11
# ltrace -f -p <pid1> [-p <pid2>]
getpeername(6, 0x7ffca5381ce0, 0x7ffca5381ca4, 0x7ffca5385fdf) = 0
strchr("127.0.0.1", ’,’) = nil
getaddrinfo("127.0.0.1", nil, 0x7ffca5381cb0, 0x7ffca5381ca8) = 0
freeaddrinfo(0xa1b0a0) = <void>
alarm(7) = 0
read(6, "ZBXD001", 5) = 5
read(6, "v", 8) = 8
read(6, "agent.pingn", 2047) = 11
alarm(0) = 7
strlen("agent.pingn") = 11
The well-known Helpful tools Devil in the details Examples
tcpdump
# tcpdump -i lo -nn port 10050
00:20:34.065579 IP 127.0.0.1.49134 > 127.0.0.1.10050: Flags [S], seq 640796155
00:20:34.065599 IP 127.0.0.1.10050 > 127.0.0.1.49134: Flags [S.], seq 2538515492
00:20:34.065612 IP 127.0.0.1.49134 > 127.0.0.1.10050: Flags [.], ack 1
00:20:34.065636 IP 127.0.0.1.49134 > 127.0.0.1.10050: Flags [P.], seq 1:6
00:20:34.065644 IP 127.0.0.1.10050 > 127.0.0.1.49134: Flags [.], ack 6
00:20:34.065670 IP 127.0.0.1.10050 > 127.0.0.1.49134: Flags [.], ack 14
00:20:34.065687 IP 127.0.0.1.49134 > 127.0.0.1.10050: Flags [P.], seq 14:25, ack 1
...
The well-known Helpful tools Devil in the details Examples
DNS
PTR record
res_init(), getaddrinfo()/getnameinfo()
getent ahosts <name or ip_address>
IPv6 (gai.conf)
Empty hosts file (localhost)
dnsmasq, nscd, bind, dnscache, ...
The well-known Helpful tools Devil in the details Examples
Other networking-related trouble
Routing (IPv6 again!)
ip route get <target_ip_address>
Latency, efficiency (like old HTTP)
Ephemeral port re-use with Windows hosts
Protocol src_ip:src_port dst_ip:src_port
Lost TCP segments
The well-known Helpful tools Devil in the details Examples
Timing/Timeouts
Which timeout applies and how often? Active, passive?
Scalability for active checks (ZBXNEXT-691)
Re-enable unsupported active agent items (ZBXNEXT-2633)
When are active items scheduled
Influence of network latency and lossyness
zabbix_get has a hard-coded timeout! (ZBXNEXT-1468)
Escaping agent timeouts
The well-known Helpful tools Devil in the details Examples
Other gotchas
Environment, shell
Testing with zabbix_agentd – No collector
hostnameitem and zabbix_sender (ZBXNEXT-1729)
Debugging zabbix_sender is only possible on the server/proxy
Zabbix doesn’t care about stderr or the exit code, empty
response disables item (ZBXNEXT-2230)
web.page.* does not use a HTTP client library
(ZBXNEXT-1816)
Order matters when submitting timestamped data with
zabbix_sender
LLD items
The well-known Helpful tools Devil in the details Examples
"Agent unreachable"
Bottom-up approach
The well-known Helpful tools Devil in the details Examples
"Agent is responding with a wrong value"
Poking/bisecting approach
zabbix_get locally –> Value OK
zabbix_get from server –> Value OK
Maybe a problem with name resolution in the server!
Log level 4 or tcpdump –> No incoming request
Ensure general connectivity –> OK
Obviously querying a different host
The well-known Helpful tools Devil in the details Examples
Contact information and readings
volter in #zabbix and #zabbix-de on Freenode IRC
volker.froehlich@geizhals.at
Readings
http://blog.zabbix.com/
mysterious-zabbix-problems-how-we-debug-them
http://zabbix.org/wiki/Troubleshooting
http://zabbix.org/wiki/Docs/protocols
Internetworking with TCP/IP, Vol. 1, Douglas E. Comer

Mais conteúdo relacionado

Mais procurados

Mais procurados (20)

Journée DevOps : Des dashboards pour tous avec ElasticSearch, Logstash et Kibana
Journée DevOps : Des dashboards pour tous avec ElasticSearch, Logstash et KibanaJournée DevOps : Des dashboards pour tous avec ElasticSearch, Logstash et Kibana
Journée DevOps : Des dashboards pour tous avec ElasticSearch, Logstash et Kibana
 
ELK stack at weibo.com
ELK stack at weibo.comELK stack at weibo.com
ELK stack at weibo.com
 
Erik Skytthe - Monitoring Mesos, Docker, Containers with Zabbix | ZabConf2016
Erik Skytthe - Monitoring Mesos, Docker, Containers with Zabbix | ZabConf2016Erik Skytthe - Monitoring Mesos, Docker, Containers with Zabbix | ZabConf2016
Erik Skytthe - Monitoring Mesos, Docker, Containers with Zabbix | ZabConf2016
 
{{more}} Kibana4
{{more}} Kibana4{{more}} Kibana4
{{more}} Kibana4
 
Logstash: Get to know your logs
Logstash: Get to know your logsLogstash: Get to know your logs
Logstash: Get to know your logs
 
Devel::NYTProf 2009-07 (OUTDATED, see 201008)
Devel::NYTProf 2009-07 (OUTDATED, see 201008)Devel::NYTProf 2009-07 (OUTDATED, see 201008)
Devel::NYTProf 2009-07 (OUTDATED, see 201008)
 
ChinaNetCloud - The Zabbix Database - Zabbix Conference 2014
ChinaNetCloud - The Zabbix Database - Zabbix Conference 2014ChinaNetCloud - The Zabbix Database - Zabbix Conference 2014
ChinaNetCloud - The Zabbix Database - Zabbix Conference 2014
 
Zabbix Console
Zabbix ConsoleZabbix Console
Zabbix Console
 
Logstash-Elasticsearch-Kibana
Logstash-Elasticsearch-KibanaLogstash-Elasticsearch-Kibana
Logstash-Elasticsearch-Kibana
 
Logstash family introduction
Logstash family introductionLogstash family introduction
Logstash family introduction
 
Large Scale Log collection using LogStash & mongoDB
Large Scale Log collection using LogStash & mongoDB Large Scale Log collection using LogStash & mongoDB
Large Scale Log collection using LogStash & mongoDB
 
Rihards Olups - Zabbix at Nokia - Case Study
Rihards Olups - Zabbix at Nokia - Case StudyRihards Olups - Zabbix at Nokia - Case Study
Rihards Olups - Zabbix at Nokia - Case Study
 
Managing Your Security Logs with Elasticsearch
Managing Your Security Logs with ElasticsearchManaging Your Security Logs with Elasticsearch
Managing Your Security Logs with Elasticsearch
 
Docker Monitoring Webinar
Docker Monitoring  WebinarDocker Monitoring  Webinar
Docker Monitoring Webinar
 
Application Logging With The ELK Stack
Application Logging With The ELK StackApplication Logging With The ELK Stack
Application Logging With The ELK Stack
 
Securing Prometheus exporters using HashiCorp Vault
Securing Prometheus exporters using HashiCorp VaultSecuring Prometheus exporters using HashiCorp Vault
Securing Prometheus exporters using HashiCorp Vault
 
Nomad + Flatcar: a harmonious marriage of lightweights
Nomad + Flatcar: a harmonious marriage of lightweightsNomad + Flatcar: a harmonious marriage of lightweights
Nomad + Flatcar: a harmonious marriage of lightweights
 
Zabbix Performance Tuning
Zabbix Performance TuningZabbix Performance Tuning
Zabbix Performance Tuning
 
Monitoring with Syslog and EventMachine
Monitoring with Syslog and EventMachineMonitoring with Syslog and EventMachine
Monitoring with Syslog and EventMachine
 
Building Scalable, Distributed Job Queues with Redis and Redis::Client
Building Scalable, Distributed Job Queues with Redis and Redis::ClientBuilding Scalable, Distributed Job Queues with Redis and Redis::Client
Building Scalable, Distributed Job Queues with Redis and Redis::Client
 

Destaque

Poly Shield Technologies Incorporated SHPR - Equities.com Research Report
Poly Shield Technologies Incorporated SHPR - Equities.com Research ReportPoly Shield Technologies Incorporated SHPR - Equities.com Research Report
Poly Shield Technologies Incorporated SHPR - Equities.com Research Report
Equities.com Smith
 
Group 7 presentation: uGym
Group 7 presentation: uGym Group 7 presentation: uGym
Group 7 presentation: uGym
FazilatAhmed
 
monumentoalascortes
monumentoalascortesmonumentoalascortes
monumentoalascortes
jose
 
Factoring opportunities in Spain, an analysis of companies in the IBEX 35
Factoring opportunities in Spain, an analysis of companies in the IBEX 35Factoring opportunities in Spain, an analysis of companies in the IBEX 35
Factoring opportunities in Spain, an analysis of companies in the IBEX 35
Nina Schmiedt
 
Manual asd 250 sinal e voz
Manual asd 250 sinal e vozManual asd 250 sinal e voz
Manual asd 250 sinal e voz
euromaxsecurity
 
Xinran Ke_Portfolio
Xinran Ke_PortfolioXinran Ke_Portfolio
Xinran Ke_Portfolio
Xinran Ke
 

Destaque (20)

ES Final Paper
ES Final PaperES Final Paper
ES Final Paper
 
Biomin Aquaculture Days
Biomin Aquaculture DaysBiomin Aquaculture Days
Biomin Aquaculture Days
 
Resumen com-esc
Resumen com-escResumen com-esc
Resumen com-esc
 
Poly Shield Technologies Incorporated SHPR - Equities.com Research Report
Poly Shield Technologies Incorporated SHPR - Equities.com Research ReportPoly Shield Technologies Incorporated SHPR - Equities.com Research Report
Poly Shield Technologies Incorporated SHPR - Equities.com Research Report
 
AGS Portfolio 2012 - English
AGS Portfolio 2012 - EnglishAGS Portfolio 2012 - English
AGS Portfolio 2012 - English
 
Sa try out schedule
Sa try out scheduleSa try out schedule
Sa try out schedule
 
Erase una vez. taller 2013
Erase una vez. taller 2013Erase una vez. taller 2013
Erase una vez. taller 2013
 
Group 7 presentation: uGym
Group 7 presentation: uGym Group 7 presentation: uGym
Group 7 presentation: uGym
 
Munit24
Munit24Munit24
Munit24
 
2015-2016 PALMY Ad Award Winners
2015-2016 PALMY Ad Award Winners2015-2016 PALMY Ad Award Winners
2015-2016 PALMY Ad Award Winners
 
Cosmoprof Bolonia 2010 מכון היצוא - תערוכת
Cosmoprof Bolonia 2010 מכון היצוא - תערוכתCosmoprof Bolonia 2010 מכון היצוא - תערוכת
Cosmoprof Bolonia 2010 מכון היצוא - תערוכת
 
Gubernamental final
Gubernamental finalGubernamental final
Gubernamental final
 
The Future of Aboriginal Relations: Engaging Saskatchewan’s Fastest Growing P...
The Future of Aboriginal Relations: Engaging Saskatchewan’s Fastest Growing P...The Future of Aboriginal Relations: Engaging Saskatchewan’s Fastest Growing P...
The Future of Aboriginal Relations: Engaging Saskatchewan’s Fastest Growing P...
 
Best US location for Technology businesses
Best US location for Technology businessesBest US location for Technology businesses
Best US location for Technology businesses
 
monumentoalascortes
monumentoalascortesmonumentoalascortes
monumentoalascortes
 
Factoring opportunities in Spain, an analysis of companies in the IBEX 35
Factoring opportunities in Spain, an analysis of companies in the IBEX 35Factoring opportunities in Spain, an analysis of companies in the IBEX 35
Factoring opportunities in Spain, an analysis of companies in the IBEX 35
 
El libro rojo de C&C
El libro rojo de C&CEl libro rojo de C&C
El libro rojo de C&C
 
Conmoto garden katalog
Conmoto garden katalogConmoto garden katalog
Conmoto garden katalog
 
Manual asd 250 sinal e voz
Manual asd 250 sinal e vozManual asd 250 sinal e voz
Manual asd 250 sinal e voz
 
Xinran Ke_Portfolio
Xinran Ke_PortfolioXinran Ke_Portfolio
Xinran Ke_Portfolio
 

Semelhante a Volker Fröhlich - How to Debug Common Agent Issues

Simplest-Ownage-Human-Observed… - Routers
 Simplest-Ownage-Human-Observed… - Routers Simplest-Ownage-Human-Observed… - Routers
Simplest-Ownage-Human-Observed… - Routers
Logicaltrust pl
 
Filip palian mateuszkocielski. simplest ownage human observed… routers
Filip palian mateuszkocielski. simplest ownage human observed… routersFilip palian mateuszkocielski. simplest ownage human observed… routers
Filip palian mateuszkocielski. simplest ownage human observed… routers
Yury Chemerkin
 
breed_python_tx_redacted
breed_python_tx_redactedbreed_python_tx_redacted
breed_python_tx_redacted
Ryan Breed
 
Search Lucene
Search LuceneSearch Lucene
Search Lucene
Jeremy Coates
 
bh-us-02-murphey-freebsd
bh-us-02-murphey-freebsdbh-us-02-murphey-freebsd
bh-us-02-murphey-freebsd
webuploader
 
Fantastic Red Team Attacks and How to Find Them
Fantastic Red Team Attacks and How to Find ThemFantastic Red Team Attacks and How to Find Them
Fantastic Red Team Attacks and How to Find Them
Ross Wolf
 
JmDNS : Service Discovery for the 21st Century
 JmDNS : Service Discovery for the 21st Century JmDNS : Service Discovery for the 21st Century
JmDNS : Service Discovery for the 21st Century
Gnu Alsonative
 
JmDNS : Service Discovery for the 21st Century
 JmDNS : Service Discovery for the 21st Century JmDNS : Service Discovery for the 21st Century
JmDNS : Service Discovery for the 21st Century
Gnu Alsonative
 

Semelhante a Volker Fröhlich - How to Debug Common Agent Issues (20)

Log4Shell - Armageddon or Opportunity.pptx
Log4Shell - Armageddon or Opportunity.pptxLog4Shell - Armageddon or Opportunity.pptx
Log4Shell - Armageddon or Opportunity.pptx
 
Os Whitaker
Os WhitakerOs Whitaker
Os Whitaker
 
Simplest-Ownage-Human-Observed… - Routers
 Simplest-Ownage-Human-Observed… - Routers Simplest-Ownage-Human-Observed… - Routers
Simplest-Ownage-Human-Observed… - Routers
 
Filip palian mateuszkocielski. simplest ownage human observed… routers
Filip palian mateuszkocielski. simplest ownage human observed… routersFilip palian mateuszkocielski. simplest ownage human observed… routers
Filip palian mateuszkocielski. simplest ownage human observed… routers
 
breed_python_tx_redacted
breed_python_tx_redactedbreed_python_tx_redacted
breed_python_tx_redacted
 
Real World Application Threat Modelling By Example
Real World Application Threat Modelling By ExampleReal World Application Threat Modelling By Example
Real World Application Threat Modelling By Example
 
Search Lucene
Search LuceneSearch Lucene
Search Lucene
 
Open source network forensics and advanced pcap analysis
Open source network forensics and advanced pcap analysisOpen source network forensics and advanced pcap analysis
Open source network forensics and advanced pcap analysis
 
bh-us-02-murphey-freebsd
bh-us-02-murphey-freebsdbh-us-02-murphey-freebsd
bh-us-02-murphey-freebsd
 
Penetration Testing Boot CAMP
Penetration Testing Boot CAMPPenetration Testing Boot CAMP
Penetration Testing Boot CAMP
 
InSecure Remote Operations - NullCon 2023 by Yossi Sassi
InSecure Remote Operations - NullCon 2023 by Yossi SassiInSecure Remote Operations - NullCon 2023 by Yossi Sassi
InSecure Remote Operations - NullCon 2023 by Yossi Sassi
 
[Ruxcon Monthly Sydney 2011] Proprietary Protocols Reverse Engineering : Rese...
[Ruxcon Monthly Sydney 2011] Proprietary Protocols Reverse Engineering : Rese...[Ruxcon Monthly Sydney 2011] Proprietary Protocols Reverse Engineering : Rese...
[Ruxcon Monthly Sydney 2011] Proprietary Protocols Reverse Engineering : Rese...
 
Using Play Framework 2 in production
Using Play Framework 2 in productionUsing Play Framework 2 in production
Using Play Framework 2 in production
 
Fantastic Red Team Attacks and How to Find Them
Fantastic Red Team Attacks and How to Find ThemFantastic Red Team Attacks and How to Find Them
Fantastic Red Team Attacks and How to Find Them
 
Multi-Threading
Multi-ThreadingMulti-Threading
Multi-Threading
 
Grâce aux tags Varnish, j'ai switché ma prod sur Raspberry Pi
Grâce aux tags Varnish, j'ai switché ma prod sur Raspberry PiGrâce aux tags Varnish, j'ai switché ma prod sur Raspberry Pi
Grâce aux tags Varnish, j'ai switché ma prod sur Raspberry Pi
 
Original slides from Ryan Dahl's NodeJs intro talk
Original slides from Ryan Dahl's NodeJs intro talkOriginal slides from Ryan Dahl's NodeJs intro talk
Original slides from Ryan Dahl's NodeJs intro talk
 
opensource Monitoring Tool , an overview
opensource Monitoring Tool , an overviewopensource Monitoring Tool , an overview
opensource Monitoring Tool , an overview
 
JmDNS : Service Discovery for the 21st Century
 JmDNS : Service Discovery for the 21st Century JmDNS : Service Discovery for the 21st Century
JmDNS : Service Discovery for the 21st Century
 
JmDNS : Service Discovery for the 21st Century
 JmDNS : Service Discovery for the 21st Century JmDNS : Service Discovery for the 21st Century
JmDNS : Service Discovery for the 21st Century
 

Mais de Zabbix

Mais de Zabbix (20)

Zabbix Conference LatAm 2016 - Jessian Ferreira - Wireless with Zabbix
Zabbix Conference LatAm 2016 - Jessian Ferreira - Wireless with ZabbixZabbix Conference LatAm 2016 - Jessian Ferreira - Wireless with Zabbix
Zabbix Conference LatAm 2016 - Jessian Ferreira - Wireless with Zabbix
 
Zabbix Conference LatAm 2016 - Andre Deo - Zabbix Brazil Community
Zabbix Conference LatAm 2016 - Andre Deo - Zabbix Brazil CommunityZabbix Conference LatAm 2016 - Andre Deo - Zabbix Brazil Community
Zabbix Conference LatAm 2016 - Andre Deo - Zabbix Brazil Community
 
Zabbix Conference LatAm 2016 - Jorge Pretel - Low Level Discovery for ODBC an...
Zabbix Conference LatAm 2016 - Jorge Pretel - Low Level Discovery for ODBC an...Zabbix Conference LatAm 2016 - Jorge Pretel - Low Level Discovery for ODBC an...
Zabbix Conference LatAm 2016 - Jorge Pretel - Low Level Discovery for ODBC an...
 
Zabbix Conference LatAm 2016 - Andre Deo - SNMP and Zabbix
Zabbix Conference LatAm 2016 - Andre Deo - SNMP and ZabbixZabbix Conference LatAm 2016 - Andre Deo - SNMP and Zabbix
Zabbix Conference LatAm 2016 - Andre Deo - SNMP and Zabbix
 
Zabbix Conference LatAm 2016 - Rodrigo Mohr - Challenges on Large Env with Or...
Zabbix Conference LatAm 2016 - Rodrigo Mohr - Challenges on Large Env with Or...Zabbix Conference LatAm 2016 - Rodrigo Mohr - Challenges on Large Env with Or...
Zabbix Conference LatAm 2016 - Rodrigo Mohr - Challenges on Large Env with Or...
 
Zabbix Conference LatAm 2016 - Marcio Prop - Monitoring Complex Environments ...
Zabbix Conference LatAm 2016 - Marcio Prop - Monitoring Complex Environments ...Zabbix Conference LatAm 2016 - Marcio Prop - Monitoring Complex Environments ...
Zabbix Conference LatAm 2016 - Marcio Prop - Monitoring Complex Environments ...
 
Zabbix Conference LatAm 2016 - Daniel Nasiloski - Extending Zabbix - Interact...
Zabbix Conference LatAm 2016 - Daniel Nasiloski - Extending Zabbix - Interact...Zabbix Conference LatAm 2016 - Daniel Nasiloski - Extending Zabbix - Interact...
Zabbix Conference LatAm 2016 - Daniel Nasiloski - Extending Zabbix - Interact...
 
Zabbix Conference LatAm 2016 - Filipe Paternot - Zbx@Globo Automation+Integra...
Zabbix Conference LatAm 2016 - Filipe Paternot - Zbx@Globo Automation+Integra...Zabbix Conference LatAm 2016 - Filipe Paternot - Zbx@Globo Automation+Integra...
Zabbix Conference LatAm 2016 - Filipe Paternot - Zbx@Globo Automation+Integra...
 
Zabbix Conference LatAm 2016 - Douglas Esteves - Zabbix at UNICAMP
Zabbix Conference LatAm 2016 - Douglas Esteves - Zabbix at UNICAMPZabbix Conference LatAm 2016 - Douglas Esteves - Zabbix at UNICAMP
Zabbix Conference LatAm 2016 - Douglas Esteves - Zabbix at UNICAMP
 
Ryan Armstrong - Monitoring More Than 6000 Devices in Zabbix | ZabConf2016
Ryan Armstrong - Monitoring More Than 6000 Devices in Zabbix | ZabConf2016Ryan Armstrong - Monitoring More Than 6000 Devices in Zabbix | ZabConf2016
Ryan Armstrong - Monitoring More Than 6000 Devices in Zabbix | ZabConf2016
 
Rafael Martinez Guerrero - Zabbix at the University of Oslo | ZabConf2016
Rafael Martinez Guerrero - Zabbix at the University of Oslo | ZabConf2016Rafael Martinez Guerrero - Zabbix at the University of Oslo | ZabConf2016
Rafael Martinez Guerrero - Zabbix at the University of Oslo | ZabConf2016
 
Wolfgang Alper - Zabbix Meets OPS Control / Rundeck | ZabConf2016
Wolfgang Alper - Zabbix Meets OPS Control / Rundeck | ZabConf2016Wolfgang Alper - Zabbix Meets OPS Control / Rundeck | ZabConf2016
Wolfgang Alper - Zabbix Meets OPS Control / Rundeck | ZabConf2016
 
Wolfgang Alper - Zabbix Meets OPS Control / Rundeck | ZabConf2016
Wolfgang Alper - Zabbix Meets OPS Control / Rundeck | ZabConf2016Wolfgang Alper - Zabbix Meets OPS Control / Rundeck | ZabConf2016
Wolfgang Alper - Zabbix Meets OPS Control / Rundeck | ZabConf2016
 
Sumit Goel - Monitoring Cloud Applications Using Zabbix | ZabConf2016
Sumit Goel - Monitoring Cloud Applications Using Zabbix | ZabConf2016Sumit Goel - Monitoring Cloud Applications Using Zabbix | ZabConf2016
Sumit Goel - Monitoring Cloud Applications Using Zabbix | ZabConf2016
 
Raymond Kuiper - Zen and The Art of Zabbix Template Design | ZabConf2016
Raymond Kuiper - Zen and The Art of Zabbix Template Design | ZabConf2016Raymond Kuiper - Zen and The Art of Zabbix Template Design | ZabConf2016
Raymond Kuiper - Zen and The Art of Zabbix Template Design | ZabConf2016
 
Dimitri Bellini and Pietro Antonacci - Manage Zabbix Proxies in Remote Networ...
Dimitri Bellini and Pietro Antonacci - Manage Zabbix Proxies in Remote Networ...Dimitri Bellini and Pietro Antonacci - Manage Zabbix Proxies in Remote Networ...
Dimitri Bellini and Pietro Antonacci - Manage Zabbix Proxies in Remote Networ...
 
Mikhail Serkov - Zabbix for HPC Cluster Support | ZabConf2016
Mikhail Serkov - Zabbix for HPC Cluster Support | ZabConf2016Mikhail Serkov - Zabbix for HPC Cluster Support | ZabConf2016
Mikhail Serkov - Zabbix for HPC Cluster Support | ZabConf2016
 
Lukáš Malý - Log management ELISA controlled by Zabbix | ZabConf2016
Lukáš Malý - Log management ELISA controlled by Zabbix | ZabConf2016Lukáš Malý - Log management ELISA controlled by Zabbix | ZabConf2016
Lukáš Malý - Log management ELISA controlled by Zabbix | ZabConf2016
 
Konstantin Yakovlev - Event Analysis Toolset | ZabConf2016
Konstantin Yakovlev - Event Analysis Toolset | ZabConf2016Konstantin Yakovlev - Event Analysis Toolset | ZabConf2016
Konstantin Yakovlev - Event Analysis Toolset | ZabConf2016
 
Oleg Ivanivskyi - Lessons Learned While Being On-Site | ZabConf2016
Oleg Ivanivskyi - Lessons Learned While Being On-Site | ZabConf2016Oleg Ivanivskyi - Lessons Learned While Being On-Site | ZabConf2016
Oleg Ivanivskyi - Lessons Learned While Being On-Site | ZabConf2016
 

Último

Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night StandCall Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...
👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...
👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...
karishmasinghjnh
 
➥🔝 7737669865 🔝▻ mahisagar Call-girls in Women Seeking Men 🔝mahisagar🔝 Esc...
➥🔝 7737669865 🔝▻ mahisagar Call-girls in Women Seeking Men  🔝mahisagar🔝   Esc...➥🔝 7737669865 🔝▻ mahisagar Call-girls in Women Seeking Men  🔝mahisagar🔝   Esc...
➥🔝 7737669865 🔝▻ mahisagar Call-girls in Women Seeking Men 🔝mahisagar🔝 Esc...
amitlee9823
 
Call Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night StandCall Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
➥🔝 7737669865 🔝▻ Thrissur Call-girls in Women Seeking Men 🔝Thrissur🔝 Escor...
➥🔝 7737669865 🔝▻ Thrissur Call-girls in Women Seeking Men  🔝Thrissur🔝   Escor...➥🔝 7737669865 🔝▻ Thrissur Call-girls in Women Seeking Men  🔝Thrissur🔝   Escor...
➥🔝 7737669865 🔝▻ Thrissur Call-girls in Women Seeking Men 🔝Thrissur🔝 Escor...
amitlee9823
 
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
amitlee9823
 
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
amitlee9823
 
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
amitlee9823
 
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get CytotecAbortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Riyadh +966572737505 get cytotec
 
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
amitlee9823
 
➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men 🔝Dindigul🔝 Escor...
➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men  🔝Dindigul🔝   Escor...➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men  🔝Dindigul🔝   Escor...
➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men 🔝Dindigul🔝 Escor...
amitlee9823
 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 

Último (20)

Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 nightCheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
 
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
 
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night StandCall Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
 
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% SecureCall me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
 
👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...
👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...
👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...
 
Predicting Loan Approval: A Data Science Project
Predicting Loan Approval: A Data Science ProjectPredicting Loan Approval: A Data Science Project
Predicting Loan Approval: A Data Science Project
 
➥🔝 7737669865 🔝▻ mahisagar Call-girls in Women Seeking Men 🔝mahisagar🔝 Esc...
➥🔝 7737669865 🔝▻ mahisagar Call-girls in Women Seeking Men  🔝mahisagar🔝   Esc...➥🔝 7737669865 🔝▻ mahisagar Call-girls in Women Seeking Men  🔝mahisagar🔝   Esc...
➥🔝 7737669865 🔝▻ mahisagar Call-girls in Women Seeking Men 🔝mahisagar🔝 Esc...
 
Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFx
 
Call Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night StandCall Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night Stand
 
➥🔝 7737669865 🔝▻ Thrissur Call-girls in Women Seeking Men 🔝Thrissur🔝 Escor...
➥🔝 7737669865 🔝▻ Thrissur Call-girls in Women Seeking Men  🔝Thrissur🔝   Escor...➥🔝 7737669865 🔝▻ Thrissur Call-girls in Women Seeking Men  🔝Thrissur🔝   Escor...
➥🔝 7737669865 🔝▻ Thrissur Call-girls in Women Seeking Men 🔝Thrissur🔝 Escor...
 
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
 
Detecting Credit Card Fraud: A Machine Learning Approach
Detecting Credit Card Fraud: A Machine Learning ApproachDetecting Credit Card Fraud: A Machine Learning Approach
Detecting Credit Card Fraud: A Machine Learning Approach
 
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
 
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
 
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get CytotecAbortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
 
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
 
➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men 🔝Dindigul🔝 Escor...
➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men  🔝Dindigul🔝   Escor...➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men  🔝Dindigul🔝   Escor...
➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men 🔝Dindigul🔝 Escor...
 
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24  Building Real-Time Pipelines With FLaNKDATA SUMMIT 24  Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
 
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 

Volker Fröhlich - How to Debug Common Agent Issues

  • 1. How to Debug Common Agent Issues Volker Fröhlich 12 Sep 2015, Zabbix Conference
  • 2. The well-known Helpful tools Devil in the details Examples Who am I? Volker Fröhlich (volter) Geizhals Preisvergleich Internet Services AG (http://geizhals.at) Action simulator, Zabbix blog, various frontend patches Fedora packager, Openstreetmap contributor
  • 3. The well-known Helpful tools Devil in the details Examples Goals of this talk Item unsupported, odd values, ... It is useful to understand the inner workings How to figure out what’s wrong – efficiently!
  • 4. The well-known Helpful tools Devil in the details Examples Overview 1 Well-known facts and gotchas 2 Helpful tools 3 The devil is in the details 4 Examples
  • 5. The well-known Helpful tools Devil in the details Examples Modes & Protocols Passive agent Server/proxy connects to agent (TCP 10050) Wire protocol One connection per item retrieval Remote commands Active agent Agent connects to server/proxy (TCP 10051) JSON protocol Configuration is requested Auto-registration Can buffer and submit multiple values Some items only work in this mode
  • 6. The well-known Helpful tools Devil in the details Examples Modes & Protocols II Sender/Trapper Connects to proxy/server (TCP 10051) Single value or in bulk Timestamped data Processes 1 Main 1 Collector x Passive workers 1 Active worker
  • 7. The well-known Helpful tools Devil in the details Examples Configuration files Server, ServerActive Hostname, HostnameItem UserParameter, Modules Include
  • 8. The well-known Helpful tools Devil in the details Examples Frontend level gotchas Configuration cache delay, Discovery rule interval, deactivated prototypes Confused something (host/template), non-audited changes (ZBX-2815, ZBX-4842) Datatype wrong (delta as speed/s) Macros Quoting, escaping, passing arguments
  • 9. The well-known Helpful tools Devil in the details Examples System level gotchas Not restarted Wrong configuration file (symlink, agent/agentd) Firewall (local or anywhere) Permissions SELinux/grsecurity/apparmor sudo Proxies Timeouts Active/Passive
  • 10. The well-known Helpful tools Devil in the details Examples What if it’s something else? Have you tried turning it off and on again? Read error messages and know where to find them Logging/Syslog Debug level <= 3 (Information) IPC issues, worker start, problems hostname/hostnameitem, No active checks on server, can not retrieve some JSON key (agent protocol), active check x is not supported, Collector issues Debug level 4 (Debug) Which Zabbix function is running and when it finishes, exactly what is sent, what is received; Collector details Read the source code – src/libs/zbxsysinfo/ Sniff, trace, understand/speak the protocols
  • 11. The well-known Helpful tools Devil in the details Examples A list of useful tools zabbix_get (zabbix_agentd) ps/pgrep strace/truss/dtruss ltrace/dtrace ausearch syslog netstat/ss ip/route/traceroute tcpdump/Wireshark getent/nslookup/dig/host netcat/socat/telnet
  • 12. The well-known Helpful tools Devil in the details Examples strace and ltrace # strace -f -p <pid1> [-p <pid2>] [pid 18178] getpeername(6, <unfinished ...> [pid 18178] <... getpeername resumed> {sa_family=AF_INET, sin_port=htons(48881), sin_addr=inet_addr("127.0.0.1")}, [16]) = 0 [pid 18178] alarm(7) = 0 [pid 18178] read(6, "ZBXD1", 5) = 5 [pid 18178] read(6, "v0000000", 8) = 8 [pid 18178] read(6, "agent.pingn", 2047) = 11 # ltrace -f -p <pid1> [-p <pid2>] getpeername(6, 0x7ffca5381ce0, 0x7ffca5381ca4, 0x7ffca5385fdf) = 0 strchr("127.0.0.1", ’,’) = nil getaddrinfo("127.0.0.1", nil, 0x7ffca5381cb0, 0x7ffca5381ca8) = 0 freeaddrinfo(0xa1b0a0) = <void> alarm(7) = 0 read(6, "ZBXD001", 5) = 5 read(6, "v", 8) = 8 read(6, "agent.pingn", 2047) = 11 alarm(0) = 7 strlen("agent.pingn") = 11
  • 13. The well-known Helpful tools Devil in the details Examples tcpdump # tcpdump -i lo -nn port 10050 00:20:34.065579 IP 127.0.0.1.49134 > 127.0.0.1.10050: Flags [S], seq 640796155 00:20:34.065599 IP 127.0.0.1.10050 > 127.0.0.1.49134: Flags [S.], seq 2538515492 00:20:34.065612 IP 127.0.0.1.49134 > 127.0.0.1.10050: Flags [.], ack 1 00:20:34.065636 IP 127.0.0.1.49134 > 127.0.0.1.10050: Flags [P.], seq 1:6 00:20:34.065644 IP 127.0.0.1.10050 > 127.0.0.1.49134: Flags [.], ack 6 00:20:34.065670 IP 127.0.0.1.10050 > 127.0.0.1.49134: Flags [.], ack 14 00:20:34.065687 IP 127.0.0.1.49134 > 127.0.0.1.10050: Flags [P.], seq 14:25, ack 1 ...
  • 14. The well-known Helpful tools Devil in the details Examples DNS PTR record res_init(), getaddrinfo()/getnameinfo() getent ahosts <name or ip_address> IPv6 (gai.conf) Empty hosts file (localhost) dnsmasq, nscd, bind, dnscache, ...
  • 15. The well-known Helpful tools Devil in the details Examples Other networking-related trouble Routing (IPv6 again!) ip route get <target_ip_address> Latency, efficiency (like old HTTP) Ephemeral port re-use with Windows hosts Protocol src_ip:src_port dst_ip:src_port Lost TCP segments
  • 16. The well-known Helpful tools Devil in the details Examples Timing/Timeouts Which timeout applies and how often? Active, passive? Scalability for active checks (ZBXNEXT-691) Re-enable unsupported active agent items (ZBXNEXT-2633) When are active items scheduled Influence of network latency and lossyness zabbix_get has a hard-coded timeout! (ZBXNEXT-1468) Escaping agent timeouts
  • 17. The well-known Helpful tools Devil in the details Examples Other gotchas Environment, shell Testing with zabbix_agentd – No collector hostnameitem and zabbix_sender (ZBXNEXT-1729) Debugging zabbix_sender is only possible on the server/proxy Zabbix doesn’t care about stderr or the exit code, empty response disables item (ZBXNEXT-2230) web.page.* does not use a HTTP client library (ZBXNEXT-1816) Order matters when submitting timestamped data with zabbix_sender LLD items
  • 18. The well-known Helpful tools Devil in the details Examples "Agent unreachable" Bottom-up approach
  • 19. The well-known Helpful tools Devil in the details Examples "Agent is responding with a wrong value" Poking/bisecting approach zabbix_get locally –> Value OK zabbix_get from server –> Value OK Maybe a problem with name resolution in the server! Log level 4 or tcpdump –> No incoming request Ensure general connectivity –> OK Obviously querying a different host
  • 20. The well-known Helpful tools Devil in the details Examples Contact information and readings volter in #zabbix and #zabbix-de on Freenode IRC volker.froehlich@geizhals.at Readings http://blog.zabbix.com/ mysterious-zabbix-problems-how-we-debug-them http://zabbix.org/wiki/Troubleshooting http://zabbix.org/wiki/Docs/protocols Internetworking with TCP/IP, Vol. 1, Douglas E. Comer