Neighborly nagios
-
Upload
david-josephsen -
Category
Technology
-
view
289 -
download
0
Transcript of Neighborly nagios
![Page 1: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/1.jpg)
cd neighborly-nagios/vm vagrant up server vagrant up client
![Page 2: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/2.jpg)
[email protected]@davejosephsen
github.com/djosephsen
Neighborly NagiosDave Josephsen !
Katops Illustrations by Emma Rongey
![Page 3: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/3.jpg)
To Nagios or um.. to not Nagios
![Page 4: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/4.jpg)
![Page 5: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/5.jpg)
![Page 6: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/6.jpg)
Nagios just works:• Availability Data • Minute + resolution • Threshold detection • Alert Handling • Scales “OK” • Ubiquitous • Will Teach you about Monitoring • Will make you a better engineer
![Page 7: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/7.jpg)
Availability Data
![Page 8: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/8.jpg)
Minute+ Scale
![Page 9: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/9.jpg)
Performance Data
![Page 10: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/10.jpg)
Second-Scale Resolution
![Page 11: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/11.jpg)
400,000 Service Checks
![Page 12: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/12.jpg)
WAT is Nagios?
![Page 13: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/13.jpg)
KatopsHey.
![Page 14: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/14.jpg)
KatopsBusyCorp
![Page 15: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/15.jpg)
KatopsBusyCorp
![Page 16: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/16.jpg)
Like it was my idea to run node.js in production
![Page 17: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/17.jpg)
I can fix this in one line of shell
![Page 19: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/19.jpg)
ping -c2 appserver1 || (echo ‘server down’ | /bin/mail [email protected]!
Yeah, basically I’m a genius.
![Page 20: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/20.jpg)
Oh. Crud.
![Page 21: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/21.jpg)
![Page 22: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/22.jpg)
X
X X X
![Page 23: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/23.jpg)
Sigh
![Page 24: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/24.jpg)
does it do Oracle?
We heard you can monitor
thingsAdd me!!
Add me!!
Bob said you can set us up with
Monitoring
How about Apache web servers?
![Page 25: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/25.jpg)
Problems:▪Too Many Alerts ▪No way to “squelch them” ▪Redundant Alerts ▪No dependency Tracking ▪No Alerts on system recoveries ▪Ping isn’t enough ▪No way to check ports, etc.. ▪Most people don’t want EVERY alert ▪No way to to track groups of users, and what
alerts they want.
![Page 26: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/26.jpg)
Back to the Drawing Board▪Execute arbitrary scripts
![Page 27: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/27.jpg)
Back to the Drawing Board▪Execute arbitrary scripts ▪Circular scheduling
![Page 28: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/28.jpg)
Back to the Drawing Board▪Execute arbitrary scripts ▪Circular scheduling ▪First-class user/alert entities
![Page 29: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/29.jpg)
Back to the Drawing Board▪Execute arbitrary scripts ▪Circular scheduling ▪First-class user/alert entities ▪Track inter-system dependencies
![Page 30: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/30.jpg)
Back to the Drawing Board▪Execute arbitrary scripts ▪Circular scheduling ▪First-class user/alert entities ▪Track inter-system dependencies ▪Fine-grained alerting control
![Page 31: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/31.jpg)
Nagios is a circular scheduler that executes user-provided scripts and interprets their output.
![Page 32: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/32.jpg)
Notifications are also user-provided scripts
![Page 33: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/33.jpg)
Hosts, Services, Users, Groups, and Alerts are all individually-defined first-class entities
![Page 34: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/34.jpg)
![Page 35: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/35.jpg)
![Page 36: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/36.jpg)
![Page 37: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/37.jpg)
![Page 38: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/38.jpg)
![Page 39: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/39.jpg)
0: OK 1: Warning 2: ERROR 3: Unknown
![Page 40: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/40.jpg)
OK. Let’s do this
![Page 41: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/41.jpg)
![Page 42: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/42.jpg)
![Page 43: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/43.jpg)
Alright lets get this thing installed already.
![Page 44: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/44.jpg)
![Page 45: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/45.jpg)
![Page 46: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/46.jpg)
![Page 47: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/47.jpg)
![Page 48: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/48.jpg)
![Page 49: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/49.jpg)
![Page 50: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/50.jpg)
![Page 51: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/51.jpg)
0: OK 1: Warning 2: ERROR 3: Unknown
![Page 52: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/52.jpg)
resolve
![Page 53: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/53.jpg)
command definitions and macros are your front-line data I/O hook
![Page 54: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/54.jpg)
![Page 55: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/55.jpg)
![Page 56: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/56.jpg)
![Page 57: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/57.jpg)
![Page 58: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/58.jpg)
Commands are hooks
![Page 59: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/59.jpg)
Commands provide context
![Page 60: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/60.jpg)
$HOSTADDRESS$ -> ${NAGIOS_HOSTADDRESS}
![Page 61: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/61.jpg)
https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/4/en/macrolist.html
woah that’s awesome
![Page 62: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/62.jpg)
![Page 63: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/63.jpg)
![Page 64: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/64.jpg)
Remote Execution
![Page 65: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/65.jpg)
![Page 66: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/66.jpg)
![Page 67: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/67.jpg)
![Page 68: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/68.jpg)
![Page 69: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/69.jpg)
like every remote execution problem evar
SSH
![Page 70: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/70.jpg)
Remote Execution Is Expensive
![Page 71: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/71.jpg)
• RE Proxies • Agents • 3rd party queries
![Page 72: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/72.jpg)
Remote Execution Proxy
![Page 73: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/73.jpg)
Remote Execution Proxy
![Page 74: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/74.jpg)
NRPE
Please run plugin X *runs plugin X*
![Page 75: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/75.jpg)
NSClient++
check X asks WMI about X
![Page 76: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/76.jpg)
Monitoring Agent
![Page 77: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/77.jpg)
Monitoring Agent
![Page 78: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/78.jpg)
Monitoring Agent
![Page 79: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/79.jpg)
Monitoring Agent
NRDP
![Page 80: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/80.jpg)
Check_MK
![Page 81: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/81.jpg)
NCPA
![Page 82: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/82.jpg)
3rd Party Queries
![Page 83: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/83.jpg)
3rd Party Queries
collectd
Graphite/Graphana
![Page 84: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/84.jpg)
3rd Party Queries
collectd
Graphite/Graphana
![Page 85: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/85.jpg)
3rd Party Queries
collectd
Graphite/Graphana collectd-nagios
![Page 86: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/86.jpg)
3rd Party Queries
![Page 87: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/87.jpg)
you planning on talking all day or what?
![Page 88: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/88.jpg)
NCPA
![Page 89: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/89.jpg)
Data Out
![Page 90: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/90.jpg)
![Page 91: Neighborly nagios](https://reader031.fdocuments.in/reader031/viewer/2022012919/58a106b31a28abe15a8b47cb/html5/thumbnails/91.jpg)
Data Out