Monitoring the Enterprise: Examples and Best Practices

13
MONITORING THE ENTERPRISE: EXAMPLES AND BEST PRACTICES Cody Eding, Bill Halverson, Kevan Hobbs Central New Mexico Community College

Transcript of Monitoring the Enterprise: Examples and Best Practices

Page 1: Monitoring the Enterprise: Examples and Best Practices

MONITORING THE ENTERPRISE:EXAMPLES AND BEST PRACTICES

Cody Eding, Bill Halverson, Kevan HobbsCentral New Mexico Community College

Page 2: Monitoring the Enterprise: Examples and Best Practices

WHY MONITOR?

• Proactive IT vs. Reactive IT• Metrics collection• Change justification• Increased internal/external customer satisfaction

Page 3: Monitoring the Enterprise: Examples and Best Practices

WHAT DO WE CHOOSE?

https://en.wikipedia.org/wiki/Comparison_of_network_monitoring_systems

Page 4: Monitoring the Enterprise: Examples and Best Practices

WHAT DO WE CHOOSE?

• Many shapes, sizes and costs• What are you planning to monitor?• Do I need collated historical data? • How much time? Money? Resources?

• Often inversely related

• One size fits all or multiple systems?• Be prepared for mediocrity and workarounds

Page 5: Monitoring the Enterprise: Examples and Best Practices

MONITORING @ CNM

• Nagios XI• 240+ hosts and 1,700+ checks

• Home-grown scripts • vRealize – VMware• NetBrain - Network

Page 6: Monitoring the Enterprise: Examples and Best Practices

TWO TYPES OF MONITORING

• State Monitoring• Where are we right now?

• CPU usage, memory usage, disk space, etc.

• Process Monitoring• Logical chain of steps to complete a task

• Student registration• Website content updates• Do I have an internet connection?

Page 7: Monitoring the Enterprise: Examples and Best Practices

EXAMPLES• Monitor a Windows service with PowerShell Scheduled

TaskFunction Watch-ServiceStatus { Param( [string]$Name )

$From = "Service Status Notification <[email protected]>" $To = "[email protected]" $SmtpServer = "mail.domain.com"

$ServiceStatus = ( Get-Service $Name ).Status

If ( $ServiceStatus -ne "Running" ) {Send-MailMessage -To $To -From $From -SmtpServer $SmtpServer \

-Subject "Warning: $Name service is not running" }}

Watch-ServiceStatus -Name Netlogon -Notify $true

Page 8: Monitoring the Enterprise: Examples and Best Practices

EXAMPLES• Nagios Windows Host

Page 9: Monitoring the Enterprise: Examples and Best Practices

EXAMPLES• Nagios Linux Service

Page 10: Monitoring the Enterprise: Examples and Best Practices

EXAMPLES• Nagios Business Process

Page 11: Monitoring the Enterprise: Examples and Best Practices

BEST PRACTICES

• Work with application owners to develop sane thresholds• Be prepared for thresholds to change

• Automation!• Configuring monitoring is a tedious task to complete by hand

• Configuration management• Create modular and reusable template systemswindows 2012r2 prod print-server

Page 12: Monitoring the Enterprise: Examples and Best Practices

BEST PRACTICES CONTINUED

• Generate only actionable alerts• Avoid being “The Boy Who Cried Wolf” and alert fatigue

• Be accountable to alerts• Digest raw data into something useable• We’re still working on this one!